/* ================================================
   EJE CREATIVO - ESTILOS PRINCIPALES
   ================================================ */

:root {
    --bg-dark: #050505;
    --bg-card: rgba(20, 20, 20, 0.7);
    --text-main: #ffffff;
    --text-muted: #b8b8c2;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(8, 8, 8, 0.75);
    --glass-blur: blur(16px);
    --nav-bg-start: rgba(10, 10, 10, 0.2);
    --nav-bg-scrolled: rgba(10, 10, 10, 0.92);
    --input-bg: rgba(15,23,42,0.5);
    --footer-bg: rgba(8, 8, 8, 0.75);
    --modal-bg: #0a0a0a;
    --modal-info-bg: linear-gradient(135deg, #111, #0a0a0a);
    --placeholder-bg: linear-gradient(45deg, #111111, #050505);
    --clients-marquee-bg: rgba(15,23,42,0.5);
    --stats-bg: rgba(253,194,9,0.03);
}


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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* Background Blobs — position:fixed so they never extend page height */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    animation: float 20s infinite alternate ease-in-out;
    pointer-events: none;
    will-change: transform;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary), transparent 70%);
}

.blob-2 {
    top: 40%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent), transparent 70%);
    animation-delay: -5s;
}

.blob-3 {
    bottom: -10%;
    left: 20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--secondary), transparent 70%);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 100px) scale(1.2); }
}

/* Typography & Utilities */
.text-center { text-align: center; }
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section { padding: 8rem 0; }
.section-alt { padding: 8rem 0; position: relative; }
.section h2, .section-alt h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.accent-line {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 1rem 0 2rem;
    border-radius: 2px;
}

/* Glassmorphism Classes */
.glass-box {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--nav-bg-start, rgba(10, 10, 10, 0.2));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    padding: 1.5rem 0;
}

.glass-nav.scrolled {
    padding: 1rem 0;
    background: var(--nav-bg-scrolled, rgba(10, 10, 10, 0.92));
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.glass-nav.nav-hidden {
    transform: translateY(-100%);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary);
    font-weight: 300;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}
.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-main);
    transition: all 0.3s ease-in-out;
}

