/* Base Styles */
:root {
    --primary-color: #fa743e;
    --primary-dark: #e05a2a;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #121212;
    --bg-darker: #0a0a0a;
    --bg-light: #1e1e1e;
    --accent-color: #4a90e2;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --gray-light: #f5f5f5;
    --gray-medium: #e0e0e0;
    --gray-dark: #757575;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

/* Estilo para prevenir cambios no deseados */
link[rel="icon"] {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}
  
/* Para Safari en macOS */
@media (prefers-color-scheme: dark) {
    link[rel="icon"] {
      filter: brightness(0.8) contrast(1.2);
    }
}


.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

h2 span {
    color: var(--primary-color);
    
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(250, 116, 62, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
}

.btn-secondary:hover {
    background: var(--text-light);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(250, 116, 62, 0.2);
}

.section-description {
    font-size: 1.2rem;
    color: var(--gray-dark);
    max-width: 700px;
    margin: 0 auto 50px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    height: 130px;
    width: 100%;
    padding: 20px 0;
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.nav-list {
    display: flex;
}

.nav-list li {
    margin-left: 30px;
    border-radius: 10%;
    transition: all 0.3s ease;
    padding: 2px 10px;
    cursor: pointer;
}

.nav-list a {
    font-weight: 600;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

.login-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius);
    font-weight: 600;
}

.login-btn:hover {
    background-color: var(--primary-dark);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--text-light);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/ai-dashboard.webp') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: var(--gray-medium);
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-down i {
    font-size: 2rem;
    color: var(--text-light);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Services Section */
.services {
    background-color: var(--bg-darker);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 40px 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(250, 116, 62, 0.1) 0%, rgba(250, 116, 62, 0) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(250, 116, 62, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-features {
    margin-top: 20px;
}

.service-features li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.service-features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Portfolio Section */
.portfolio {
    background-color: var(--bg-dark);
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--gray-dark);
    color: var(--gray-dark);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
}

/* Portfolio Grid - Versión Mejorada */


.portfolio-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.portfolio-modal .modal-content {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s ease;
}

.portfolio-modal .close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-dark);
    transition: color 0.3s ease;
}

.portfolio-modal .close-modal:hover {
    color: var(--primary-color);
}

.portfolio-modal h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.portfolio-modal p {
    margin-bottom: 25px;
}

.portfolio-modal .modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    align-items: stretch; /* Asegura que todos los items tengan la misma altura */
}

.portfolio-item {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ocupa toda la altura disponible */
}

.portfolio-img {
    position: relative;
    overflow: hidden;
    height: 250px; /* Altura fija para imágenes */
    flex-shrink: 0; /* Evita que la imagen se reduzca */
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que las imágenes mantengan proporción */
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(187, 85, 45, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    box-sizing: border-box;
}

/* Contenedor de texto dentro del overlay */
.portfolio-text {
    max-height: 80%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portfolio-overlay h3 {
    margin: 0 0 10px 0;
    color: var(--text-light);
    font-size: 1.3rem;
    line-height: 1.3;
    flex-shrink: 0;
}

.portfolio-overlay p {
    margin: 0 0 20px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.4;
    flex-grow: 1;
    display: flex;
    align-items: center;
    max-height: 60%;
    overflow: hidden;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-light);
    font-weight: 600;
    flex-shrink: 0;
    margin-top: auto;
}

.portfolio-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.portfolio-link:hover i {
    transform: translateX(5px);
}

.portfolio-cta {
    text-align: center;
    margin-top: 50px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about {
    background-color: var(--bg-darker);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    display: flex;
    justify-content: center;
}

.tech-circle {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: rotate 20s linear infinite;
}

.circle-item {
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.circle-item i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.circle-item span {
    font-size: 0.8rem;
    font-weight: 600;
}

.circle-item.ai {
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    color: var(--primary-color);
}

.circle-item.iot {
    top: 50%;
    right: 0;
    transform: translateY(-50%) translateX(50%);
    color: var(--accent-color);
}

.circle-item.web {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(50%);
    color: var(--success-color);
}

.circle-item.data {
    top: 50%;
    left: 0;
    transform: translateY(-50%) translateX(-50%);
    color: var(--warning-color);
}

.circle-center {
    width: 150px;
    height: 150px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(250, 116, 62, 0.3);
}

.circle-center img {
    width: 80px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-item {
    text-align: center;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item h4 {
    margin-bottom: 10px;
}

.about-tech {
    margin-top: 40px;
}

.about-tech h3 {
    margin-bottom: 20px;
}

.about-tech ul li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 40px;
}

.about-tech ul li i {
    position: absolute;
    left: 0;
    top: 5px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Contact Section */
.contact {
    background-color: var(--bg-dark);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.info-content h4 {
    margin-bottom: 5px;
}

.info-content a {
    color: var(--gray-medium);
    transition: color 0.3s ease;
}

.info-content a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.contact-form {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid var(--gray-dark);
    border-radius: 5px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--gray-dark);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group input:not(:placeholder-shown),
.form-group textarea:not(:placeholder-shown) {
    border-color: var(--primary-color);
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    background: var(--bg-light);
    padding: 0 5px;
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--bg-darker);
    padding: 80px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-about .logo {
    margin-bottom: 20px;
}

.footer-about p {
    color: var(--gray-dark);
}

.footer-links h4,
.footer-services h4,
.footer-newsletter h4 {
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-services h4::after,
.footer-newsletter h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-services a {
    color: var(--gray-dark);
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--gray-dark);
    border-radius: 5px 0 0 5px;
    background: transparent;
    color: var(--text-light);
}

.newsletter-form button {
    padding: 0 20px;
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid var(--bg-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--gray-dark);
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: var(--gray-dark);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--primary-color);
}

/* AI Demo Section */
.ai-demo {
    background-color: var(--bg-darker);
    position: relative;
    overflow: hidden;
}

.ai-demo i:hover {
    cursor: pointer;
}

.ai-demo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(4, 245, 4, 0.39) 0%, rgba(250, 116, 62, 0) 70%);
    animation: rotate 20s linear infinite;
    z-index: 0;
}

.ai-demo.gradient-messenger::before {
     background: radial-gradient(circle, rgba(11, 123, 197, 0.452) 0%, rgba(250, 116, 62, 0) 70%);
}

.ai-demo.gradient-whatsapp::before {
     background: radial-gradient(circle, rgba(4, 245, 4, 0.39) 0%, rgba(250, 116, 62, 0) 70%);
}

.ai-demo.gradient-instagram::before {
     background: radial-gradient(circle, rgba(245, 4, 104, 0.445) 0%, rgba(250, 116, 62, 0) 70%);
}

.ai-demo.gradient-sms::before {
    background: radial-gradient(circle, rgba(241, 245, 4, 0.37) 0%, rgba(250, 116, 62, 0) 70%);
}

.ai-demo.gradient-call::before {
     background: radial-gradient(circle, rgba(216, 127, 10, 0.377) 0%, rgba(250, 116, 62, 0) 70%);
}

.demo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.platform-selector {
    margin-bottom: 30px;
}

.platform-selector h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--gray-medium);
}

.platform-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.platform-btn {
    padding: 10px 15px;
    background: var(--bg-light);
    border: none;
    border-radius: 5px;
    color: var(--gray-medium);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.platform-btn i {
    font-size: 1.2rem;
}

/* .platform-btn i:hover {
    color: var(--primary-color);
} */

.platform-btn.active {
    background: var(--primary-color);
    color: var(--text-light);
}

.platform-btn:not(.active):hover {
    background: var(--bg-light);
    color: var(--text-light);
    box-shadow: 0 10px 30px rgba(255, 72, 0, 0.329);
    
}

.call-btn {
    background: var(--success-color);
    color: var(--text-light);
}

.demo-interface {
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.692);
    height: 500px;
    display: flex;
    flex-direction: column;
}

.chat-container, .call-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 10px;
    overflow-y: auto;
}

.chat-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.call-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.chat-header, .call-header {
    padding: 15px 20px;
    /* background: var(--primary-color); */
    background-color: #25D366;
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.chat-platform, .call-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.chat-platform i, .call-header i {
    font-size: 1.3rem;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.status-indicator {
    width: 10px;
    height: 10px;
    background: var(--success-color);
    border-radius: 50%;
    border-style: solid;
    border-width: 1.2px;
    animation: pulse 1.5s infinite;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 12px 15px;
    border-radius: 15px;
    position: relative;
    animation: fadeIn 0.3s ease;
}

.user-message {
    align-self: flex-end;
    background: var(--primary-color);
    color: var(--text-light);
    border-bottom-right-radius: 5px;
}

.ai-message {
    align-self: flex-start;
    background: var(--bg-dark);
    border-bottom-left-radius: 5px;
}

.message-time {
    font-size: 0.7rem;
    color: var(--gray-dark);
    margin-top: 5px;
    text-align: right;
}

.chat-input {
    padding: 15px;
    background: var(--bg-dark);
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 12px 15px;
    background: var(--bg-light);
    border: none;
    border-radius: 30px;
    color: var(--text-light);
}

.chat-input button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-input button:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.voice-selector {
    margin-bottom: 20px;
    text-align: center;
}

.voice-selector h4 {
    margin-bottom: 10px;
    color: var(--gray-medium);
}

.voice-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.voice-btn {
    padding: 8px 15px;
    background: var(--bg-dark);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.voice-btn.active, .voice-btn:hover {
    background: var(--primary-color);
}

.call-interface {
    margin-top: 20px;
}

.call-status {
    background: var(--bg-dark);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.call-transcript {
    flex: 1;
    max-height: 150px;
    overflow-y: auto;
    font-size: 0.95rem;
    line-height: 1.4;
}

.call-transcript p {
    margin: 5px 0;
}

.call-transcript .ai-message {
    color: var(--primary-color);
}

.call-transcript .user-message {
    color: var(--text-light);
}

.call-options h4 {
    margin-bottom: 15px;
    color: var(--gray-medium);
    text-align: center;
}

.option-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.option-btn {
    padding: 12px;
    background: var(--bg-dark);
    border: none;
    border-radius: 8px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.option-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.option-btn i {
    font-size: 1.1rem;
}

.call-controls {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.call-control-btn {
    padding: 12px 25px;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.call-control-btn.reject {
    background: var(--danger-color);
    color: white;
}

.call-control-btn.reject:hover {
    background: #d32f2f;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .option-buttons {
        grid-template-columns: 1fr;
    }
    
    .voice-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .voice-btn {
        width: 100%;
        justify-content: center;
    }
}

.call-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
}

.call-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.call-avatar i {
    font-size: 3rem;
    color: var(--primary-color);
}

.avatar-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(250, 116, 62, 0.2);
    animation: pulse 2s infinite;
}

.call-status h3 {
    margin-bottom: 10px;
}

#callTranscript {
    min-height: 60px;
    margin: 20px 0;
    color: var(--gray-medium);
    font-style: italic;
}

.call-controls {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.call-control-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: var(--bg-dark);
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.call-control-btn:hover {
    transform: scale(1.1);
}

.call-control-btn.accept {
    background: var(--success-color);
}

.call-control-btn.reject {
    background: var(--danger-color);
}

.demo-features {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    align-self: center;
}

.demo-features h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.demo-features ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.demo-features li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.demo-features i {
    color: var(--success-color);
    font-size: 1.1rem;
}

.demo-cta {
    text-align: center;
    margin-top: 30px;
}

.demo-cta p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* Typing Indicator */
.typing-indicator {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    background: var(--bg-dark);
    border-radius: 15px;
    margin-bottom: 15px;
    border-bottom-left-radius: 5px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--gray-medium);
    border-radius: 50%;
    margin: 0 2px;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingAnimation {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-5px);
    }
}

/* Selector de voces */
.voice-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 15px 0;
}

.voice-option-btn {
    padding: 6px 12px;
    background: var(--bg-dark);
    border: 1px solid var(--primary-color);
    border-radius: 15px;
    color: var(--gray-medium);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.voice-option-btn.active, .voice-option-btn:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

/* Opciones de usuario */
.user-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 20px 0;
    max-width: 400px;
}

.call-option-btn {
    padding: 10px 15px;
    background: var(--primary-color);
    border: none;
    border-radius: 5px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.9rem;
}

.call-option-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Transcript */
.call-transcript {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 5px;
    max-height: 150px;
    overflow-y: auto;
    margin: 15px 0;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.4;
}

.call-transcript br {
    display: block;
    content: "";
    margin: 8px 0;
}

.voice-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.voice-option-btn {
    padding: 10px 15px;
    background: var(--bg-light);
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.voice-option-btn i {
    font-size: 1.1rem;
}

.voice-option-btn.active, .voice-option-btn:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

/* Para pantallas pequeñas */
@media (max-width: 768px) {
    .voice-selector {
        flex-direction: column;
        align-items: center;
    }
    
    .voice-option-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .user-options {
        grid-template-columns: 1fr;
    }
    
    .voice-selector {
        flex-direction: column;
        align-items: center;
    }
}


/* Responsive Styles */


/* Responsive Demo Section */
@media (max-width: 992px) {
    .demo-container {
        grid-template-columns: 1fr;
    }
    
    .demo-features {
        margin-top: 40px;
    }
}

@media (max-width: 576px) {
    .platform-buttons {
        justify-content: center;
    }
    
    .demo-interface {
        height: 400px;
    }
    
    .call-controls {
        gap: 15px;
    }
    
    .call-control-btn {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        margin-top: 50px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        margin-bottom: 50px;
    }
}

@media (max-width: 1040px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-list {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-darker);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.3s ease;
    }
    
    .nav-list.active {
        left: 0;
    }
    
    .nav-list li {
        margin: 15px 0;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-circle {
        width: 300px;
        height: 300px;
    }
    
    .circle-center {
        width: 120px;
        height: 120px;
    }
    
    .circle-center img {
        width: 60px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .tech-circle {
        width: 250px;
        height: 250px;
    }
    
    .circle-item {
        width: 60px;
        height: 60px;
    }
    
    .circle-item i {
        font-size: 1.2rem;
    }
    
    .circle-center {
        width: 100px;
        height: 100px;
    }
    
    .circle-center img {
        width: 50px;
    }
}
.typing-container {
    height: 12rem; /* Altura suficiente para 2 líneas de texto */
    width: 100%;
    position: relative;
}

/* Estilo para modal de formulario */

/* Variables de color */
:root {
    --primary: #ff7b25; /* Naranja principal */
    --primary-dark: #e56a1a;
    --dark-bg: #121212;
    --darker-bg: #0a0a0a;
    --light-text: #b9abab;
    --dark-text: #474444;
    --input-bg: #1e1e1e;
    --border-color: #333;
  }
  
  /* Animaciones */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 123, 37, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 123, 37, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 123, 37, 0); }
  }
  
  /* Estilos del modal */
  #feedback-modal {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    animation: fadeIn 0.4s ease-out;
    margin-top: 100px;
  }
  
  #feedback-modal > div {
    background: var(--darker-bg);
    border: 1px solid var(--border-color);
    animation: fadeIn 0.6s ease-out;
    transition: all 0.3s ease;
  }
  
  #feedback-modal h2 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    background: linear-gradient(90deg, var(--primary), #ff9a3c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
  }
  
  #feedback-modal h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
  }
  
  #feedback-modal p {
    color: #aaa;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.95rem;
  }
  
  /* Estilos de formulario */
  #user-feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
  }
  
  #user-feedback-form label {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
    transition: all 0.3s ease;
  }
  
  #user-feedback-form input,
  #user-feedback-form select,
  #user-feedback-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--input-bg);
    color: var(--light-text);
    font-size: 0.95rem;
    transition: all 0.3s ease;
  }
  
  #user-feedback-form input:focus,
  #user-feedback-form select:focus,
  #user-feedback-form textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 123, 37, 0.2);
    transform: translateY(-2px);
  }
  
  #user-feedback-form textarea {
    min-height: 100px;
    resize: vertical;
  }
  
  /* Selector personalizado */
  #problem-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff7b25'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
  }
  
  /* Botones */
  #submit-feedback {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark2));
    color: white;
    border: none;
    padding: 14px 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-top: 10px;
  }
  
  #submit-feedback:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 123, 37, 0.3);
    animation: pulse 1.5s infinite;
  }
  
  #close-feedback {
    color: #777;
    font-size: 1.5rem;
    transition: all 0.3s ease;
  }
  
  #close-feedback:hover {
    color: var(--primary);
    transform: rotate(90deg);
  }
  
  /* Checkbox personalizado */
  #accept-terms {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    top: 3px;
    transition: all 0.2s ease;
  }
  
  #accept-terms:checked {
    background-color: var(--primary);
    border-color: var(--primary);
  }
  
  #accept-terms:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    left: 3px;
    top: -1px;
    align-items: center;
  }

  /* Animación de checkmark */
