* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #7d51bc;
    --primary-dark: #634598;
    --secondary: #2298d8;
    --secondary-light: #7ab3da;
    --dark: #1a1c1d;
    --light: #eeeeee;
    --white: #ffffff;
    --accent: #8462bd;
}

.mobile-logo-container {
    display: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4px;
}

/* Estilos del Nuevo Banner */
.top-promo-banner {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    width: 100%;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1002;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 60px;
    display: flex;
    align-items: center;
}

.container.promo-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.promo-img {
    height: 60px;
    width: auto;
    object-fit: cover;
    object-position: left center;
    margin: 0;
    padding: 0;
}

.text-desktop {
    font-weight: 600;
    font-size: 20px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-align: center;
    flex-grow: 1;
    margin: 0 20px;
}

.text-mobile {
    display: none;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    line-height: 1.2;
}

.btn-promo {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--white);
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    flex-shrink: 0;
    transform: translateY(0);
}

.btn-promo:hover {
    background: var(--white);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* AJUSTES PARA HEADER Y HERO */
header {
    top: 60px !important;
}

.hero {
    padding-top: 200px !important;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .top-promo-banner {
        height: 50px;
    }

    .promo-img {
        display: none;
        /* Oculta la imagen en móviles */
    }

    .text-desktop {
        display: none;
    }

    .text-mobile {
        display: block;
        font-size: 15px;
        text-align: center;
        flex-grow: 1;
        margin: 0 10px;
    }

    .btn-promo {
        padding: 6px 15px;
        /* Ajusta el tamaño del botón en móviles */
        font-size: 12px;
    }

    .container.promo-flex {
        justify-content: space-between;
        /* Distribuye los elementos */
        padding: 0 15px;
    }

    header {
        top: 50px !important;
    }

    .hero {
        padding-top: 190px !important;
    }
}

/* HEADER / NAV */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 60px;
    object-fit: contain;
    object-position: center;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

/* Ajuste de tamaño y estilo para los enlaces del menú */
.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 18px;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    padding-bottom: 5px;
    background: none !important;
}

/* Barra morada que aparece al pasar el cursor */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* Efecto hover - barra crece y texto cambia de color */
.nav-links a:hover,
.nav-links a:focus {
    color: var(--primary) !important;
    transform: translateY(-1px);
}

.nav-links a:hover::after,
.nav-links a:focus::after {
    width: 100%;
}

/* Estilo activo (cuando la sección está en vista) */
.nav-links a.active,
.nav-links a[aria-current="page"] {
    color: var(--primary) !important;
    font-weight: 700;
    transform: translateY(-1px);
}

.nav-links a.active::after,
.nav-links a[aria-current="page"]::after {
    width: 100%;
}

/* Estilo específico para el enlace #paquetes para mantener coherencia */
.nav-links a[href="#paquetes"] {
    color: inherit;
    font-weight: 600;
    font-size: 18px;
    transition: color 0.16s ease, transform 0.12s ease;
}

.nav-links a[href="#paquetes"]:hover,
.nav-links a[href="#paquetes"]:focus,
.nav-links a[href="#paquetes"].active {
    color: var(--primary) !important;
    transform: translateY(-1px);
}

/* Responsive: tamaño de fuente más pequeño en pantallas menores a 768px */
@media (max-width: 768px) {
    .nav-links a {
        font-size: 20px;
    }
}

/* Menú móvil: estilos para el botón hamburguesa */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: 0.3s;
}

body.menu-open {
    overflow: hidden;
}

/* Asegura que no haya colores fijos por reglas inline o residuales */
.nav-links a[style] {
    color: inherit !important;
    background: none !important;
}

/* HERO SECTION - MODERN DESIGN */
.hero-portfolio-wrapper {
    background: linear-gradient(135deg, #1a1c1d 0%, #2a2d3e 50%, #1a1c1d 100%);
    position: relative;
    overflow: hidden;
}



.hero-portfolio-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(125, 81, 188, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(34, 152, 216, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(132, 98, 189, 0.2) 0%, transparent 40%);
    pointer-events: none;
}

.hero {
    padding: 140px 24px 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

#animated-text {
    font-weight: 700;
    color: var(--secondary);
    border-right: 2px solid var(--primary);
    padding-right: 4px;
    white-space: nowrap;
    overflow: hidden;
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: var(--primary);
    }
}

