/* ==========================================================================
   1. HEADER & NAVBAR (MOBILE FIRST)
   ========================================================================== */

/* Header */
.id-header { background: var(--oscuro); padding: 16px 0; position: sticky; top: 0; z-index: 100000;}
.id-container { display: flex; justify-content: space-between; align-items: center; max-width: 1280px; margin: 0 auto; padding: 0 24px; width: 100%; position: relative; }

.id-header .logo { position: relative; z-index: 100010; transition: opacity 0.25s ease, visibility 0.25s ease; }
.logo a, .logo-link { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 1.4rem; letter-spacing: -0.5px; white-space: nowrap; transition: color var(--duracion-rapida); }
.logo-icon { height: 36px; width: auto; display: block; flex-shrink: 0; }
.logo-text { color: var(--navH); font-weight: 800; transition: color var(--duracion-rapida); }

/* ==========================================================================
   LOGO: COLOR EN REPOSO Y EN HOVER (KINETIC TEXT ROLL)
   ========================================================================== */
.logo-link .logo-text.k-roll .k-top {
    color: var(--navH); /* Color en REPOSO (Azul actual) */
}
.logo-link .logo-text.k-roll .k-bot {
    color: #ffffff;     /* Color en HOVER (Blanco) */
}
.logo-link:hover .logo-text.k-roll .k-top {
    transform: translateY(-100%);
}
.logo-link:hover .logo-text.k-roll .k-bot {
    transform: translateY(-100%);
}

/* Menú */
.id-nav { display: flex; gap: 24px; list-style: none; align-items: center; margin: 0; padding: 0; }
.id-nav a { color: var(--blanco); text-decoration: none; font-weight: 500; font-size: 0.95rem; white-space: nowrap; transition: color var(--duracion-rapida); }
.id-nav a:hover { color: var(--navH); }

/* Submenú */
.id-has-drop { position: relative; }
.id-sub { display: none; position: absolute; top: 100%; left: 0; background: var(--oscuro); min-width: 210px; padding: 10px 0; list-style: none; border-radius: 0 0 8px 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); border-top: none; z-index: 100020; }
.id-has-drop:hover .id-sub { display: block; }
.id-sub li a { padding: 9px 18px; font-size: 0.92rem; display: block; white-space: nowrap; }
.id-sub li a:hover { background: rgba(255,255,255,0.08); color: #ffffff; }

/* CTA */
.id-cta { background: var(--cta); color: var(--blanco) !important; padding: 10px 18px; border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 0.92rem; white-space: nowrap; flex-shrink: 0; transition: background var(--duracion-rapida); box-shadow: 0 4px 12px rgba(187, 4, 75, 0.3); }
.id-cta:hover { background: var(--ctaH); }

/* Hamburguesa / Botón Cerrar (X) */
.id-toggle { 
    display: none; 
    background: transparent; 
    border: none; 
    cursor: pointer; 
    padding: 0; 
    width: 36px; 
    height: 36px; 
    position: relative; 
    z-index: 100001; 
    align-items: center; 
    justify-content: center; 
}
.id-toggle span { 
    display: block; 
    width: 24px; 
    height: 2.5px; 
    background: #ffffff; 
    border-radius: 2px; 
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, top 0.3s ease; 
    position: absolute; 
    left: 6px; 
}
.id-toggle span:nth-child(1) { top: 9px; }
.id-toggle span:nth-child(2) { top: 16.5px; }
.id-toggle span:nth-child(3) { top: 24px; }

/* Animación limpia y precisa a X */
.id-toggle.is-active span:nth-child(1) { 
    top: 16.5px; 
    transform: rotate(45deg); 
}
.id-toggle.is-active span:nth-child(2) { 
    opacity: 0; 
    transform: scale(0); 
}
.id-toggle.is-active span:nth-child(3) { 
    top: 16.5px; 
    transform: rotate(-45deg); 
}

/* Responsive Header */
@media (max-width: 991px) {
    .id-header .logo { z-index: 100010; }
    .id-toggle { display: flex; z-index: 100010; }
    
    body.menu-open {
        overflow: hidden !important;
    }

    /* El logo del header PERMANECE VISIBLE siempre */
    .id-header .logo {
        opacity: 1 !important;
        visibility: visible !important;
    }

    body.menu-open .id-cta {
        display: none !important;
    }

    .id-nav-wrapper { 
        position: fixed; 
        top: 0; 
        right: -100%; 
        width: 100%; 
        height: 100vh;
        max-height: 100vh; 
        background: #000c1e; 
        transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1); 
        padding: 85px 36px 30px 24px; 
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        z-index: 100005;
    }
    .id-nav-wrapper.is-open { right: 0; }
    
    .desktop-nav { display: none !important; }

    .mobile-nav {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        text-align: right;
        width: 100%;
        gap: 22px;
        padding-right: 6px;
        padding-bottom: 20px;
    }

    .mobile-nav-group {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 5px;
    }

    .mobile-cat-label {
        font-size: 0.72rem;
        font-weight: 700;
        color: #64748b;
        letter-spacing: 1.2px;
        text-transform: uppercase;
        margin-bottom: 2px;
    }

    .mobile-nav-link {
        font-size: 1.25rem;
        font-weight: 800;
        color: #ffffff;
        text-decoration: none;
        transition: color 0.2s ease;
        line-height: 1.3;
    }

    .mobile-nav-link:hover, .mobile-nav-link:focus {
        color: #38bdf8;
    }
}