.checkmark-circle {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 123, 37, 0.1);
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    border: 2px solid #ff7b25;
    animation: scaleIn 0.5s ease-out;
  }
  
  .checkmark {
    position: absolute;
    top: 20px;
    left: 25px;
    width: 25px;
    height: 40px;
    border-right: 4px solid #ff7b25;
    border-bottom: 4px solid #ff7b25;
    transform: rotate(45deg);
    animation: checkmarkIn 0.8s ease-out;
  }
  
  @keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
  }
  
  @keyframes checkmarkIn {
    0% { height: 0; width: 0; opacity: 0; }
    50% { height: 0; width: 25px; opacity: 1; }
    100% { height: 40px; width: 25px; }
  }
  
  /* Animación de entrada del modal */
  @keyframes modalFadeIn {
    from { opacity: 0; backdrop-filter: blur(0); }
    to { opacity: 1; backdrop-filter: blur(5px); }
  }
  
  #success-modal {
    animation: modalFadeIn 0.4s ease-out forwards;
    backdrop-filter: blur(5px);
  }
  
  /* Efecto hover para el botón */
  #close-success:hover {
    background-color: #e56a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 123, 37, 0.3);
  }
  
  /* Efecto hover para inputs */
  #user-feedback-form input:hover,
  #user-feedback-form select:hover,
  #user-feedback-form textarea:hover {
    border-color: #444;
  }
  
  /* Responsive */
  @media (max-width: 600px) {
    #feedback-modal > div {
      width: 90%;
      margin: 20px auto;
      padding: 20px;
    }
    
    #user-feedback-form {
      gap: 1rem;
    }
  }