/* Buttons */
.btn-primary, .btn-outline, .btn-small {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #d97706);
    color: black;
    box-shadow: 0 10px 20px rgba(255, 204, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(255, 204, 0, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.btn-small {
    padding: 0.6rem 1.5rem;
    background: var(--primary);
    color: white !important;
}

.btn-small:hover {
    background: var(--accent);
    color: white !important;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto;
    gap: 2rem 4rem;
    align-items: center;
}

.hero-text-wrapper {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    padding-top: 2rem;
}

.hero-visual {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.hero-text-wrapper h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text-wrapper p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-btns {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    gap: 1rem;
    align-items: center;
    padding-bottom: 2rem;
}

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

.glass-sphere {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    animation: float-sphere 6s ease-in-out infinite alternate;
}

.glass-card-float {
    position: absolute;
    bottom: 20%;
    left: 10%;
    padding: 0.8rem 1.5rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(253, 194, 9, 0.3);
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #fdc209;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    animation: float-card 8s ease-in-out infinite alternate-reverse;
}

/* Bubbles Grid */
.bubble {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bubble-1 { top: 5%; left: 2%; width: 240px; height: 240px; animation: float-1 25s infinite alternate ease-in-out; z-index: 1; }
.bubble-2 { top: 25%; right: 2%; width: 220px; height: 220px; animation: float-2 30s infinite alternate ease-in-out; z-index: 1; }
.bubble-3 { bottom: 5%; left: 20%; width: 260px; height: 260px; animation: float-3 20s infinite alternate ease-in-out; z-index: 1; }

/* Botones de proceso — fila extra del grid, columna derecha (bajo las burbujas) */
.bubble-buttons {
    grid-column: 3;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 1.5rem;
    width: auto;
    padding: 0;
    align-self: center;
}

.bubble-btn {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    overflow: hidden;
    background: rgba(15, 15, 15, 0.75) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(253, 194, 9, 0.5);
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.08);
    outline: none;
    display: inline-block;
}

/* Brillo animado que cruza el botón al hover */
.bubble-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.12), transparent);
    transition: left 0.5s ease;
}

.bubble-btn:hover::before { left: 160%; }

.bubble-btn:hover,
.bubble-btn.active {
    background: linear-gradient(135deg, #fdc209, #d97706);
    color: #000;
    border-color: transparent;
    box-shadow: 0 8px 30px rgba(253, 194, 9, 0.45), 0 0 0 1px rgba(253,194,9,0.3);
    transform: translateY(-4px) scale(1.04);
    letter-spacing: 4px;
}

.bubble-btn:active { transform: translateY(-1px) scale(1.02); }

/* Info Modal estilos específicos */
.info-modal-box {
    max-width: 640px;
    flex-direction: column;
    overflow: hidden;
}

.info-modal-box h3 {
    font-size: 2rem;
    background: linear-gradient(135deg, #fff, #fdc209);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.info-nav-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 2rem 2rem;
    gap: 1rem;
}

.info-nav-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-nav-btn:hover { background: #fdc209; color: #000; border-color: #fdc209; }

@keyframes float-1 {
    0% { transform: translate(0, 0); }
    50% { transform: translate(40px, 60px); }
    100% { transform: translate(20px, 120px); }
}
@keyframes float-2 {
    0% { transform: translate(0, 0); }
    50% { transform: translate(-50px, 100px); }
    100% { transform: translate(-20px, -40px); }
}
@keyframes float-3 {
    0% { transform: translate(0, 0); }
    50% { transform: translate(60px, -80px); }
    100% { transform: translate(-60px, -20px); }
}

.bubble-halo {
    position: absolute; width: 180%; height: 180%;
    background: radial-gradient(circle, rgba(253, 194, 9, 0.35), transparent 60%);
    z-index: 0;
}
.bubble-img {
    width: 100%; height: 100%;
    border-radius: 50%; background-size: cover; background-position: center;
    border: 2px solid rgba(255,255,255,0.1);
    z-index: 1;
}
.bubble .glass-card-float {
    bottom: -15px; left: 50%; transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9); border: 1px solid rgba(253, 194, 9, 0.6);
    animation: none; white-space: nowrap; font-size: 0.95rem; z-index: 2;
}

/* WhatsApp Flotante */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 10px;
}
.wa-text {
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(5px);
    border: 1px solid #333;
    color: #a1a1aa;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.8rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    max-width: 200px;
    text-align: right;
    animation: bounceIn 0.5s ease;
}
.wa-btn {
    width: 60px; height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease;
}
.wa-btn:hover {
    transform: scale(1.1) rotate(5deg);
}
.wa-btn svg { width: 35px; height: 35px; }

@keyframes float-sphere {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-30px) rotate(10deg); }
}

@keyframes float-card {
    0% { transform: translateY(0) translateX(0); }
    100% { transform: translateY(20px) translateX(-10px); }
}

/* Split Layout (About) */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.split-visual {
    overflow: visible;
    border-radius: 20px;
    position: relative;
    padding: 0 1rem;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border: 1px dashed rgba(255,255,255,0.2);
}

.about-bubble-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

/* Services Grid */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.services-grid > div {
    flex: 1 1 300px;
    max-width: 400px;
}

.card-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: all 0.4s ease;
    height: 100%;
    /* flex column para que el hint siempre quede al pie */
    display: flex;
    flex-direction: column;
}

.card-glass:hover {
    transform: translateY(-10px);
    background: rgba(30, 30, 30, 0.8);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card-glass .icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
}

.card-glass h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-glass p {
    color: var(--text-muted);
    flex-grow: 1; /* empuja el hint hacia abajo */
}

/* Indicador "Ver más" en las tarjetas de servicio */
.card-expand-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: gap 0.3s ease, opacity 0.3s ease;
    opacity: 0.5;
}