@media (min-width: 992px) {
    .id-toggle { display: none; }
    .mobile-nav { display: none !important; }
    .desktop-nav { display: flex; }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    position: relative;
    width: 100%;
    min-height: 65vh;
    background-image: var(--hero-img, linear-gradient(135deg, #00112d 0%, #003366 100%));
    background-color: var(--oscuro);
    background-size: 70%;
    background-attachment: fixed;
    background-position: right top;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.hero-mobile-img {
    display: none;
}

.hero.bg-agencia-creativa-home {
    background-image: url('/assets/imagenes/fondo-ingenio-diseno.webp'), linear-gradient(135deg, #00112d 0%, #003366 100%);
}

.hero.bg-diseno-de-imagen-corporativa {
    background-image: url('/assets/imagenes/diseno-de-marca-imagen-corporativa.webp'), linear-gradient(135deg, #00112d 0%, #003366 100%);
}

.hero.bg-diseno-paginas-web {
    background-image: url('/assets/imagenes/diseno-de-pagina-web-corporativa.webp'), linear-gradient(135deg, #00112d 0%, #003366 100%);
}

.hero.bg-diseno-tiendas-en-linea {
    background-image: url('/assets/imagenes/diseno-de-tiendas-en-linea.webp'), linear-gradient(135deg, #00112d 0%, #003366 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgb(0 17 45) 10%, rgba(0, 17, 45, 0) 50%);
    display: flex;
    align-items: center;
    z-index: 1;
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
}

.hero-content-left {
    max-width: 600px;
    color: #ffffff;
    animation: fadeInUp 0.8s ease-in-out;
}

.hero-content-left h1 {
    font-size: clamp(2.2rem, 3.8vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    text-wrap: balance;
}

.hero-content-left p {
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 30px;
    color: #e0e0e0;
}

.btn-hero-cta {
    display: inline-block;
    background-color: var(--principal);
    color: #ffffff;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 94, 178, 0.4);
    transition: all 0.3s ease;
}

.btn-hero-cta:hover {
    background-color: #004080;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 94, 178, 0.6);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero {
        display: flex;
        flex-direction: column;
        min-height: auto;
        background-image: none !important;
        background-color: var(--oscuro);
    }

    .hero-mobile-img {
        display: block;
        width: 100%;
        height: 280px;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }

    .hero.bg-agencia-creativa-home .hero-mobile-img {
        background-image: url('/assets/imagenes/fondo-ingenio-diseno.webp');
    }

    .hero.bg-diseno-de-imagen-corporativa .hero-mobile-img {
        background-image: url('/assets/imagenes/diseno-de-marca-imagen-corporativa.webp');
    }

    .hero.bg-diseno-paginas-web .hero-mobile-img {
        background-image: url('/assets/imagenes/diseno-de-pagina-web-corporativa.webp');
    }

    .hero.bg-diseno-tiendas-en-linea .hero-mobile-img {
        background-image: url('/assets/imagenes/diseno-de-tiendas-en-linea.webp');
    }

    .hero-overlay {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        background: transparent;
        padding: 24px 0 36px 0;
    }

    .hero-container {
        padding: 0 20px;
    }

    .hero-content-left {
        max-width: 100%;
    }

    .hero-content-left h1 {
        font-size: 1.8rem;
        line-height: 1.25;
        margin-bottom: 16px;
    }

    .hero-content-left p {
        font-size: 1.05rem;
        line-height: 1.5;
        margin-bottom: 24px;
    }

    .btn-hero-cta {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }
}

/* ==========================================================================
   SERVICIOS OFFSET
   ========================================================================== */

.servicio-offset-item {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    min-height: 380px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.servicio-offset-item:last-child {
    margin-bottom: 0;
}

.servicio-text-col {
    position: absolute;
    left: 0px;
    color: var(--parrafo);
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    z-index: 2;
    width: 55%;
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
    transition: box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-radius 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.titulo-servicio {
    margin-bottom: 15px;
    font-size: 1.6rem;
    font-weight: 800;
    transition: color 0.3s ease;
}

.titulo-servicio a {
    font-weight: 800;
    color: var(--oscuro);
    text-decoration: none;
    transition: color 0.3s ease;
}

.titulo-servicio a:hover {
    color: var(--cta);
}

.servicio-image-col {
    width: 100%;
    margin-left: 45%;
    overflow: hidden;
    border-radius: 8px;
}

.servicio-image-col img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.servicio-offset-item:nth-of-type(even) .servicio-text-col {
    left: auto;
    right: 0px;
}
.servicio-offset-item:nth-of-type(even) .servicio-image-col {
    margin-left: 0;
    margin-right: 45%;
}

/* ==========================================================================
   EXPERIMENTO DE ANIMACIÓN AL HOVER (CON KINETIC TEXT ROLL LETRA POR LETRA)
   ========================================================================== */
.k-roll {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    overflow: hidden;
    vertical-align: middle;
    line-height: 1.25;
}

.k-word {
    display: inline-flex;
    white-space: nowrap;
}

.k-space {
    display: inline;
}

.k-char {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    overflow: hidden;
    height: 1.25em;
    line-height: 1.25em;
}

.k-top,
.k-bot {
    display: block;
    height: 1.25em;
    line-height: 1.25em;
    transition: transform 0.42s cubic-bezier(0.76, 0, 0.24, 1);
    transition-delay: calc(var(--char-i, 0) * 18ms);
    will-change: transform;
}

.k-top {
    color: var(--oscuro);
    transform: translateY(0%);
}

.k-bot {
    color: var(--cta);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    transform: translateY(0%);
}

/* Activación al hover en la tarjeta de servicio o en el enlace */
.servicio-offset-item:hover .k-top,
.titulo-servicio a:hover .k-top,
.pilar-service-card:hover .k-top,
.pilar-service-title:hover .k-top {
    transform: translateY(-100%);
}

.servicio-offset-item:hover .k-bot,
.titulo-servicio a:hover .k-bot,
.pilar-service-card:hover .k-bot,
.pilar-service-title:hover .k-bot {
    transform: translateY(-100%);
}

/* En tarjetas impares (texto a la izquierda), la imagen se escala sutilmente y se desplaza hacia la izquierda */
.servicio-offset-item:hover .servicio-image-col img {
    transform: scale(1.03) translateX(-12px);
    filter: brightness(120%) saturate(120%);
}

/* En tarjetas pares (texto a la derecha), la imagen se escala sutilmente y se desplaza hacia la derecha */
.servicio-offset-item:nth-of-type(even):hover .servicio-image-col img {
    transform: scale(1.03) translateX(12px);
    filter: brightness(120%) saturate(120%);
}

/* La tarjeta informativa acentúa su sombra y redondea sus esquinas suavemente */
.servicio-offset-item:hover .servicio-text-col {
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.20);
    transform: translateY(-2px);
    border-radius: 20px;
}

@media (max-width: 768px) {
    .servicio-offset-item {
        display: flex;
        flex-direction: column;
        position: relative;
        margin-bottom: 50px;
    }
    .servicio-image-col {
        order: 1;
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .servicio-image-col img {
        width: 100%;
        height: 240px;
        object-fit: cover;
        border-radius: 8px 8px 0 0;
    }
    .servicio-text-col {
        order: 2;
        position: relative;
        width: calc(100% - 20px);
        margin: -30px auto 0 auto;
        left: 0;
        right: 0;
        z-index: 2;
        padding: 24px 20px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.12);
        border-radius: 8px;
        background: #ffffff;
    }
}

/* ==========================================================================
   SOCIAL PROOF & VIDEOS
   ========================================================================== */
.panel {
    background-color: var(--panel-bg);
    border-radius: var(--panel-radius);
    box-shadow: var(--panel-shadow);
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.panel:hover {
    transform: translateY(-4px);
    box-shadow: var(--panel-shadowH);
}

.google-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 0.5rem;
    margin-bottom: 3rem;
    color: var(--parrafo);
}

.rating-score { font-size: 1.1rem; font-weight: bold; }
.rating-stars { color: #FFC107; font-size: 1.2rem; letter-spacing: -2px; }
.rating-count { font-size: 1.1rem; }

.header-social { text-align: center; margin-bottom: 3rem; }
.social-proof { padding: 4rem 0; background: #fff; }

.testimonios-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.testimonio-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.testimonio-card .avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; margin-bottom: 1rem; border: 2px solid var(--cta); }

.social-footer { text-align: left; margin-top: 2rem; font-weight: 600; }
.social-footer a { color: var(--cta); text-decoration: underline; }

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.video-item {
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background-color: #000;
    overflow: hidden;
    cursor: pointer;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.play-button {
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}
.play-button:hover {
    transform: scale(1.1);
    background: rgba(187, 4, 75, 0.9);
}

.video-info { padding: 1.5rem; text-align: left; }
.video-info h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--oscuro); }
.video-info p { color: var(--parrafo); font-size: 0.95rem; line-height: 1.4; }

/* Grid container & panels */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px auto;
}

.panelT {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: center;
}

/* Split sections */
.container-split {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.section-index {
    display: inline-block;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: var(--principal);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.tension-title h2 {
    font-size: 3.5rem;
    line-height: 1.0;
    text-transform: uppercase;
    margin: 20px 0;
    color: var(--oscuro);
    text-align: left;
}

.impact-list { list-style: none; padding: 0; }
.impact-list li {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    padding: 20px 0;
    border-top: 1px solid #ddd;
    color: var(--parrafo);
}

.impact-list li span {
    font-family: monospace;
    font-size: 1.8rem;
    color: var(--principal);
    margin-right: 20px;
    font-weight: 800;
}

@media (max-width: 768px) {
    .container-split { grid-template-columns: 1fr; gap: 40px; margin: 40px auto; }
    .tension-title h2 { font-size: 2.5rem; }
}

.container-split-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.metric-value {
    display: block;
    font-size: 5rem;
    font-weight: 900;
    color: var(--principal);
    line-height: 1;
}

.metric-label {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .container-split-results { grid-template-columns: 1fr; text-align: center; }
}

/* WhatsApp Floating Button & Tooltip */
.whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.whatsapp-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%) scale(0.8);
    background-color: #128c7e;
    color: #ffffff;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.whatsapp-btn::after {
    content: '';
    position: absolute;
    right: 67px;
    top: 50%;
    transform: translateY(-50%) scale(0.8);
    border-width: 4px 0 4px 8px;
    border-style: solid;
    border-color: transparent transparent transparent #128c7e;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

@media (min-width: 992px) {
    .whatsapp-btn:hover::before,
    .whatsapp-btn:hover::after {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

/* Sub-items con iconos */
.sub-icon-link {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 10px 16px !important;
    color: #ffffff;
    transition: background 0.2s ease, color 0.2s ease;
}

.sub-icon-link svg {
    color: var(--principal);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.sub-icon-link:hover svg {
    transform: scale(1.15);
    color: var(--cta);
}

.nav-login-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 12px !important;
    border-radius: 6px;
    font-size: 0.92rem;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
}

.nav-login-btn svg {
    flex-shrink: 0;
}

.nav-login-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Transición para Ocultar CTA Dinámicamente */
.dynamic-cta, .dynamic-cta-btn, .id-cta {
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease !important;
}

.is-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(15px) !important;
    visibility: hidden !important;
}

/* Oculto por defecto en Escritorio y Tablets (> 991px) para evitar franja blanca */
.mobile-cta-wrapper {
    display: none !important;
}

/* Ajustes Móvil para Header y CTA Flotante Independiente */
@media (max-width: 991px) {
    /* Ocultar botón "Solicitar Consultoría" del header en móvil para liberar espacio */
    .id-header .id-cta {
        display: none !important;
    }

    /* Botón flotante "Solicitar Consultoría" en móvil (Lado Izquierdo) */
    .mobile-cta-wrapper {
        position: fixed;
        bottom: 20px;
        left: 20px;
        z-index: 9998;
        display: block !important;
    }

    .mobile-cta-wrapper .mobile-cta-btn {
        background: var(--cta);
        color: #ffffff;
        padding: 12px 20px;
        border-radius: 30px;
        font-weight: 700;
        font-size: 0.88rem;
        text-decoration: none;
        box-shadow: 0 4px 15px rgba(187, 4, 75, 0.4);
        display: inline-block;
        white-space: nowrap;
        border: 1px solid rgba(255, 255, 255, 0.2);
        transition: background 0.2s ease, transform 0.2s ease;
    }

    .mobile-cta-wrapper .mobile-cta-btn:hover {
        background: var(--ctaH);
        transform: translateY(-2px);
    }

    .main-footer {
        padding-bottom: 110px !important;
    }
}

/* Portfolio Hero Banner compact mobile design */
.portfolio-hero-banner {
    background: linear-gradient(135deg, #00112d 0%, #002244 100%);
    color: #ffffff;
    padding: 20px 16px 16px 16px;
    text-align: center;
}

.portfolio-hero-badge {
    color: #38bdf8;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 4px;
}

.portfolio-hero-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin: 4px 0 6px 0;
    letter-spacing: -0.3px;
}

.portfolio-hero-subtitle {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.35;
    margin: 0;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-main-container {
    max-width: 1280px;
    margin: 16px auto 0 auto;
    padding: 0 16px;
    scroll-margin-top: 100px;
    position: relative;
}

@media (min-width: 768px) {
    .portfolio-hero-banner {
        padding: 30px 24px 24px 24px;
    }
    .portfolio-hero-badge {
        font-size: 0.85rem;
        letter-spacing: 2px;
        margin-bottom: 6px;
    }
    .portfolio-hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin: 6px 0 8px 0;
    }
    .portfolio-hero-subtitle {
        font-size: 1.02rem;
        line-height: 1.5;
    }
    .portfolio-main-container {
        margin: 70px auto 0 auto;
        padding: 0 20px;
    }
}

/* Portfolio Section Styles */
.portfolio-filter-btn {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.portfolio-filter-btn:hover,
.portfolio-filter-btn.is-active {
    background: #ffffff;
    color: var(--oscuro);
    border-color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Portfolio Card (Vista Grid) Conforme a Guía Visual */
.portfolio-card-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.portfolio-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.portfolio-card-thumb {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
}

.portfolio-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.portfolio-card-body {
    padding: 22px 18px 26px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    flex: 1; /* Permite que el cuerpo ocupe la altura libre para alinear botones */
}

.portfolio-card-category {
    font-size: 0.82rem;
    font-weight: 500; /* Grosor de texto normal */
    color: var(--principal);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.portfolio-card-title {
    font-size: 1.15rem;
    font-weight: 500; /* Título cliente a weight 500 según instrucción */
    color: var(--oscuro);
    margin: 0;
    line-height: 1.35;
}

.portfolio-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    color: var(--cta);
    border: 1.5px solid var(--cta);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 8px 24px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(187, 4, 75, 0.05);
    margin-top: auto; /* Empuja el botón al fondo para alineación horizontal perfecta */
}

.portfolio-card-btn:hover {
    background-color: var(--cta);
    color: #ffffff;
    border-color: var(--cta);
    box-shadow: 0 6px 18px rgba(187, 4, 75, 0.35);
    text-decoration: none;
}

.portfolio-card-btn .btn-arrow {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 700;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card-btn:hover .btn-arrow {
    transform: translateX(6px);
    color: #ffffff;
}

/* Header de Vista Detalle del Portafolio (Limpio y Ordenado) */
.portfolio-detail-header {
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
    gap: 12px;
}

.portfolio-detail-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.portfolio-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--principal);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.92rem;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.portfolio-back-link:hover {
    color: var(--cta);
}

.portfolio-header-divider {
    color: #cbd5e1;
    font-size: 1rem;
}

.portfolio-header-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--oscuro);
    margin: 0;
    white-space: nowrap;
    letter-spacing: -0.3px;
}

.portfolio-header-tag {
    background: #e0f2fe;
    color: var(--principal);
    font-weight: 800;
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

@media (max-width: 600px) {
    .portfolio-detail-header {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    .portfolio-header-title {
        font-size: 1.1rem;
    }
    .portfolio-back-link {
        font-size: 0.85rem;
    }
}

.portfolio-card-btn .btn-arrow {
    display: inline-block;
    max-width: 0;
    opacity: 0;
    margin-left: 0;
    transition: max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.3s ease, 
                margin-left 0.4s ease;
    overflow: hidden;
    white-space: nowrap;
    font-size: 1.1rem;
    line-height: 1;
}

/* Hover en la tarjeta o botón: Transición suave al color corporativo secundario con la flecha */
.portfolio-card-item:hover .portfolio-card-btn,
.portfolio-card-btn:hover {
    background: var(--cta);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(187, 4, 75, 0.38);
}

.portfolio-card-item:hover .portfolio-card-btn .btn-arrow,
.portfolio-card-btn:hover .btn-arrow {
    max-width: 20px;
    opacity: 1;
    margin-left: 6px;
}

/* FAQ Accordion */
.faq-accordion-item {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    background: #ffffff;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.faq-question-btn {
    width: 100%;
    text-align: left;
    padding: 20px 24px;
    background: none;
    border: none;
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--oscuro);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 15px;
    transition: color 0.3s ease;
}

.faq-question-btn:hover {
    color: #0284c7;
}

/* Título de la pregunta activa en azul corporativo claro */
.faq-accordion-item.is-active .faq-question-btn {
    color: #0284c7;
}

.faq-icon {
    font-size: 1.4rem;
    color: var(--principal);
    transition: transform 0.35s ease, color 0.35s ease;
    flex-shrink: 0;
}

/* Transición suave (velado) sin saltos para abrir/cerrar la respuesta */
.faq-answer-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0;
    color: var(--parrafo);
    font-size: 1.08rem;
    line-height: 1.7;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease;
}

.faq-answer-inner {
    padding: 0 24px 22px 24px;
}

.faq-accordion-item.is-active .faq-answer-content {
    max-height: 500px;
    opacity: 1;
    transition: max-height 0.45s ease-in-out, opacity 0.35s ease;
}

.faq-accordion-item.is-active .faq-icon {
    transform: rotate(45deg);
    color: var(--cta) !important;
}

/* Borde por defecto en activo, sin marco azul oscuro */
.faq-accordion-item.is-active {
    border-color: #e2e8f0 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   PORTAFOLIO WEB: ESTILO CASE STUDY PROFESIONAL (SHOWCASE PANORÁMICO)
   ========================================================================== */

/* Contenedor Showcase Panorámico para Proyectos Web */
.case-study-web-showcase {
    position: relative;
    width: 100%;
    background: transparent;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border: none;
    overflow: hidden;
    margin-bottom: 40px;
}

/* Visor Panorámico de Pantalla Web */
.case-study-web-viewport {
    position: relative;
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
}

.case-study-web-viewport .slider-slide {
    min-width: 100%;
    height: 830px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 0;
}

.case-study-web-viewport .slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-study-web-viewport:hover .slider-slide img {
    transform: scale(1.015);
}

/* Grilla de Caso de Estudio: 3 Columnas Limpias divididas por línea vertical gris de 1px */
.case-study-brief-grid {
    display: grid;
    grid-template-columns: 300px 1fr 340px;
    gap: 0;
    align-items: stretch;
    margin-top: 15px;
    background: transparent;
}

.case-study-col {
    padding: 10px 32px;
    background: transparent;
    display: flex;
    flex-direction: column;
}

.case-study-col-left {
    padding-left: 0;
}

.case-study-col-center {
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
}

.case-study-col-right {
    padding-right: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.case-study-col-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--principal);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
    display: block;
}

/* Grid del Portafolio: 2 columnas para Web (más espacio para detalles) */
.portfolio-grid-container.grid-web-2col {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 32px !important;
}

.portfolio-grid-container.grid-web-2col .portfolio-card-thumb {
    height: 370px !important;
    padding: 0 !important;
    background: #f8fafc !important;
}

.portfolio-grid-container.grid-web-2col .portfolio-thumb-img {
    height: 100% !important;
    max-height: 370px !important;
    width: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    object-position: top center !important;
    border-radius: 0 !important;
}

/* Grilla de Otros Proyectos Web (3 columnas para mayor destaque) */
.otros-proyectos-web-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.otro-proyecto-tipo-badge {
    font-size: 0.70rem;
    font-weight: normal;
    color: var(--principal);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
    display: inline-block;
}

.otro-proyecto-web-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08) !important;
}

.otro-proyecto-web-card:hover .otro-proyecto-img {
    transform: scale(1.05);
}

/* Estado oculto y animación de entrada para Cargar Más */
.otro-proyecto-web-card.is-hidden {
    display: none !important;
}

.otro-proyecto-web-card.is-revealed {
    animation: fadeInReveal 0.4s ease-out forwards;
}

@keyframes fadeInReveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botón Cargar Más Proyectos (Diseño neutro, elegante y diferenciado del CTA magenta) */
.btn-cargar-mas-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 42px;
    width: 100%;
}

.btn-cargar-mas {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #ffffff;
    color: var(--oscuro, #000c1e);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 9999px;
    border: 1.5px solid #cbd5e1;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    user-select: none;
}

.btn-cargar-mas:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
    transform: translateY(-2px);
}

.btn-cargar-mas:hover .btn-cargar-mas-icon {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.15);
    color: #38bdf8;
}

.btn-cargar-mas:active {
    transform: translateY(0);
}

.btn-cargar-mas-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--oscuro, #000c1e);
    transition: all 0.3s ease;
}

.btn-cargar-mas-counter {
    font-size: 0.82rem;
    font-weight: 600;
    opacity: 0.75;
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 8px;
    border-radius: 12px;
}

.btn-cargar-mas:hover .btn-cargar-mas-counter {
    background: rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
}

@media (max-width: 1024px) {
    .otros-proyectos-web-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .otros-proyectos-web-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .case-study-web-viewport .slider-slide {
        height: 480px;
    }
    .case-study-brief-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .case-study-col {
        padding: 0;
    }
    .case-study-col-center {
        border-left: none;
        border-right: none;
    }
    .case-study-col-right {
        grid-column: span 2;
        border-top: 1px solid #e2e8f0;
        padding-top: 24px;
    }
}

@media (max-width: 768px) {
    .case-study-web-viewport .slider-slide {
        height: 290px !important;
    }
    .portfolio-grid-container.grid-web-2col {
        grid-template-columns: 1fr !important;
    }
    .portfolio-grid-container.grid-web-2col .portfolio-card-thumb {
        height: 310px !important;
    }
    .portfolio-grid-container.grid-web-2col .portfolio-thumb-img {
        max-height: 310px !important;
        height: 310px !important;
    }
    .otro-proyecto-thumb-wrap {
        height: 290px !important;
    }
    .portfolio-related-grid .carousel-project-card {
        height: 290px !important;
    }
    .case-study-brief-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .case-study-col-right {
        grid-column: span 1;
    }
}

/* Portfolio Card Hover Effects & Always Visible Button */
.portfolio-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12) !important;
}

.portfolio-card-item:hover .portfolio-thumb-img {
    transform: scale(1.06);
}

.portfolio-view-btn-visible:hover {
    background: var(--cta) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(187, 4, 75, 0.3);
}

/* Especificación de Boceto: Carrusel Botón Interactivo con expansión al Hover */
.carousel-hover-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 5;
    text-decoration: none;
}

.carousel-project-card:hover .carousel-card-img {
    transform: scale(1.08);
}

.carousel-pill-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: var(--oscuro);
    height: 38px;
    padding: 0 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.88rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    backdrop-filter: blur(4px);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
    white-space: nowrap;
}