.hero-content {
    color: var(--white);
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 52px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--primary), #ffffff, var(--secondary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.hero-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    max-width: 500px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    background: var(--primary-dark);
    color: var(--white);
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 30px rgba(123, 47, 247, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
    min-width: 150px;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: var(--primary);
    box-shadow: 0 12px 40px rgba(123, 47, 247, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-secondary {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hero-buttons .btn-primary {
    font-size: 20px;
    padding: 22px 56px;
    animation: pulse-glow 2s infinite;
    white-space: nowrap;
    /* Mantiene en un solo renglón */
}

@media (max-width: 480px) {
    .hero-buttons .btn-primary {
        font-size: 16px;
        padding: 18px 32px;
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(125, 81, 188, 0.6);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(125, 81, 188, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(125, 81, 188, 0);
    }
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-mockup {
    position: relative;
    width: 100%;
    max-width: 550px;
}

.mockup-browser {
    background: #2a2d3e;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.browser-header {
    background: #1a1c1d;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.browser-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.browser-dot.red {
    background: #ff5f57;
}

.browser-dot.yellow {
    background: #febc2e;
}

.browser-dot.green {
    background: #28c840;
}

.browser-url {
    flex: 1;
    background: #2a2d3e;
    border-radius: 6px;
    padding: 6px 12px;
    margin-left: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.browser-content {
    padding: 20px;
    background: linear-gradient(180deg, #1a1c1d 0%, #2a2d3e 100%);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.code-line {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.code-number {
    color: rgba(255, 255, 255, 0.3);
    width: 24px;
    text-align: right;
}

.code-text {
    color: rgba(255, 255, 255, 0.8);
}

.code-text .tag {
    color: #ff79c6;
}

.code-text .attr {
    color: #50fa7b;
}

.code-text .value {
    color: #f1fa8c;
}

.code-text .comment {
    color: #6272a4;
}

.floating-card {
    position: absolute;
    background: var(--white);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
}

.floating-card.card-1 {
    top: -20px;
    right: -30px;
    animation: float 3s ease-in-out infinite;
}

.floating-card.card-2 {
    bottom: 40px;
    left: -40px;
    animation: float 3s ease-in-out infinite 1.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 28px;
}

.card-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.card-text span {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #888;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(125, 81, 188, 0.2);
    border: 1px solid rgba(125, 81, 188, 0.3);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.hero-badge::before {
    content: '🚀';
}

/* AJUSTES ESPECÍFICOS PARA MÓVILES */
@media (max-width: 768px) {
    .hero {
        background: transparent !important;
        min-height: auto !important;
    }

    .hero::before {
        display: none !important;
    }

    #portafolio {
        background: transparent !important;
        padding: 0 !important;
    }

    /* Ocultar el elemento visual del Hero en móviles */
    .hero-visual {
        display: none !important;
    }

    /* Opcional: Centrar el contenido del texto del Hero al quitar la imagen */
    .hero-content {
        text-align: center;
        width: 100%;
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }
}

/* SECTIONS GENERAL */
section {
    padding: 72px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.section-header p {
    color: #666;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}


/* GRADIENT WRAPPER for continuous background */
.gradient-wrapper {
    background: linear-gradient(180deg, #f4effb 0%, #e4d8f3 100%);
}

/* NOSOTROS (Why Choose Us) - STATS GRID */
#nosotros {
    background: transparent;
    position: relative;
    z-index: 10;
    overflow: hidden;
    padding: 80px 24px;
    padding-top: 15px;
    padding-bottom: 0px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    position: relative;
    transition: transform 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-number-wrapper {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 72px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -3px;
    color: var(--primary);
}

.stat-label {
    font-size: 14px;
    font-weight: 600;
    color: #777;
    margin: 0;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* SCROLL ANIMATION CLASSES */
.reveal-scale {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* MOBILE ADJUSTMENTS */
@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0;
        max-width: 400px;
    }

    .stat-card {
        padding: 28px 20px;
    }

    .stat-number {
        font-size: 56px;
        letter-spacing: -2px;
    }
}

/* PROCESS SECTION STYLES */
#proceso {
    background: transparent;
    padding: 72px 24px;
    position: relative;
    overflow: hidden;
    padding-top: 40px;
}

#proceso .section-header {
    text-align: center;
    margin-bottom: 60px;
}


.timeline-wrapper {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 48px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline-left {
    position: relative;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    background: rgba(125, 81, 188, 0.12);
    border-radius: 4px;
    overflow: hidden;
}

.timeline-line-filled {
    width: 100%;
    height: 0%;
    /* Will be updated via JS */
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 4px;
    transition: height 0.1s ease-out;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    background: var(--light);
    border: 3px solid rgba(125, 81, 188, 0.25);
    border-radius: 50%;
    z-index: 2;
    transition: background 0.4s ease, border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease, top 0.2s ease-out;
}

.timeline-dot.active {
    background: var(--primary);
    border-color: rgba(125, 81, 188, 0.15);
    box-shadow: 0 0 0 6px rgba(125, 81, 188, 0.15), 0 0 20px rgba(125, 81, 188, 0.3);
    transform: translateX(-50%) scale(1.15);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        box-shadow: 0 0 0 6px rgba(125, 81, 188, 0.15), 0 0 20px rgba(125, 81, 188, 0.3);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(125, 81, 188, 0.08), 0 0 30px rgba(125, 81, 188, 0.2);
    }
}

/* DOTS para cada paso dentro de la timeline no los pondremos fijos, usaremos las lineas */

.timeline-right {
    display: flex;
    flex-direction: column;
    gap: 15vh;
    counter-reset: step-counter;
}

.step-card {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;

    /* Layout for Image + Content */
    display: flex;
    align-items: center;
    gap: 40px;

    /* Inactive state (invisible until timeline reaches) */
    opacity: 0;
    transform: scale(0.95) translateX(30px);
    pointer-events: none;
    /* Previene clics en lugares invisibles */
    counter-increment: step-counter;
}

.step-image {
    flex: 0 0 45%;
    /* Image takes 45% width */
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
    /* Delayed fade-in */
}

.step-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Alternate Layout */
.step-card:nth-child(even) {
    flex-direction: row-reverse;
}

.step-card.active .step-image {
    transform: translateY(0);
    opacity: 1;
}

/* ACTIVE state toggled by JS Observer */
.step-card.active {
    opacity: 1;
    transform: scale(1) translateX(0);
    pointer-events: auto;
    border: none;
    box-shadow: none;
    background: transparent;
}

.step-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    max-width: 100%;
}

/* Step number badge */
.step-content::before {
    content: '0' counter(step-counter);
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    opacity: 0.6;
    margin-bottom: 4px;
}

.step-card.active .step-content::before {
    opacity: 1;
}

.step-content h3 {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.5px;
    transition: color 0.4s ease;
}

.step-card.active .step-content h3 {
    color: var(--dark);
}

.step-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 0;
    font-size: 20px;
    max-width: 420px;
}

/* RESPONSIVE PROCESS */
@media (max-width: 768px) {
    #proceso {
        padding: 48px 16px;
    }

    .timeline-wrapper {
        grid-template-columns: 40px 1fr;
        gap: 24px;
    }

    #proceso .section-header h2 {
        font-size: 28px;
        font-weight: 900;
        letter-spacing: -0.3px;
    }

    #proceso .section-header p {
        font-size: 16px;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .step-card,
    .step-card:nth-child(even) {
        padding: 0;
        min-height: auto;
        flex-direction: column !important;
        /* Stack vertically on mobile */
        gap: 20px;
    }

    .step-image {
        flex: 0 0 auto;
        width: 100%;
    }

    .step-content {
        max-width: 100%;
    }

    .step-content p {
        max-width: 100%;
    }

    .step-content h3 {
        font-size: 20px;
        font-weight: 900;
        letter-spacing: -0.5px;
    }

    .timeline-dot {
        width: 14px;
        height: 14px;
        border-width: 2px;
    }
}

@media (max-width: 480px) {
    .step-card {
        padding: 0;
    }

    .step-card::before {
        font-size: 220px;
        top: -30px;
        right: -30px;
        color: rgba(125, 81, 188, 0.12);
    }

    .step-content h3 {
        font-size: 18px;
        font-weight: 900;
        letter-spacing: -0.3px;
    }

    .step-content p {
        font-size: 14px;
    }
}

/* PORTAFOLIO SLIDER CONTINUO - LIQUID GLASS */
#portafolio {
    background: transparent;
    padding: 60px 0;
    padding-bottom: 0px !important;
    overflow: hidden;
    /* Oculta lo que sale del contenedor */
}

.portfolio-slider-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0 40px;
    cursor: grab;
}

.portfolio-slider-container:active {
    cursor: grabbing;
}

.portfolio-track {
    display: flex;
    gap: 20px;
    width: max-content;
    will-change: transform;
    /* El JS se encarga del transform continuo */
}

.portfolio-card {
    width: 600px;
    height: 380px;
    flex-shrink: 0;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

/* LIQUID GLASS EFFECT */
.portfolio-card.liquid-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 7px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(31, 38, 135, 0.1);
}

.portfolio-card.liquid-glass::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: none;
    /* Brillo al hacer hover */
    z-index: 2;
    pointer-events: none;
}

.portfolio-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(125, 81, 188, 0.25);
    border-color: rgba(125, 81, 188, 0.4);
}