.card-expand-hint svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.card-glass:hover .card-expand-hint {
    gap: 0.75rem;
    opacity: 0.85;
}

.card-glass:hover .card-expand-hint svg {
    transform: translateX(3px);
}

/* Desktop: flecha aún más discreta */
@media (min-width: 769px) {
    .card-expand-hint {
        font-size: 0.72rem;
        opacity: 0.45;
    }
    .card-expand-hint svg {
        width: 12px;
        height: 12px;
    }
    .card-glass:hover .card-expand-hint {
        opacity: 0.8;
    }
}

/* Portfolio Masonry Grid */
.portfolio-grid {
    column-count: 1;
    column-gap: 2rem;
}
@media (min-width: 768px) { .portfolio-grid { column-count: 2; } }
@media (min-width: 1024px) { .portfolio-grid { column-count: 3; } }

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    display: inline-block;
    width: 100%;
    margin-bottom: 2rem;
    text-decoration: none;
    color: white;
    break-inside: avoid;
    transform: translateZ(0); /* Fix for Safari rendering */
}

/* Heights para desktop - mosaic look */
@media (min-width: 769px) {
    .portfolio-item:nth-child(even) { height: 380px; }
    .portfolio-item:nth-child(odd) { height: 260px; }
    .portfolio-item:nth-child(3n) { height: 480px; }
}

/* Mobile: altura fija uniforme para no cortar imágenes */
@media (max-width: 768px) {
    .portfolio-item {
        height: 240px !important;
    }
    .portfolio-grid {
        column-count: 1;
    }
}

.portfolio-item .plus-icon {
    position: absolute; top: 1rem; right: 1rem;
    width: 40px; height: 40px; background: #fdc209; color: black;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: normal; opacity: 0; transform: scale(0.5); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.portfolio-item:hover .plus-icon { opacity: 1; transform: scale(1); }

.portfolio-img {
    width: 100%;
    height: 100%;
    background: #111111;
}

.portfolio-img img {
    width: 100%;
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.img-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(45deg, #111111, #050505);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(to top, rgba(5,5,5,0.95) 60%, transparent);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.05);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
    opacity: 1;
}

/* En dispositivos táctiles el overlay siempre visible */
@media (hover: none) {
    .portfolio-overlay {
        transform: translateY(0);
        opacity: 1;
    }
    .portfolio-item .plus-icon {
        opacity: 1;
        transform: scale(1);
    }
}

.portfolio-overlay .category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fdc209;
    display: block;
    margin-bottom: 0.5rem;
}

/* Modal Lightbox */
.portfolio-modal {
    position: fixed; top:0; left:0; width: 100%; height: 100%; z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    visibility: hidden; opacity: 0; transition: all 0.3s;
}
.portfolio-modal.active { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(15px); }
.modal-box {
    position: relative; z-index: 10001; background: var(--modal-bg, #0a0a0a);
    width: 95%; max-width: 1100px; border-radius: 20px; overflow: hidden;
    display:flex; flex-direction: column; border: 1px solid rgba(255,255,255,0.15);
    transform: scale(0.95) translateY(20px); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh; box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}
.portfolio-modal.active .modal-box { transform: scale(1) translateY(0); }
.modal-media { width: 100%; flex-shrink: 0; display: flex; background: #000; min-height: 220px; }
@media (min-width: 900px) { 
    .modal-box { flex-direction: row; } 
    .modal-media { width: 55%; max-height: none; min-height: unset; }
    .modal-info { width: 45%; }
}

/* Portfolio modal en mobile */
@media (max-width: 899px) {
    #portfolioModal .modal-body {
        flex-direction: column !important;
        overflow-y: auto;
        max-height: 88vh;
    }
    #portfolioModal .modal-media {
        width: 100% !important;
        height: 220px !important;
        min-height: 220px !important;
        max-height: 220px !important;
        flex-shrink: 0;
    }
    #portfolioModal .modal-media img,
    #portfolioModal .modal-media video {
        width: 100% !important;
        height: 220px !important;
        object-fit: cover !important;
    }
    #portfolioModal .modal-info {
        padding: 1.75rem !important;
        overflow-y: auto;
    }
    #portfolioModal .modal-info h3 {
        font-size: 1.4rem !important;
    }
    #portfolioModal .modal-info p {
        font-size: 0.95rem !important;
    }
}