/* En reposo en escritorio (> 768px): Botón totalmente redondo, sólo ícono, alineado a la derecha */
@media (min-width: 769px) {
    .carousel-pill-trigger {
        width: 38px;
        height: 38px;
        padding: 0;
        border-radius: 50%;
        background: #ffffff;
        color: var(--oscuro);
        box-shadow: 0 4px 14px rgba(0,0,0,0.15);
        border: 1px solid rgba(0,0,0,0.08);
        transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1), 
                    padding 0.5s cubic-bezier(0.25, 1, 0.5, 1), 
                    border-radius 0.5s cubic-bezier(0.25, 1, 0.5, 1), 
                    background-color 0.45s ease, 
                    color 0.35s ease, 
                    box-shadow 0.45s ease;
    }

    .carousel-pill-trigger .pill-text {
        max-width: 0;
        opacity: 0;
        margin-right: 0;
        transition: max-width 0.5s cubic-bezier(0.25, 1, 0.5, 1), 
                    opacity 0.35s ease, 
                    margin-right 0.45s cubic-bezier(0.25, 1, 0.5, 1);
        display: inline-block;
        overflow: hidden;
        white-space: nowrap;
    }

    .carousel-pill-trigger .pill-arrow {
        font-size: 1.15rem;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        flex-shrink: 0;
    }

    /* En Hover: Se expande en ancho con suave curva de animación, pasa de blanco a color corporativo secundario (--cta) y muestra texto */
    .carousel-project-card:hover .carousel-pill-trigger,
    .carousel-hover-btn:focus .carousel-pill-trigger {
        width: auto;
        padding: 0 18px;
        border-radius: 22px;
        background: var(--cta);
        color: #ffffff;
        box-shadow: 0 6px 20px rgba(187, 4, 75, 0.4);
        border-color: transparent;
    }

    .carousel-project-card:hover .carousel-pill-trigger .pill-text,
    .carousel-hover-btn:focus .carousel-pill-trigger .pill-text {
        max-width: 140px;
        opacity: 1;
        margin-right: 6px;
    }
}