.portfolio-card:hover::before {
    animation: liquidShine 1.5s infinite;
}

@keyframes liquidShine {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    position: relative;
    z-index: 1;
    /* Suave opacidad estática, se aclara en hover */
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover img {
    opacity: 1;
}

/* RESPONSIVO MOBILE */
@media (max-width: 768px) {
    .portfolio-card {
        width: 400px;
        height: 250px;
    }

    .portfolio-slider-container {
        padding: 10px 0 20px;
        padding-top: 40px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    /* Changed to flex via JS */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: 90%;
    height: 90%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 32px;
    color: white;
    cursor: pointer;
    z-index: 1002;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================================
   TESTIMONIOS — Grid + Load More (sin carrusel)
   ============================================================ */
#testimonios {
    background: transparent;
}

/* Grid de 3 columnas */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

/* Ocultar tarjetas del bloque 2 y 3 inicialmente */
.testimonial-card.tc-hidden {
    display: none;
}

/* Animación de entrada al revelar */
.testimonial-card.tc-reveal {
    animation: tcFadeIn 0.4s ease both;
}
@keyframes tcFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- Tarjeta base --- */
.testimonial-card {
    background: var(--white);
    border: 1px solid var(--light);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.stars {
    color: #ffc107;
    font-size: 18px;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

/* --- Contenido de la tarjeta --- */
.testimonial-card {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.testimonial-card:hover {
    box-shadow: 0 16px 48px rgba(125, 81, 188, 0.13);
    transform: translateY(-3px);
}

/* Fila superior: estrellas + badge Google */
.tc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

/* Estrellas */
.stars {
    color: #ff9500;
    font-size: 20px;
    letter-spacing: 2px;
    line-height: 1;
}

/* Badge Google */
.tc-google-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #5f6368;
    white-space: nowrap;
}

/* Texto del testimonio */
.tc-quote {
    color: #444;
    font-style: italic;
    line-height: 1.75;
    margin-bottom: 18px;
    flex: 1;
    font-size: 14.5px;
}

/* Barra de estadísticas */
.tc-stats {
    display: flex;
    flex-direction: column;
    gap: 7px;
    background: linear-gradient(135deg, rgba(125,81,188,0.07), rgba(74,172,229,0.07));
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 20px;
    border: 1px solid rgba(125,81,188,0.1);
}
.tc-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}
.tc-stat-icon { font-size: 15px; flex-shrink: 0; }

/* Footer: autor + fecha */
.tc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 11px;
}

.author-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(125,81,188,0.2);
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 2px;
}
.author-info span {
    font-size: 12.5px;
    color: #888;
}

/* Fecha */
.tc-date {
    font-size: 12px;
    color: #aaa;
    white-space: nowrap;
}

/* Footer load-more */
.tc-load-more-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 44px;
}
.tc-counter {
    font-size: 14px;
    color: #888;
}
.tc-counter strong { color: var(--primary); }

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 700;
    font-size: 15px;
    padding: 13px 32px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}