/* =============================================
   SERVICE MODAL — especificidad alta con #serviceModal
   ============================================= */

/* La caja del modal de servicio scrollea verticalmente en mobile */
#serviceModal .modal-box {
    max-width: 920px;
    padding: 0;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    max-height: 92dvh;
    flex-direction: column;
}

/* Body: siempre columna en mobile */
#serviceModal .service-modal-body {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;       /* evita que flex items desborden */
    overflow: hidden;   /* bloquea cualquier desborde horizontal interno */
}

/* Imagen arriba — altura reducida y fija en mobile */
#serviceModal .service-modal-media {
    width: 100%;
    min-width: 0;
    flex-shrink: 0;
    height: 180px;
    background: #111;
    overflow: hidden;
    display: flex;
    position: relative;
}

/* Slider track horizontal interno (no causa scroll externo) */
.srv-slider-track {
    display: flex;
    height: 100%;
    width: 100%;
    min-width: 0;
    transition: transform 0.5s ease;
}

/* Cada slide ocupa exactamente el 100% del track */
.srv-slide {
    min-width: 100%;
    max-width: 100%;
    height: 100%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.srv-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Texto: abajo, todo visible sin scroll horizontal */
#serviceModal .service-modal-info {
    width: 100%;
    min-width: 0;
    padding: 1.5rem 1.25rem 2rem;
    background: var(--modal-info-bg, linear-gradient(135deg, #111, #0a0a0a));
    overflow-x: hidden;
    word-break: break-word;
    overflow-wrap: break-word;
}

#serviceModal #srvModalTitle {
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

#serviceModal #srvModalDesc {
    color: #d4d4d8;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

#serviceModal #srvModalDetails {
    color: #a1a1aa;
    line-height: 1.85;
    font-size: 0.9rem;
}

/* Desktop (≥ 768px): imagen izquierda, texto derecha */
@media (min-width: 768px) {
    #serviceModal .modal-box {
        overflow: hidden !important;
        max-height: 88vh;
    }

    #serviceModal .service-modal-body {
        flex-direction: row;
        height: 540px;
        overflow: hidden;
    }

    #serviceModal .service-modal-media {
        width: 42%;
        height: auto;
        flex-shrink: 0;
    }

    #serviceModal .service-modal-info {
        width: 58%;
        padding: 2.5rem;
        overflow-y: auto;
        overflow-x: hidden;
        max-height: 540px;
    }

    #serviceModal #srvModalTitle { font-size: 1.9rem; margin-bottom: 1rem; }
    #serviceModal #srvModalDesc  { font-size: 1rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; }
    #serviceModal #srvModalDetails { font-size: 0.95rem; }
}