/* Grid de Casos de Éxito Sugeridos (4 Tarjetas al Azar) */
.portfolio-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.portfolio-related-grid .carousel-project-card {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    height: 210px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-related-grid .carousel-project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.carousel-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-related-grid .carousel-project-card:hover .carousel-card-img {
    transform: scale(1.06);
}

/* En Tablet (<= 992px): 2 Columnas */
@media (max-width: 992px) {
    .portfolio-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* En Móvil (<= 768px): Botón completo siempre visible */
@media (max-width: 768px) {
    .carousel-pill-trigger {
        width: auto;
        padding: 7px 15px;
        border-radius: 20px;
        background: rgba(0, 17, 45, 0.88);
        color: #ffffff;
    }

    .carousel-pill-trigger .pill-text {
        max-width: none;
        opacity: 1;
        margin-right: 6px;
        display: inline-block;
    }

    .carousel-pill-trigger .pill-arrow {
        font-size: 1rem;
    }
}

@media (max-width: 520px) {
    .portfolio-related-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .portfolio-related-grid .carousel-project-card {
        height: 290px !important;
    }
}

/* Responsividad de Grid 4 Columnas a Móvil */
@media (max-width: 1024px) {
    .portfolio-grid-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .portfolio-detail-wrapper {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 640px) {
    .portfolio-grid-container {
        grid-template-columns: 1fr !important;
    }
}

/* Clases Refactorizadas para Banners de Conversión y Formularios SEO */
.seo-form-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 50px auto;
}

.seo-form-header .seo-badge {
    color: var(--principal);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

.seo-form-header h2 {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--oscuro);
    margin: 0 0 12px 0;
    line-height: 1.25;
}

@media (max-width: 768px) {
    .seo-form-header h2 {
        font-size: 1.45rem !important;
        line-height: 1.3 !important;
    }
}

.seo-form-header p {
    color: var(--parrafo);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

.seo-conversion-banner {
    background: linear-gradient(135deg, #00112d 0%, #002244 100%);
    color: #ffffff;
    padding: 60px 20px;
    border-radius: 20px;
    max-width: 1200px;
    margin: 40px auto;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 17, 45, 0.25);
}

.seo-conversion-banner .banner-content {
    max-width: 780px;
    margin: 0 auto;
}

.seo-conversion-banner .banner-subtitle {
    color: #38bdf8;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
}

.seo-conversion-banner h3 {
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 14px 0;
}

.seo-conversion-banner p {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 28px;
}

.seo-conversion-banner .banner-btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.seo-conversion-banner .btn-primary-cta {
    background: var(--cta);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(187, 4, 75, 0.4);
    text-transform: uppercase;
    transition: transform 0.2s, box-shadow 0.2s;
}

.seo-conversion-banner .btn-primary-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(187, 4, 75, 0.5);
}

/* Login Page Component Styles */
.seo-login-main {
    min-height: 80vh;
    background: #000c1e;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.seo-login-card {
    background: #ffffff;
    max-width: 440px;
    width: 100%;
    padding: 40px 35px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    text-align: center;
}

/* Video Testimonial Component Styles */
.seo-video-testimonial-section {
    margin-top: 50px;
    background: #ffffff;
    padding: 45px 30px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    text-align: center;
}

.seo-video-iframe-wrapper {
    max-width: 820px;
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    background: #000000;
    position: relative;
    padding-top: 56.25%;
}

.seo-video-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   TARJETAS DE PROCESO / RUTA DE TRABAJO (ESTÁNDAR UNIFICADO)
   ========================================================================== */
.proceso-step-card {
    background: #ffffff;
    padding: 28px 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.proceso-step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.06);
}

.proceso-step-number {
    font-size: 2.3rem;
    font-weight: 900;
    color: var(--principal);
    opacity: 0.2;
    position: absolute;
    top: 14px;
    right: 18px;
    line-height: 1;
    user-select: none;
}

.proceso-step-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--oscuro);
    margin-top: 0;
    margin-bottom: 12px;
    padding-right: 32px;
    line-height: 1.25 !important;
    min-height: 2.5em;
    display: flex;
    align-items: flex-end;
}