.btn-load-more:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 24px rgba(125,81,188,0.3);
}
.btn-load-more svg {
    transition: transform 0.25s ease;
}
.btn-load-more:hover svg {
    transform: translateY(3px);
}

/* Responsivo */
@media (min-width: 769px) {
    #portafolio .section-header,
    #testimonios .section-header {
        text-align: center;
        margin-bottom: 60px;
    }
    #portafolio .section-header p,
    #testimonios .section-header p {
        color: #666 !important;
        font-size: 20px !important;
        max-width: 600px !important;
        margin: 0 auto !important;
        line-height: 1.6 !important;
    }
}

@media (max-width: 991px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .testimonial-card {
        padding: 22px 18px;
    }
    .tc-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Header CTA button styling for mobile */
.mobile-cta-container {
    display: none;
}

@media (max-width: 991px) {
    .mobile-cta-container {
        display: block;
        width: 100%;
        margin-top: 20px;
        text-align: center;
        padding-bottom: 20px;
    }

    .mobile-cta-container .btn-promo {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin: 0 auto;
        padding: 15px 20px;
        box-sizing: border-box;
        font-size: 16px;
        text-align: center;
        background: var(--accent) !important;
        color: #fff !important;
        border: none;
        white-space: nowrap;
    }

    .mobile-cta-container .btn-promo:hover {
        background: var(--accent) !important;
        color: #fff !important;
    }

    .mobile-cta-container .btn-promo::after {
        display: none;
    }
}

/* Ajuste para móvil (dentro del carrusel) */
@media (max-width: 768px) {
    .stars-container {
        padding: 4px 10px;
        margin-bottom: 12px;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
        /* Sombra más marcada */
    }

    .stars {
        font-size: 20px !important;
    }
}

@media (min-width: 769px) {

    /* Al hacer hover en el contenedor, las tarjetas pierden un poco de fuerza */
    .testimonials-grid:hover .testimonial-card {
        opacity: 0.7;
        transform: scale(0.98);
        filter: blur(1px);
    }

    /* La tarjeta que tiene el mouse encima se enfoca y resalta */
    .testimonials-grid .testimonial-card {
        transition: all 0.5s ease !important;
    }

    .testimonials-grid .testimonial-card:hover {
        opacity: 1 !important;
        transform: scale(1.05) !important;
        filter: blur(0) !important;
        z-index: 10;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
        border: 2px solid var(--primary) !important;
    }
}

/* ====== ANIMACIÓN "CAÍDA" DE TESTIMONIOS AL ENTRAR EN VISTA (SOLO DESKTOP) ====== */
@media (min-width: 769px) {

    /* Estado inicial: arriba y transparente */
    .testimonial-card {
        opacity: 0;
        transform: translateY(-28px);
        transition:
            transform 620ms cubic-bezier(.2, .9, .2, 1),
            opacity 520ms ease,
            box-shadow 400ms ease;
        will-change: transform, opacity;
        /* Mantener pointer-events y demás comportamiento actual */
    }

    /* Cuando el contenedor recibe la clase in-view, las tarjetas caen y aparecen */
    .testimonials-grid.in-view .testimonial-card {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger: pequeñas demoras por tarjeta para efecto escalonado */
    .testimonials-grid.in-view .testimonial-card:nth-child(1) {
        transition-delay: 0.04s;
    }

    .testimonials-grid.in-view .testimonial-card:nth-child(2) {
        transition-delay: 0.10s;
    }

    .testimonials-grid.in-view .testimonial-card:nth-child(3) {
        transition-delay: 0.16s;
    }

    .testimonials-grid.in-view .testimonial-card:nth-child(4) {
        transition-delay: 0.22s;
    }

    .testimonials-grid.in-view .testimonial-card:nth-child(5) {
        transition-delay: 0.28s;
    }

    .testimonials-grid.in-view .testimonial-card:nth-child(6) {
        transition-delay: 0.34s;
    }

    .testimonials-grid.in-view .testimonial-card:nth-child(7) {
        transition-delay: 0.40s;
    }

    .testimonials-grid.in-view .testimonial-card:nth-child(8) {
        transition-delay: 0.46s;
    }

    .testimonials-grid.in-view .testimonial-card:nth-child(9) {
        transition-delay: 0.52s;
    }

    /* Si tu grid tiene más ítems, los nth-child siguientes heredarán la transición sin delay explícito */

    /* Aseguramos que el hover existente (elevación suave) siga funcionando encima de la animación */
    .testimonial-card:hover {
        /* Si ya tienes transform/box-shadow en hover, estas reglas solo refuerzan la elevación */
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    }
}

/* CONTACTO */
#contacto {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
}

#contacto .section-header h2,
#contacto .section-header p {
    color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: stretch;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    fill: rgba(255, 255, 255, 0.85);
}