.modal-info { padding: 2rem 2.5rem; overflow-y: auto; display:flex; flex-direction: column; justify-content: flex-start; background: var(--modal-info-bg, linear-gradient(135deg, #111, #0a0a0a)); }
.modal-info h3 { margin-bottom: 1.5rem; font-size: 2.2rem; line-height: 1.1; background: linear-gradient(135deg, #fff, #a1a1aa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.modal-info p { color: #d4d4d8; line-height: 1.8; font-size: 1.05rem;}
.modal-info .category { color: #fdc209; margin-bottom: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem; display: inline-block; padding: 5px 15px; border: 1px solid rgba(253,194,9,0.3); border-radius: 20px;}
.modal-close {
    position: absolute; top: 20px; right: 25px; z-index: 10002;
    background: rgba(0,0,0,0.6); color: white; border: 1px solid rgba(255,255,255,0.2); font-size: 2rem; width: 45px; height: 45px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; backdrop-filter: blur(5px);
}
.modal-close:hover { background: #fdc209; color: black; transform: rotate(90deg); border-color: #fdc209; }

/* Stats Section */
.stats-section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}
.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(253,194,9,0.04) 0%, transparent 60%);
    pointer-events: none;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    text-align: center;
}
.stat-item {
    padding: 2.5rem 1.5rem;
    border: 1px solid rgba(253,194,9,0.15);
    border-radius: 20px;
    background: rgba(253,194,9,0.03);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.stat-item::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #fdc209, transparent);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}
.stat-item:hover::after { transform: scaleX(1); }
.stat-item:hover {
    background: rgba(253,194,9,0.07);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.8rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, #fdc209, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
    display: block;
}
.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 400;
    line-height: 1.4;
}

/* CTA Banner */
.cta-banner {
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(253,194,9,0.08) 0%, rgba(0,0,0,0) 50%, rgba(253,194,9,0.05) 100%);
    border-top: 1px solid rgba(253,194,9,0.15);
    border-bottom: 1px solid rgba(253,194,9,0.15);
}
.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%; left: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(253,194,9,0.12), transparent 65%);
    pointer-events: none;
}
.cta-banner::after {
    content: '';
    position: absolute;
    bottom: -50%; right: -10%;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(253,194,9,0.08), transparent 65%);
    pointer-events: none;
}
.cta-banner-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2rem;
}
.cta-banner-inner h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.cta-banner-inner p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}
.cta-banner-inner .btn-primary {
    font-size: 1.05rem;
    padding: 1.1rem 2.5rem;
    box-shadow: 0 15px 35px rgba(253,194,9,0.35);
}
.cta-banner-inner .btn-primary:hover {
    box-shadow: 0 20px 45px rgba(253,194,9,0.5);
    transform: translateY(-4px) scale(1.02);
}
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .stat-item { padding: 2rem 1rem; }
    .stat-number { font-size: 2.4rem; }
    .cta-banner { padding: 4rem 0; }
    .cta-banner-inner h2 { font-size: 1.8rem; }
}

/* Testimonials */
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding-bottom: 0;
}

.testimonial-card {
    width: 100%;
    min-width: 0;
    max-width: none;
    scroll-snap-align: unset;
    padding: 2.5rem;
    flex-shrink: unset;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border-top: 3px solid var(--primary) !important;
    overflow: hidden;
}

.testimonial-card .quote-icon {
    font-size: 4rem;
    line-height: 1;
    color: var(--primary);
    opacity: 0.35;
    font-family: Georgia, serif;
    margin-bottom: 0.5rem;
    display: block;
}

.testimonial-card .stars {
    color: #fbbf24;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.testimonial-card .quote {
    font-size: 1rem;
    font-style: italic;
    line-height: 1.75;
    color: #e2e8f0;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    overflow-wrap: break-word;
    word-break: break-word;
    overflow: hidden;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.25rem;
    margin-top: auto;
}

.avatar-placeholder {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    color: #000;
    box-shadow: 0 4px 12px rgba(253, 194, 9, 0.3);
}

.author-info h4 {
    margin: 0 0 2px;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
}
.author-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: block;
}

/* Mobile: slider automático */
@media (max-width: 768px) {
    .testimonials-slider {
        display: flex;
        overflow: hidden;
        position: relative;
        gap: 0;
        padding-bottom: 0;
    }
    .testimonial-card {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        padding: 1.75rem 1.5rem;
        border-radius: 16px !important;
        min-height: 260px;
        flex-shrink: 0;
    }
    .testimonial-card .quote {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
    .testimonial-card .quote-icon {
        font-size: 3rem;
        margin-bottom: 0.25rem;
    }
    .testimonial-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 1.25rem;
    }
}