.proceso-step-desc {
    font-size: 1.05rem;
    color: var(--parrafo);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   TARJETAS DE PILARES / SERVICIOS (ESTÁNDAR UNIFICADO)
   ========================================================================== */
.pilar-service-card {
    background: #ffffff;
    padding: 32px 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pilar-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.06);
}

.pilar-service-number {
    width: 48px;
    height: 48px;
    background: rgba(0, 94, 178, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--principal);
    font-weight: 800;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.pilar-service-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--oscuro);
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.25 !important;
    min-height: 2.5em;
    display: flex;
    align-items: flex-end;
}

.pilar-service-desc {
    font-size: 1.05rem;
    color: var(--parrafo);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   LISTA DE DIAGNÓSTICO EXPRESS (LAYOUT ORDENADO)
   ========================================================================== */
.diagnostico-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.diagnostico-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.diagnostico-item-icon {
    color: var(--cta);
    font-weight: 900;
    font-size: 1.15rem;
    line-height: 1.4;
    flex-shrink: 0;
}

.diagnostico-item-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.diagnostico-item-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
}

.diagnostico-item-desc {
    font-size: 1.05rem;
    color: #cbd5e1;
    line-height: 1.55;
    margin: 0;
}

/* ==========================================================================
   SECCIÓN INFRAESTRUCTURA LLAVE EN MANO
   ========================================================================== */