.contact-item:hover .contact-icon {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(125, 81, 188, 0.4);
}

.contact-item:hover .contact-icon svg {
    fill: #fff;
}

.contact-map {
    margin-top: 32px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.contact-map iframe {
    display: block;
    width: 100%;
    flex-grow: 1;
    border: 0;
    min-height: 180px;
}

.btn-map-directions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    text-decoration: none;
    padding: 11px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-map-directions svg {
    width: 16px;
    height: 16px;
    fill: var(--white);
    transition: fill 0.3s ease;
}

.btn-map-directions:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-map-directions:hover svg {
    fill: var(--primary);
}

@media (max-width: 768px) {
    .contact-map {
        display: none;
    }
}

.contact-item a {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
}

.contact-item a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 14px;
    margin-top: 32px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.social-link svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    transition: fill 0.3s ease;
}

.social-link:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.social-link.facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
    color: #fff;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: transparent;
    color: #fff;
}

.social-link.whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
    color: #fff;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2);
}

.contact-form h3 {
    color: var(--dark);
    font-size: 24px;
    margin-bottom: 24px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--dark);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--light);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    background: rgba(125, 81, 188, 0.12);
    border: 1px solid rgba(125, 81, 188, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--primary);
    padding: 16px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(125, 81, 188, 0.15);
}

.btn-submit:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99, 69, 152, 0.4);
}


/* FAQ SECTION STYLES */
#faq {
    background: var(--white);
    padding: 22px 24px;
    margin-top: 50px;
}

#faq .section-header {
    text-align: center;
    margin-bottom: 48px;
}