/* Clientes Marquee */
.clients-marquee {
    width: 100%;
    overflow: hidden;
    background: rgba(15,23,42,0.5);
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.client-logo {
    padding: 0 2.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease;
}

.client-logo:hover {
    filter: grayscale(0%) opacity(1);
}

/* Logo con link — comportamiento enriquecido */
.client-logo--link {
    cursor: pointer;
}

.client-logo--link:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.08);
}

.client-logo--link:hover img {
    filter: drop-shadow(0 0 10px rgba(253, 194, 9, 0.5));
}

.client-logo--link a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    outline: none;
}

.client-logo img {
    width: auto;
    max-width: 140px;
    min-width: 80px;
    height: 50px;
    object-fit: contain;
    object-position: center;
    transition: filter 0.3s ease;
    display: block;
}

.client-logo span {
    font-family: 'Outfit', sans-serif;
    font-weight: bold;
    font-size: 1.5rem;
    color: white;
}

@media (hover: none) {
    .client-logo {
        filter: grayscale(0%) opacity(1);
    }
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Contacto */
.contact-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 4rem;
}

.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { margin-bottom: 2rem; color: var(--text-muted); }

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.contact-link:hover { color: var(--primary); }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group input, 
.input-group select, 
.input-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(15,23,42,0.5);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.3s;
}

.input-group input:focus, 
.input-group select:focus, 
.input-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.2);
}

.input-group select {
    appearance: none;
    cursor: pointer;
}

.input-group select option {
    background: var(--bg-dark);
}

/* Footer */
.main-footer {
    margin-top: 4rem;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
    border-left: none;
    border-right: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    padding: 4rem 2rem;
}

.footer-brand p {
    margin-top: 1rem;
    color: var(--text-muted);
}

.footer-links ul {
    list-style: none;
    margin-top: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    line-height: 2;
    transition: color 0.3s;
}

.footer-links a:hover { color: var(--accent); }

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
.reveal, .reveal-delay, .reveal-delay-2, .reveal-up, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 0;
}

.reveal { transform: translateY(30px); }
.reveal-delay { transform: translateY(30px); transition-delay: 200ms; }
.reveal-delay-2 { transform: translateY(30px); transition-delay: 400ms; }
.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-scale { transform: scale(0.9); }

.active.reveal, .active.reveal-delay, .active.reveal-delay-2, .active.reveal-up, .active.reveal-left, .active.reveal-right, .active.reveal-scale {
    opacity: 1;
    transform: translate(0) scale(1);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content, .split-layout, .contact-box {
        grid-template-columns: 1fr;
    }
    
    .hero-text-wrapper, .hero-visual, .hero-btns, .bubble-buttons {
        grid-column: 1;
        grid-row: auto;
    }

    .hero-visual {
        height: 300px;
    }

    .bubble-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-text-wrapper {
        text-align: center;
    }
    
    .hero-text-wrapper p {
        margin: 0 auto 2.5rem;
    }
    
    .hero-btns {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        background: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        /* Oculto por defecto: translate en vez de left para mejor rendimiento */
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
        z-index: 999;
        padding-top: 80px;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.3rem;
        font-weight: 600;
        padding: 0.5rem 0;
    }

    .nav-links .btn-small {
        font-size: 1.1rem;
        padding: 0.9rem 2.5rem;
    }
    
    .contact-box { padding: 2rem; }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .bubble-1 { width: 140px; height: 140px; }
    .bubble-2 { width: 125px; height: 125px; }
    .bubble-3 { width: 150px; height: 150px; }

    /* Logos de clientes más pequeños en mobile */
    .client-logo {
        padding: 0 1.5rem;
    }
    .client-logo img {
        max-width: 100px;
        height: 40px;
    }
    .client-logo span {
        font-size: 1.1rem;
    }

    /* Indicadores del slider de testimonios */
    .testimonial-dots {
        display: flex !important;
        justify-content: center;
        gap: 8px;
        margin-top: 1.5rem;
    }

    /* Servicios: ajustar card height en mobile */
    .services-grid > div {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .card-glass {
        padding: 2rem 1.5rem;
    }
}