.infra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.infra-card {
    background: #ffffff;
    padding: 36px 30px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.infra-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 94, 178, 0.09);
    border-color: #cbd5e1;
}

.infra-card-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 94, 178, 0.08) 0%, rgba(0, 94, 178, 0.03) 100%);
    border: 1px solid rgba(0, 94, 178, 0.12);
    color: var(--principal);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    flex-shrink: 0;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.infra-card:hover .infra-card-icon-wrapper {
    transform: scale(1.05);
    background: rgba(0, 94, 178, 0.12);
}

.infra-card-icon-svg {
    width: 30px;
    height: 30px;
    stroke: var(--principal);
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.infra-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--oscuro);
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.infra-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.infra-card-list li {
    font-size: 1.05rem;
    color: var(--parrafo);
    line-height: 1.6;
    position: relative;
    padding-left: 26px;
}

.infra-card-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 15px;
    height: 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='9' fill='%23005eb2' fill-opacity='0.12'/%3E%3Cpath d='M6.5 10.2L8.8 12.5L13.5 7.5' stroke='%23005eb2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* ==========================================================================
   LISTAS Y MATRICES COMPARATIVAS (ICONOS VECTORIALES ESTILIZADOS)
   ========================================================================== */
.matriz-list-danger,
.matriz-list-success {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 1.06rem;
}