#faq .section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

#faq .section-header p {
    color: #666;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.faq-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.faq-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.faq-item {
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f0f0f0;
}

.faq-question h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--dark);
    margin: 0;
    flex: 1;
    padding-right: 20px;
}

.faq-toggle {
    font-size: 24px;
    font-weight: 400;
    color: var(--accent);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    padding: 0;
}

.faq-answer p {
    color: #555;
    line-height: 1.7;
    margin: 0 0 10px 0;
}

.faq-answer ul {
    color: #555;
    line-height: 1.7;
    margin: 0 0 10px 0;
    padding-left: 20px;
}

.faq-answer li {
    margin-bottom: 8px;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    opacity: 1;
    padding: 0 24px 20px 24px;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-cta-btn {
    display: block;
    background: var(--accent);
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.faq-cta-btn:hover {
    background: var(--dark);
    transform: translateY(-2px);
    color: #fff;
}

/* RESPONSIVE FAQ */
@media (max-width: 992px) {
    .faq-layout {
        grid-template-columns: 1fr;
    }

    .faq-image-container {
        display: none;
    }
}

@media (max-width: 768px) {
    #faq {
        padding: 48px 24px;
    }

    #faq .section-header h2 {
        font-size: 28px;
    }

    #faq .section-header p {
        font-size: 16px;
    }

    .faq-question {
        padding: 10px 12px;
    }

    .faq-question h3 {
        font-size: 14px;
        padding-right: 10px;
    }

    .faq-toggle {
        font-size: 18px;
        width: 20px;
        height: 20px;
    }

    .faq-answer {
        padding: 0 0 10px 0;
    }

    .faq-answer p,
    .faq-answer ul {
        font-size: 13px;
        margin-bottom: 6px;
        line-height: 1.5;
    }

    .faq-item.active .faq-answer {
        padding: 0 12px 10px 12px;
    }
}

/* Estilo para el texto debajo de FAQ */
.faq-contact-cta {
    text-align: center;
    padding: 40px 20px;
    background-color: #ffffff;
    /* O el color de fondo de tu sección FAQ */
}

.faq-contact-cta p {
    font-size: 1.2rem;
    color: #666;
    font-weight: 400;
}

.faq-contact-cta .contact-link {
    color: var(--primary);
    /* Tu color morado */
    text-decoration: none;
    font-weight: 700;
    position: relative;
    transition: all 0.3s ease;
}

/* Efecto de subrayado animado al pasar el mouse */
.faq-contact-cta .contact-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.faq-contact-cta .contact-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.faq-contact-cta .contact-link:hover {
    opacity: 0.8;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .faq-contact-cta {
        padding: 20px 20px 40px 20px;
        /* Menos espacio arriba para que esté cerca de las FAQ */
    }

    .faq-contact-cta p {
        font-size: 1.1rem;
    }
}

/* FOOTER */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 24px 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.footer-logo img {
    height: 60px;
    margin-bottom: 10px;
    margin-top: -26px;
}

.footer-description {
    color: #aaa;
    font-size: 14px;
    line-height: 1.7;
    max-width: 300px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #aaa;
    font-size: 14px;
}

.footer-contact-item i {
    width: 20px;
    color: var(--primary);
    font-size: 14px;
}

.footer-contact-item a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: var(--white);
}

.footer-contact .footer-social-links {
    margin-top: 20px;
    justify-content: flex-start;
}

.footer-social-links {
    display: flex;
    gap: 12px;
}

.footer-social-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-social-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.1);
}

.footer-social-link:hover i.fa-facebook-f {
    color: #1877F2;
}

.footer-social-link:hover i.fa-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-social-link:hover i.fa-whatsapp {
    color: #25D366;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 24px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* ---- Language Switch Toggle ---- */
.lang-switch {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    padding: 3px;
    cursor: pointer;
    gap: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    flex-shrink: 0;
}
.lang-switch:hover {
    border-color: rgba(255,255,255,0.6);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.ls-side {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.55);
    transition: all 0.22s ease;
    white-space: nowrap;
}
.ls-side img {
    width: 17px;
    height: auto;
    border-radius: 2px;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.ls-sep {
    width: 1px;
    height: 16px;
    background: rgba(255,255,255,0.25);
    flex-shrink: 0;
}
/* Active side based on body class */
body.lang-es .lang-switch .ls-es,
body.lang-en .lang-switch .ls-en {
    background: #7d51bc;
    color: #fff;
    box-shadow: 0 2px 8px rgba(125,81,188,0.4);
}
body.lang-es .lang-switch .ls-es img,
body.lang-en .lang-switch .ls-en img {
    opacity: 1;
}

/* Desktop nav: position the switch between nav-links and hamburger */
nav .lang-switch {
    margin-left: 12px;
}

/* Mobile menu li: style the switch inside the mobile nav */
.lang-switch-li {
    display: flex;
    align-items: center;
    padding: 10px 24px 16px;
    border-top: 1px solid rgba(0,0,0,0.06);
    margin-top: 8px;
}
.lang-switch-li .lang-switch {
    background: rgba(125,81,188,0.08);
    border-color: rgba(125,81,188,0.2);
}
.lang-switch-li .ls-side {
    color: rgba(30,30,30,0.45);
}
.lang-switch-li .ls-sep {
    background: rgba(125,81,188,0.2);
}
body.lang-es .lang-switch-li .lang-switch .ls-es,
body.lang-en .lang-switch-li .lang-switch .ls-en {
    background: #7d51bc;
    color: #fff;
}
body.lang-es .lang-switch-li .ls-es img,
body.lang-en .lang-switch-li .ls-en img {
    opacity: 1;
}

/* Hide desktop switch on mobile, show mobile li version */
@media (max-width: 768px) {
    nav > .lang-switch {
        display: none !important;
    }
    .lang-switch-li {
        display: flex !important;
    }
}
/* Hide mobile li version on desktop */
@media (min-width: 769px) {
    .lang-switch-li {
        display: none !important;
    }
}

/* RESPONSIVE */
@media (max-width: 992px) {

    .hero .container,
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .contact-info {
        align-items: flex-start;
    }

    .contact-item {
        justify-content: flex-start;
    }

    .social-links {
        justify-content: flex-start;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 0;
        margin-bottom: 32px;
    }

    .hero-content p {
        margin: 0 auto 32px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .packages-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
        min-height: 250px;
    }

    .floating-card {
        display: none;
    }
}

@media (max-width: 768px) {
    section {
        padding: 48px 24px;
    }

    .hero {
        padding: 120px 24px 48px;
        min-height: auto;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    /* ===== SLIDE-IN DRAWER MENU ===== */
    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 20px;
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
        z-index: 9999;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .mobile-logo-container {
        display: block;
        text-align: center;
        margin-bottom: 25px;
        padding-bottom: 15px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        width: 100%;
    }

    .mobile-logo-img {
        height: 40px;
        width: auto;
    }

    /* Dark overlay behind drawer */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        opacity: 0;
        transition: opacity 0.35s ease;
    }

    .menu-overlay.active {
        display: block;
        opacity: 1;
    }

    /* Hamburger → X animation */
    .mobile-menu {
        display: flex;
        z-index: 10000;
    }

    .mobile-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .contact-form {
        padding: 24px;
    }

    .hero-mockup {
        max-width: 100%;
    }

    .browser-content {
        min-height: 200px;
    }

    .code-line {
        font-size: 11px;
    }
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn svg {
    stroke: var(--primary);
    transition: transform 0.3s ease;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.dropdown:hover .dropbtn svg {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    background-color: var(--white);
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    z-index: 1001;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    padding: 18px 0 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.dropdown-content a {
    color: #1a1c1d !important;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    font-size: 15px !important;
    font-weight: 500 !important;
    border-radius: 0;
    white-space: nowrap;
}

.dropdown-content a::after {
    display: none !important;
}

.dropdown-content a:hover {
    background-color: #f4effb;
    color: var(--accent) !important;
    transform: none !important;
}

/* Mobile Dropdown */
@media (max-width: 768px) {

    /* Arrow Animation for Mobile */
    .dropdown .dropbtn svg {
        transition: transform 0.3s ease;
    }

    .dropdown.active .dropbtn svg {
        transform: rotate(180deg);
    }

    /* Submenu Animation */
    .dropdown-content {
        position: static !important;
        display: block !important;
        /* Must be block to animate height */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        box-shadow: none !important;
        background-color: transparent !important;
        transform: none !important;
        width: 100% !important;
        padding-left: 20px !important;
        pointer-events: none !important;
        margin-top: 0 !important;
        transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
    }

    .dropdown.active .dropdown-content {
        max-height: 200px;
        /* High enough to fit content */
        opacity: 1 !important;
        visibility: visible !important;
        margin-top: 5px !important;
        pointer-events: auto !important;
    }

    .dropdown.active .dropdown-content a {
        color: #1a1c1d !important;
        font-size: 20px !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        padding: 10px 0 !important;
    }
}

/* Estilo opcional para personalizar el chatbot */
#chatbase-chat-container {
    font-family: 'Poppins', sans-serif;
}

#chatbase-chat-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

#chatbase-chat-button {
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(125, 81, 188, 0.3);
}

#chatbase-chat-button:hover {
    background: var(--secondary);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* Nosotros Section Styles - From Meta Ads */
#nosotros {
    background: transparent;
    position: relative;
    overflow: hidden;
    padding: 60px 0;
    color: var(--dark);
}

#nosotros .nosotros-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 4px;
}

#nosotros .nosotros-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

#nosotros .nosotros-header h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--dark) 0%, #334155 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

#nosotros .nosotros-header p {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
}