.matriz-list-danger li {
    position: relative;
    padding-left: 28px;
    line-height: 1.65;
    color: #821e35;
    font-size: 1.06rem;
}

.matriz-list-danger li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='9' fill='%23c92a2a' fill-opacity='0.12'/%3E%3Cpath d='M7 7L13 13M13 7L7 13' stroke='%23c92a2a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.matriz-list-success li {
    position: relative;
    padding-left: 28px;
    line-height: 1.65;
    color: var(--oscuro);
    font-size: 1.06rem;
}

.matriz-list-success li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='9' fill='%23005eb2' fill-opacity='0.12'/%3E%3Cpath d='M6.2 10.2L8.8 12.8L13.8 7.2' stroke='%23005eb2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.diagnostico-item-icon-badge {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(225, 29, 72, 0.15);
    border: 1px solid rgba(225, 29, 72, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.diagnostico-item-icon-badge svg {
    width: 14px;
    height: 14px;
    stroke: #ff4d6d;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Grilla Simétrica 2x2 para Modelos Transaccionales */
.model-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .model-grid-2x2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ==========================================================================
   SECCIÓN DE MARCAS DE RESPALDO (PORTAFOLIO MARCA - TRAYECTORIA Y RESPALDO)
   ========================================================================== */
.marcas-respaldo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.marca-respaldo-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 18px 20px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.marca-respaldo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.marca-respaldo-logo-wrap {
    height: 125px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    padding: 6px;
}

.marca-respaldo-img {
    max-height: 110px;
    max-width: 95%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.marca-respaldo-card:hover .marca-respaldo-img {
    transform: scale(1.06);
}

.marca-respaldo-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.marca-respaldo-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--oscuro);
    margin: 0;
    line-height: 1.35;
}

.marca-respaldo-sector {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .marcas-respaldo-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .marcas-respaldo-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    
    .marca-respaldo-logo-wrap {
        height: 155px;
    }
    
    .marca-respaldo-img {
        max-height: 140px;
    }
}

/* ==========================================================================
   PÁGINA ZONA DE PAGOS (RESPONSIVE & CENTRADO)
   ========================================================================== */
.page-zona-pagos {
    background: linear-gradient(135deg, #000c1e 0%, #001838 100%);
    min-height: 85vh;
    padding: 36px 20px 80px 20px;
    color: #ffffff;
    box-sizing: border-box;
}

.zona-pagos-container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.zona-pagos-header {
    text-align: center;
    margin-bottom: 30px;
}

.zona-pagos-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 14px;
}

.zona-pagos-badge span {
    color: #38bdf8;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.zona-pagos-title {
    font-size: clamp(1.75rem, 6.5vw, 2.8rem);
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 10px 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1.2;
}

.zona-pagos-subtitle {
    font-size: clamp(1rem, 3.5vw, 1.25rem);
    color: #94a3b8;
    margin: 0 auto;
    max-width: 600px;
    font-weight: 500;
    line-height: 1.4;
}

.zona-pagos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    justify-items: center;
    align-items: stretch;
}