/* Stats Override */
#nosotros .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 80px;
    max-width: 100%;
}

#nosotros .stat-card {
    padding: 20px 10px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

#nosotros .stat-card:hover {
    transform: translateY(-5px);
}

#nosotros .stat-number {
    font-size: 72px;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 8px;
    display: block;
    line-height: 1;
    letter-spacing: -3px;
    font-family: 'Montserrat', sans-serif;
}

#nosotros .stat-label {
    color: #555;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin: 0;
}

/* Features Section */
#nosotros .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

#nosotros .feature-box {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 40px;
    border-radius: 24px;
    transition: 0.3s;
    text-align: center;
}

#nosotros .feature-box:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-5px);
    border-color: rgba(125, 81, 188, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

#nosotros .feature-box h3 {
    font-size: 24px;
    color: var(--dark);
    margin-bottom: 12px;
    font-weight: 700;
}

#nosotros .feature-box p {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

#nosotros .feature-icon-wrapper {
    width: 64px;
    height: 64px;
    background: transparent;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    transition: 0.3s;
}

#nosotros .feature-icon-wrapper img {
    height: 100%;
    object-fit: contain;
    transition: 0.3s;
}

#nosotros .feature-box:hover .feature-icon-wrapper img {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 992px) {
    #nosotros {
        padding: 60px 24px;
    }

    #nosotros .nosotros-container {
        padding: 0 20px;
    }

    #nosotros .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    #nosotros .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #nosotros .nosotros-header h2 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    #nosotros {
        padding: 50px 20px;
    }

    #nosotros .nosotros-container {
        padding: 0 16px;
    }

    #nosotros .nosotros-header {
        margin-bottom: 40px;
    }

    #nosotros .nosotros-header h2 {
        font-size: 32px;
    }

    #nosotros .nosotros-header p {
        font-size: 16px;
    }

    #nosotros .stats-grid {
        margin-bottom: 50px;
        gap: 16px;
    }

    #nosotros .stat-card {
        padding: 24px 16px;
    }

    #nosotros .stat-number {
        font-size: 56px;
        letter-spacing: -2px;
    }

    #nosotros .feature-box {
        padding: 30px 24px;
    }
}

@media (max-width: 576px) {
    #nosotros {
        padding: 30px 16px;
    }

    #nosotros .nosotros-container {
        padding: 0 4px;
    }

    #nosotros .nosotros-header {
        margin-bottom: 30px;
    }

    #nosotros .nosotros-header h2 {
        font-size: 28px;
        margin-bottom: 12px;
        font-family: 'Montserrat', sans-serif;
    }

    #nosotros .nosotros-header p {
        font-size: 16px;
        line-height: 1.5;
    }

    #nosotros .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 30px;
    }

    #nosotros .stat-card {
        padding: 16px 12px;
        border-radius: 12px;
    }

    #nosotros .stat-number {
        font-size: 56px;
        margin-bottom: 4px;
        letter-spacing: -2px;
    }

    #nosotros .stat-label {
        font-size: 11px;
        letter-spacing: 0.5px;
    }

    #nosotros .features-grid {
        gap: 12px;
    }

    #nosotros .feature-box {
        padding: 20px 16px;
        border-radius: 16px;
    }

    #nosotros .feature-icon-wrapper {
        width: 50px;
        height: 50px;
        margin-bottom: 16px;
        font-size: 20px;
    }

    #nosotros .feature-box h3 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    #nosotros .feature-box p {
        font-size: 15px;
        line-height: 1.5;
    }

    /* Footer Mobile */
    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    /* Orden de las columnas en móvil: Logo (col 1) al final */
    .footer-col:nth-child(1) { order: 4; }
    .footer-col:nth-child(2) { order: 1; }
    .footer-col:nth-child(3) { order: 2; }
    .footer-col:nth-child(4) { order: 3; }

    .footer-description {
        max-width: 100%;
    }

    .footer-col h4 {
        margin-bottom: 16px;
    }

    .footer-contact-item {
        justify-content: center;
    }

    .footer-contact .footer-social-links {
        justify-content: center;
        padding-bottom: 40px;
    }
}