.zona-pagos-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 32px 22px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    backdrop-filter: blur(8px);
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .page-zona-pagos {
        padding: 65px 24px 90px 24px;
    }
    
    .zona-pagos-header {
        margin-bottom: 45px;
    }
    
    .zona-pagos-badge {
        padding: 6px 18px;
        margin-bottom: 18px;
    }
    
    .zona-pagos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
        align-items: stretch;
    }
    
    .zona-pagos-card {
        padding: 40px 30px;
        max-width: none;
    }
}

/* ==========================================================================
   NUEVO CTA INTERMEDIO SUELTO (SIN TARJETA / NO DISPONIBLE EN MÓVILES)
   ========================================================================== */
.service-mid-cta-loose {
    display: none; /* Oculto en dispositivos móviles y tablets pequeñas */
}

@media (min-width: 992px) {
    .service-mid-cta-loose {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: 55px auto 15px auto;
        max-width: 820px;
        padding: 0 20px;
    }

    .service-mid-cta-loose-title {
        color: var(--oscuro);
        font-size: 2.2rem;
        font-weight: 800;
        margin: 0 0 10px 0;
        letter-spacing: -0.3px;
        line-height: 1.35;
        text-align: center;
    }

    .service-mid-cta-loose-subtitle {
        color: #64748b;
        font-size: 1.2rem;
        margin: 0 0 30px 0;
        font-weight: normal;
        line-height: 1.5;
        text-align: center;
    }
}

/* Pulsating Continuous Glow CTA Button */
.btn-cta-pulse-glow {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #e11d48 0%, #bb044b 50%, #9f1239 100%);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none !important;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.6), 0 8px 24px rgba(187, 4, 75, 0.4);
    animation: cta-passive-pulse 2.4s infinite cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    flex-shrink: 0;
}

/* Shimmer flare light sweep */
.btn-cta-pulse-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-25deg);
    animation: cta-shine-sweep 3.6s infinite ease-in-out;
}

/* Passive animation: soft breathing pulse & ring wave */
@keyframes cta-passive-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.65), 0 6px 18px rgba(187, 4, 75, 0.35);
    }
    50% {
        transform: scale(1.025);
        box-shadow: 0 0 0 12px rgba(225, 29, 72, 0), 0 12px 28px rgba(187, 4, 75, 0.55);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0), 0 6px 18px rgba(187, 4, 75, 0.35);
    }
}

@keyframes cta-shine-sweep {
    0%, 35% {
        left: -120%;
    }
    60%, 100% {
        left: 140%;
    }
}

/* Hover state: interactive expansion & intense glow */
.btn-cta-pulse-glow:hover {
    transform: translateY(0px) scale(1.04);
    animation: none; /* Pause passive pulse for clean hover */
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 50%, #be123c 100%);
    box-shadow: 0 10px 30px rgba(225, 29, 72, 0.65), 0 0 20px rgba(244, 63, 94, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-cta-pulse-glow:active {
    transform: translateY(1px) scale(0.98);
}

/* ==========================================================================
   SISTEMA DE REVEAL ON SCROLL NATIVO Y ULTRA-LIVIANO (0 KB LIBRERÍAS)
   ========================================================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s ease;
    transition-delay: var(--reveal-delay, 0ms) !important;
    will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Hover de tarjetas de portafolio respetando la animación */
.portfolio-card-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08) !important;
}

/* Accesibilidad: Respeto estricto a prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ==========================================================================
   TEXT GRADIENTS CORPORATIVOS (AZUL & MAGENTA)
   ========================================================================== */
.text-gradient-azul {
    background: linear-gradient(135deg, #02a5ff 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

.text-gradient-magenta {
    background: linear-gradient(135deg, #e0035a 0%, #ff4d8d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

.text-nowrap {
    white-space: nowrap;
}

.hero-title-break {
    display: block;
    width: fit-content;
}

@media (min-width: 992px) {
    .hero-content-left {
        max-width: 600px;
    }
}










