/*
Theme Name: Instauria
Author: Tu Nombre
Description: Tema Premium Agencia - Versión Azul Eléctrico Final (SEO & UX Optimizado).
Version: 1.8
*/

:root {
    --color-primario: #0055ff; /* Azul Eléctrico */
    --color-oscuro: #1a1a1a;
    --color-blanco: #ffffff;
    --fuente-logo: 'Playfair Display', serif;
    --fuente-menu: 'Montserrat', sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--fuente-menu);
    color: var(--color-oscuro);
    background-color: var(--color-blanco);
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* --- UNIFICACIÓN GLOBAL: PÁRRAFOS Y LISTAS --- */
p, .servicio-features li {
    font-family: var(--fuente-menu) !important;
    font-size: 1.1rem !important;
    line-height: 1.7 !important;
    color: #555 !important;
    font-weight: 400 !important;
}

/* Ajuste específico para que los puntos de las tarjetas no se amontonen */
.servicio-features li {
    margin-bottom: 15px !important;
    padding-left: 25px !important;
    position: relative;
}

/* Mantenemos el puntito azul estético */
.servicio-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px; 
    width: 6px;
    height: 6px;
    background-color: var(--color-primario);
    border-radius: 50%;
}

/* 1. BARRA SUPERIOR AZUL */
.top-bar {
    height: 4px;
    background-color: var(--color-primario);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1100;
}

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

/* 2. HEADER */
.site-header {
    background: var(--color-blanco);
    padding: 15px 0;
    border-bottom: 1px solid #eeeeee;
    position: sticky;
    top: 4px; 
    z-index: 1000;
}

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

/* 3. LOGO TIPO ZARA */
.site-logo a {
    font-family: var(--fuente-logo);
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--color-oscuro);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: -2px;
    transition: all 0.5s ease;
}

.site-logo a:hover {
    letter-spacing: 1px;
    color: var(--color-primario);
}

/* 4. MENÚ CON SUBRAYADO AZUL */
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-navigation a {
    text-decoration: none;
    color: var(--color-oscuro);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
}

.main-navigation li:not(:last-child) a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px; 
    bottom: 0;
    left: 50%;
    background-color: var(--color-primario);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.main-navigation li:not(:last-child) a:hover::after {
    width: 100%;
}

.main-navigation a:hover {
    color: var(--color-primario);
}

/* 5. BOTÓN CONTACTO */
.main-navigation li:last-child a {
    border: 1.5px solid var(--color-primario);
    color: var(--color-primario) !important;
    padding: 8px 18px;
    transition: all 0.3s ease;
}

.main-navigation li:last-child a:hover {
    background-color: var(--color-primario);
    color: var(--color-blanco) !important;
}

/* 6. SECCIÓN HERO (ESTILOS CONSOLIDADOS) */
.hero-section {
    position: relative;
    padding: 60px 0 100px 0;
    text-align: center;
    overflow: hidden;
    background: #ffffff;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

/* Fondo de malla técnica sutil */
.hero-grid-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(0, 85, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 950px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out forwards;
}

.hero-badge {
    font-family: var(--fuente-menu) !important;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primario);
    display: block;
    margin-bottom: 20px;
    margin-top: 0;
}

.hero-title {
    font-family: var(--fuente-logo);
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: -0.5px;
    margin-bottom: 30px;
    color: var(--color-oscuro);
    overflow: visible;
}

.hero-description {
    font-family: var(--fuente-menu);
    font-size: 1.15rem;
    font-weight: 400;
    color: #555;
    max-width: 650px;
    margin: 0 auto 40px auto;
    line-height: 1.8;
}

.text-highlight {
    color: var(--color-primario);
}

/* Animación de Llenado de Texto */
.text-fill {
    display: inline-block;
    color: rgba(0, 85, 255, 0.1);
    background: linear-gradient(to right, var(--color-primario), var(--color-primario)) no-repeat;
    background-size: 0% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: fill-text 2s forwards ease-out 0.5s;
    line-height: inherit;
}

@keyframes fill-text {
    to { background-size: 100% 100%; }
}

/* 7. ESTILOS DEL FOOTER */
.site-footer {
    background-color: #111111;
    color: #ffffff;
    padding: 60px 0 0 0;
    font-family: var(--fuente-menu);
}

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

.footer-logo {
    font-family: var(--fuente-logo);
    font-weight: 900;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 20px;
    color: var(--color-primario);
}

.footer-column h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: #888;
    display: inline-block;
}

.footer-column p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #ccc;
}

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

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

.footer-column ul a, .social-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-column ul a:hover, .social-links a:hover {
    color: var(--color-primario);
}

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

.social-links a {
    font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid #222;
    padding: 25px 0;
    text-align: center;
    font-size: 0.8rem;
    color: #666;
}

/* Animaciones de Entrada Escalonada */
.reveal-top { animation: revealTop 1s forwards ease-out; }
.reveal-text { animation: revealTop 1s forwards ease-out 0.2s; opacity: 0; }
.reveal-bottom { animation: revealBottom 1s forwards ease-out 0.4s; opacity: 0; }

@keyframes revealTop {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

/* 9. MEDIA QUERIES (RESPONSIVE) */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--color-blanco);
        box-shadow: -10px 0 30px rgba(0,0,0,0.05);
        padding: 100px 40px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1500;
    }

    .main-navigation.toggled {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 35px;
    }

    .main-navigation a { font-size: 1.2rem; }

    .hero-section { padding-top: 30px; }
    h2.hero-title { font-size: 2.8rem; line-height: 1.3; }
    .hero-btns { flex-direction: column; }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .social-links { justify-content: center; }
}

/* --- SECCIÓN BENTO SOLUTIONS --- */
.solutions-bento {
    padding: 20px 0 100px 0; 
    background-color: #ffffff;
}

.bento-main-title {
    font-family: var(--fuente-logo);
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 60px;
    max-width: 850px;
}

.highlight {
    color: var(--color-primario) !important;
    font-weight: 900;
}

/* GRID LAYOUT */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
    gap: 30px;
}

.bento-item {
    background: #ffffff;
    border: 2px solid #000000;
    padding: 50px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* El primer bloque ocupa las dos columnas para dar impacto */
.item-large {
    grid-column: span 2;
    display: flex;
    align-items: flex-start;
}

.bento-inner {
    width: 100%;
}

.bento-num {
    font-family: var(--fuente-logo);
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--color-primario);
    display: block;
    margin-bottom: 25px;
}

.bento-item h3 {
    font-family: var(--fuente-logo);
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0 0 20px 0;
    line-height: 1.1;
    letter-spacing: -1px;
}

.bento-item p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    max-width: 650px;
    margin-bottom: 35px;
}

/* KEYWORDS COMO ETIQUETAS */
.bento-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bento-tags span {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: #f4f4f4;
    padding: 6px 12px;
    border-radius: 4px;
    color: #555;
}

/* --- BOTÓN MENÚ MÓVIL (DISEÑO CHULO) --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2001;
    transition: all 0.3s ease;
}

.menu-toggle .line {
    width: 100%;
    height: 3px;
    background-color: var(--color-primario);
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    transform-origin: center;
}

/* --- MEDIA QUERY: SOLO SE ACTIVA EN MÓVIL --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #ffffff;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 2000;
    }

    .main-navigation.toggled {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .main-navigation a {
        font-size: 2rem;
        font-weight: 800;
        color: var(--color-oscuro);
    }
}

/* --- ANIMACIÓN A "X" DINÁMICA --- */
.menu-toggle.active .line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background-color: var(--color-oscuro);
}

.menu-toggle.active .line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.menu-toggle.active .line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background-color: var(--color-oscuro);
}

/* --- SECCIÓN CONTACTO "FLOTANTE" INSTAURIA --- */
.contacto-seccion {
    padding: 120px 0;
    background-color: #ffffff;
    border-top: 1px solid #f8f8f8;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 0;
    align-items: center;
}

/* Columna de Info (Asimétrica hacia abajo) */
.contacto-info-wrapper {
    padding-right: 80px;
    padding-top: 60px;
}

.contacto-badge {
    color: var(--color-primario);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 3px;
    font-size: 0.8rem;
    margin-bottom: 25px;
    display: block;
}

.contacto-titulo {
    font-family: var(--fuente-logo);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.contacto-p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 480px;
}

.contacto-directo p {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #aaaaaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contacto-directo a {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-oscuro);
    text-decoration: none;
    border-bottom: 2px solid var(--color-primario);
    transition: 0.3s;
}

.contacto-directo a:hover {
    color: var(--color-primario);
}

/* NUEVA CAJA DEL FORMULARIO FLOTANTE */
.contacto-form-float {
    background: #ffffff;
    padding: 60px;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    transition: box-shadow 0.4s ease;
}

.contacto-form-float:hover {
    box-shadow: 0 15px 50px rgba(0, 85, 255, 0.06);
}

.form-header {
    margin-bottom: 40px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

.form-header h3 {
    font-family: var(--fuente-logo);
    font-size: 2rem;
    font-weight: 900;
    margin: 0 0 10px 0;
    letter-spacing: -1px;
}

.form-header p {
    font-size: 0.95rem;
    color: #888;
    margin: 0;
}

/* INPUTS ANIMADOS (MATERIAL DESIGN PREMIUM) */
.form-group-float {
    position: relative;
    margin-bottom: 35px;
}

.form-group-float input, 
.form-group-float textarea {
    width: 100%;
    padding: 15px 15px 15px 0;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-oscuro);
    background: transparent;
    outline: none;
    transition: 0.3s;
}

.form-group-float label {
    position: absolute;
    top: 15px;
    left: 0;
    color: #999;
    pointer-events: none;
    transition: 0.3s ease all;
    font-size: 1rem;
}

/* EFECTO CUANDO EL INPUT TIENE TEXTO O FOCO */
.form-group-float input:focus ~ label,
.form-group-float input:not(:placeholder-shown) ~ label,
.form-group-float textarea:focus ~ label,
.form-group-float textarea:not(:placeholder-shown) ~ label {
    top: -12px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--color-primario);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group-float input:focus, 
.form-group-float textarea:focus {
    border-bottom: 1px solid var(--color-primario);
}

/* BOTÓN PREMIUM REDONDEADO */
.btn-enviar-premium {
    width: 100%;
    background: var(--color-primario);
    color: #fff;
    padding: 22px;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 85, 255, 0.15);
}

.btn-enviar-premium:hover {
    background: var(--color-oscuro);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .contacto-grid { grid-template-columns: 1fr; }
    .contacto-info-wrapper { padding-right: 0; padding-top: 0; margin-bottom: 60px; }
    .contacto-form-float { padding: 40px; }
    .contacto-titulo { font-size: 2.8rem; }
}

/* --- ANIMACIONES PARA TU HERO SECTION --- */
.hero-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 85, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 85, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    animation: gridPulse 10s infinite ease-in-out;
    z-index: 0;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

.reveal-top, .reveal-text, .reveal-bottom {
    opacity: 0;
    filter: blur(15px);
    animation: revealMaster 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-top { transform: translateY(-40px); animation-delay: 0.2s; }
.reveal-text { transform: scale(0.95); animation-delay: 0.4s; }
.reveal-bottom { transform: translateY(40px); animation-delay: 0.6s; }

@keyframes revealMaster {
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0) scale(1);
    }
}

.text-fill {
    position: relative;
    color: var(--color-primario);
    background: linear-gradient(90deg, var(--color-primario), #00d4ff, var(--color-primario));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
}

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

.btn-glow {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    transition: 0.6s;
    opacity: 0;
}

.btn-glow:hover::after {
    opacity: 1;
    left: 100%;
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 85, 255, 0.3);
}

/* --- NUEVO DISEÑO CTA FLUIDO --- */
.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 45px;
    background-color: var(--color-primario);
    color: #ffffff;
    border-radius: 100px; 
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: 2px solid transparent;
    z-index: 1;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-primario);
    border-color: var(--color-primario);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 85, 255, 0.15);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    width: 300%;
    height: 300%;
}

.btn-glow {
    box-shadow: 0 0 0 0 rgba(0, 85, 255, 0.4);
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(0, 85, 255, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 85, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 85, 255, 0); }
}

/* --- CORRECCIÓN DE ANCHO EN MÓVIL --- */
@media (max-width: 768px) {
    .contacto-seccion {
        width: 100vw !important;
        max-width: 100% !important;
        padding: 60px 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    .contacto-grid {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .contacto-info-wrapper {
        width: 100% !important;
        padding: 0 20px !important;
        margin-bottom: 40px !important;
        box-sizing: border-box !important;
    }

    .contacto-form-float {
        width: calc(100% - 40px) !important;
        margin: 0 20px !important;
        padding: 30px 20px !important;
        box-sizing: border-box !important;
        float: none !important;
        position: relative !important;
        left: 0 !important;
        border: 1px solid #eee !important;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05) !important;
    }

    .contacto-directo a {
        display: block !important;
        font-size: 0.85rem !important;
        word-wrap: break-word !important;
        word-break: break-all !important;
        white-space: normal !important;
    }

    .form-group-float, 
    .instauria-form,
    .form-inner {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .form-group-float input, 
    .form-group-float textarea {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* --- ARREGLO DEFINITIVO EMAIL --- */
.contacto-directo {
    width: 100%;
    margin-top: 30px;
}

.contacto-directo p {
    font-size: 0.8rem;
    font-weight: 800;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.contacto-directo a {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-oscuro);
    text-decoration: none;
    display: inline-block;
    position: relative;
    padding-bottom: 5px;
    border-bottom: 3px solid var(--color-primario);
    word-break: break-all;
    max-width: 100%;
}

@media (max-width: 768px) {
    .contacto-directo a {
        font-size: 1rem !important;
        line-height: 1.4;
        border-bottom-width: 2px;
        display: inline-block !important;
        width: auto !important;
        border-bottom: 2px solid var(--color-primario) !important;
        line-height: 1.2;
        padding-bottom: 2px;
        word-break: break-all;
    }
}

/* --- ANIMACIÓN CONTACTO MAGNÉTICO --- */
.contacto-info-content {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.contacto-form-float {
    opacity: 0;
    transform: translateX(50px) scale(0.95);
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.contacto-info-content.active {
    opacity: 1;
    transform: translateX(0);
}

.contacto-form-float.active {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.form-group-float input:focus ~ label,
.form-group-float textarea:focus ~ label {
    color: var(--color-primario) !important;
    text-shadow: 0 0 8px rgba(0, 85, 255, 0.2);
}

.btn-enviar-premium:active {
    transform: scale(0.98);
}

/* ================================================= */
/* SECCIÓN BROMA RETRO CLICKBAIT - INSTAURIA         */
/* ================================================= */
.seccion-broma-retro {
    padding: 100px 0;
    background: #ff00ff; 
    background: repeating-linear-gradient(
        45deg,
        #ff00ff,
        #ff00ff 15px,
        #00ffff 15px,
        #00ffff 30px
    );
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.alerta-broma {
    background: #c0c0c0; 
    border: 3px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    max-width: 550px;
    width: 90%;
    box-shadow: 15px 15px 0px rgba(0, 0, 0, 0.4);
    position: relative;
}

.alerta-header {
    background: linear-gradient(90deg, #000080, #1084d0);
    color: white;
    padding: 6px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    font-size: 0.85rem;
}

.close-fake {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #fff #808080 #808080 #fff;
    width: 20px;
    height: 20px;
    line-height: 16px;
    text-align: center;
    font-size: 12px;
    cursor: pointer;
    font-weight: bold;
}

.alerta-body {
    padding: 40px 20px;
    text-align: center;
}

.alerta-titulo {
    color: #ff0000;
    font-size: 2.2rem;
    font-family: 'Impact', sans-serif;
    margin-bottom: 20px;
    text-transform: uppercase;
    animation: flashText 0.4s infinite;
}

@keyframes flashText {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.alerta-p {
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    color: #000;
    margin-bottom: 30px;
    line-height: 1.4;
}

.btn-yellow-flash {
    background: #ffff00;
    border: 4px outset #fff;
    padding: 20px;
    font-weight: 900;
    cursor: pointer;
    font-size: 1.2rem;
    color: #000;
    text-transform: uppercase;
    transition: 0.1s;
    box-shadow: 5px 5px 0px #000;
}

.btn-yellow-flash:hover {
    transform: scale(1.1) rotate(-3deg);
    background: #00ff00;
}

.btn-yellow-flash:active {
    transform: scale(0.95);
    box-shadow: 2px 2px 0px #000;
}

.sorpresa-pop {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    background: #fff;
    padding: 25px;
    border: 6px solid #00ff00;
    box-shadow: 0 0 0 100vw rgba(0,0,0,0.85), 20px 20px 0px #ff00ff;
    width: 95%;
    max-width: 450px;
    text-align: center;
}

.ganador-box h3 {
    background: #ff00ff;
    color: #fff;
    font-family: 'Impact', sans-serif;
    font-size: 2.2rem;
    padding: 10px;
    margin-bottom: 10px;
    border: 3px solid #000;
    transform: rotate(-1deg);
}

.croasant-huge {
    font-size: 8rem;
    line-height: 1;
    margin: 15px 0;
    display: block;
    filter: drop-shadow(0 0 20px rgba(255, 255, 0, 0.9));
    animation: heartBeat 1.2s infinite ease-in-out;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.25); }
    30% { transform: scale(1); }
    45% { transform: scale(1.15); }
    60% { transform: scale(1); }
}

.desc-premio {
    font-family: 'Arial Black', sans-serif;
    background: #00ffff;
    color: #000;
    padding: 5px 15px;
    display: inline-block;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 2px solid #000;
}

.gif-anuel {
    border: 5px solid #000;
    background: #000;
    margin-bottom: 20px;
}

.gif-anuel img {
    width: 80%;
    display: block;
}

.btn-brrr {
    background: #f00;
    color: #fff;
    font-family: 'Impact', sans-serif;
    font-size: 1.5rem;
    width: 100%;
    padding: 15px;
    border: 4px outset #ff7777;
    cursor: pointer;
    text-shadow: 2px 2px #000;
}

.btn-brrr:hover {
    background: #b00;
}

@media (max-width: 480px) {
    .croasant-huge { font-size: 6rem; }
    .alerta-titulo { font-size: 1.6rem; }
}

/* ================================================= */
/* ANIMACIÓN BENTO "LIQUID FUSION" - INSTAURIA       */
/* ================================================= */
.bento-item {
    position: relative;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 50px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
}

.bento-item:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--color-primario);
    box-shadow: 0 20px 40px rgba(0, 85, 255, 0.1);
}

.bento-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(0, 85, 255, 0.05),
        transparent
    );
    transition: all 0.6s;
    z-index: -1;
}

.bento-item:hover::before {
    left: 100%;
}

.bento-glow-bg {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 85, 255, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
    z-index: 0;
    opacity: 0;
}

.bento-item:hover .bento-glow-bg {
    opacity: 1;
}

.bento-inner {
    position: relative;
    z-index: 2;
}

/* ================================================= */
/* SECCIÓN PROCESO                                   */
/* ================================================= */
.proceso-section {
    padding: 100px 0 40px;
    background-color: #ffffff !important;
    overflow: hidden;
    margin-bottom: 0;
}
.proceso-header { text-align: center; margin-bottom: 80px; }
.proceso-badge { color: #0055ff; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; display: block; margin-bottom: 15px; }
.proceso-main-title { font-family: 'Playfair Display', serif; font-size: clamp(32px, 4vw, 48px); color: #1a1a1a; max-width: 700px; margin: 0 auto; }
.proceso-main-title .highlight { color: #0055ff; }

.proceso-flow { position: relative; max-width: 900px; margin: 0 auto; }
.proceso-flow::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: #f5f5f5; transform: translateX(-50%); }
.proceso-flow::after { display: none; }

.proceso-step { position: relative; margin-bottom: 100px; width: 100%; opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.proceso-step:last-child { margin-bottom: 20px; }
.proceso-step.active { opacity: 1; transform: translateY(0); }

.step-content { display: flex; align-items: center; justify-content: space-between; }
.step-info { width: 45%; }

.step-num { font-family: var(--fuente-logo); font-size: 5rem; font-weight: 900; color: transparent; -webkit-text-stroke: 1px rgba(0, 85, 255, 0.2); line-height: 1; display: block; margin-bottom: -10px; transition: all 0.6s ease; }
.proceso-step.active .step-num { -webkit-text-stroke: 1px rgba(0, 85, 255, 0.5); transform: translateY(-5px); }

.step-info h3 { font-family: 'Playfair Display', serif; font-size: 24px; color: #1a1a1a; margin-bottom: 15px; }
.step-info p { font-size: 16px; color: #666; line-height: 1.7; }
.step-visual { position: absolute; left: 50%; transform: translateX(-50%); width: 20px; height: 20px; background: #fff; border: 4px solid #0055ff; border-radius: 50%; z-index: 2; }

.proceso-step:nth-child(even) .step-content { flex-direction: row-reverse; }
.proceso-step:nth-child(even) .step-info { text-align: right; }

/* ================================================= */
/* SECCIÓN FAQ INSTAURIA                             */
/* ================================================= */
.faq-section { padding: 120px 0; background: #ffffff; }
.faq-header { text-align: center; margin-bottom: 80px; }
.faq-badge { color: var(--color-primario); letter-spacing: 4px; font-weight: 800; font-size: 0.75rem; text-transform: uppercase; display: block; margin-bottom: 15px; }
.faq-main-title { font-family: var(--fuente-logo); font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -2px; max-width: 850px; margin: 0 auto; line-height: 1.1; color: var(--color-oscuro); }
.faq-container { max-width: 900px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #f0f0f0; padding: 25px 0; cursor: pointer; transition: all 0.3s ease; }
.faq-question { display: flex; align-items: center; justify-content: space-between; }
.faq-num { font-family: var(--fuente-logo); font-size: 3.5rem; font-weight: 900; color: transparent; -webkit-text-stroke: 1px rgba(0, 85, 255, 0.15); margin-right: 40px; transition: all 0.4s ease; line-height: 1; }
.faq-question h3 { font-size: 1.2rem; flex: 1; color: #333; transition: color 0.3s; margin: 0; font-weight: 600; }
.faq-icon { width: 20px; height: 20px; position: relative; margin-left: 20px; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; background: var(--color-primario); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.faq-icon::before { width: 100%; height: 2px; top: 50%; left: 0; transform: translateY(-50%); }
.faq-icon::after { width: 2px; height: 100%; left: 50%; top: 0; transform: translateX(-50%); }
.faq-item.active { padding-bottom: 40px; }
.faq-item.active .faq-num { -webkit-text-stroke: 1px var(--color-primario); transform: translateX(5px); }
.faq-item.active .faq-question h3 { color: var(--color-primario); }
.faq-item.active .faq-icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s; opacity: 0; }
.faq-item.active .faq-answer { max-height: 800px; opacity: 1; }
.faq-answer-inner { padding: 20px 0 0 115px; }
.faq-answer p { color: #666; line-height: 1.8; font-size: 1.05rem; margin: 0; }
.faq-answer p strong { color: var(--color-oscuro); }

/* ================================================= */
/* ESTILOS PÁGINA SERVICIOS                          */
/* ================================================= */
.servicios-custom-page { padding-top: 120px; padding-bottom: 100px; background-color: #ffffff; min-height: 60vh; }
.servicios-custom-page .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ================================================= */
/* CONFIGURACIÓN FINAL MÓVIL (BLINDADA)              */
/* ================================================= */
@media (max-width: 768px) {
    .proceso-flow::before { left: 20px; }
    .step-visual { left: 20px; }
    .step-info { width: 85%; margin-left: 50px; text-align: left !important; }
    .proceso-step:nth-child(even) .step-content { flex-direction: row; }
    .step-num { font-size: 3.5rem; margin-bottom: -5px; }
    .step-info p { color: #444; }
    
    .faq-section { padding: 80px 0; }
    .faq-main-title { font-size: 1.8rem; }
    .faq-num { font-size: 2.2rem; margin-right: 20px; }
    .faq-answer-inner { padding-left: 0; padding-top: 15px; }
    .faq-question h3 { font-size: 1.1rem; }
    .servicios-custom-page { padding-top: 80px; }

    .bento-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        width: 100% !important;
    }
    
    .bento-item {
        width: 100% !important;
        min-height: auto !important;
        padding: 30px 20px !important;
        display: block !important;
        opacity: 0 !important;
        transform: translateY(30px) !important;
        filter: none !important; 
        -webkit-filter: blur(0) !important;
        visibility: visible !important;
        transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1) !important;
    }
    
    .bento-item h3 { font-size: 1.8rem !important; margin-bottom: 15px !important; }
    .bento-item p { font-size: 1rem !important; line-height: 1.5 !important; opacity: 1 !important; }
    .bento-tags { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; }

    .bento-item.bento-animado-movil {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    .bento-item:nth-child(1).bento-animado-movil { transition-delay: 0.1s !important; }
    .bento-item:nth-child(2).bento-animado-movil { transition-delay: 0.25s !important; }
    .bento-item:nth-child(3).bento-animado-movil { transition-delay: 0.4s !important; }

    .contacto-info-content {
        opacity: 0 !important;
        transform: translateX(-40px) !important;
        transition: all 1s cubic-bezier(0.19, 1, 0.22, 1) !important;
        visibility: visible !important;
    }
    
    .contacto-form-float {
        opacity: 0 !important;
        transform: translateX(40px) scale(0.95) !important;
        transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1) !important;
        visibility: visible !important;
    }

    .contacto-info-content.active,
    .contacto-form-float.active {
        opacity: 1 !important;
        transform: translateX(0) scale(1) !important;
    }

    .form-group-float { margin-bottom: 40px !important; position: relative; }
    .form-group-float input:focus ~ label,
    .form-group-float input:not(:placeholder-shown) ~ label,
    .form-group-float textarea:focus ~ label,
    .form-group-float textarea:not(:placeholder-shown) ~ label {
        top: -18px !important;
        font-size: 0.7rem !important;
        background-color: #ffffff;
        padding: 0 5px;
        z-index: 10;
    }
    .contacto-form-float { padding: 40px 25px !important; }
    .form-group-float input, .form-group-float textarea { padding-top: 10px !important; }
}

/* ================================================= */
/* FIX BLINDADO: MENÚ MÓVIL INSTAURIA                */
/* ================================================= */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex !important;
        z-index: 100000 !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        position: relative;
    }
    
    .main-navigation {
        z-index: 9998 !important;
        display: flex !important;
    }
    
    .main-navigation.toggled {
        right: 0 !important;
    }

    .site-header {
        z-index: 99999 !important;
        position: sticky !important;
        pointer-events: auto !important;
    }

    .hero-servicios-creative {
        z-index: 1 !important;
    }

    .menu-toggle.active .line:nth-child(1) { transform: translateY(7px) rotate(45deg) !important; background-color: var(--color-oscuro) !important; }
    .menu-toggle.active .line:nth-child(2) { opacity: 0 !important; transform: translateX(-20px) !important; }
    .menu-toggle.active .line:nth-child(3) { transform: translateY(-7px) rotate(-45deg) !important; background-color: var(--color-oscuro) !important; }
}

/* ================================================= */
/* HERO SERVICIOS CREATIVO (INSTAURIA)               */
/* ================================================= */
.hero-servicios-creative {
    position: relative;
    padding: 50px 0 120px 0; 
    background-color: var(--color-blanco);
    overflow: hidden;
}

.hero-orb-bg {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 60vw;
    height: 60vw;
    max-width: 800px;
    max-height: 800px;
    background: radial-gradient(circle, rgba(0, 85, 255, 0.08) 0%, transparent 60%);
    border-radius: 50%;
    animation: floatOrb 10s infinite alternate ease-in-out;
    z-index: 0;
    pointer-events: none;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-50px, 50px) scale(1.1); }
}

.hero-servicios-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.hero-servicios-left { max-width: 900px; }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background-color: rgba(0, 85, 255, 0.05);
    border: 1px solid rgba(0, 85, 255, 0.1);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primario);
    margin-bottom: 30px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-primario);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(0, 85, 255, 0.7);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(0, 85, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 85, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 85, 255, 0); }
}

.hero-servicios-title {
    font-family: var(--fuente-logo);
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 900;
    line-height: 1.3 !important;
    color: var(--color-oscuro);
    margin: 0;
    letter-spacing: -0.5px !important;
}

.text-outline {
    color: transparent;
    -webkit-text-stroke: 2px var(--color-oscuro);
    text-stroke: 2px var(--color-oscuro);
}

.text-italic-glow {
    font-style: italic;
    color: var(--color-primario);
}

.hero-servicios-right {
    align-self: flex-end;
    max-width: 500px;
    padding-top: 20px;
}

.hero-servicios-desc {
    font-family: var(--fuente-menu);
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    font-weight: 400;
    margin-bottom: 40px;
}

.btn-creative-magnetic {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-creative-magnetic .btn-text {
    font-weight: 800;
    font-size: 1rem;
    color: var(--color-oscuro);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.btn-creative-magnetic .btn-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--color-primario);
    color: #fff;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-creative-magnetic .btn-arrow svg {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
    stroke: #ffffff !important;
}

.btn-creative-magnetic:hover .btn-text { border-bottom: 2px solid var(--color-primario); }
.btn-creative-magnetic:hover .btn-arrow {
    transform: scale(1.1) translateX(10px);
    box-shadow: 0 10px 20px rgba(0, 85, 255, 0.3);
}

@media (max-width: 768px) {
    .hero-servicios-creative { padding: 40px 0 60px 0 !important; }
    .hero-servicios-right { align-self: flex-start; max-width: 100%; }
    .text-outline { -webkit-text-stroke: 1px var(--color-oscuro); text-stroke: 1px var(--color-oscuro); }
    .btn-creative-magnetic { display: inline-flex !important; align-items: center !important; }
}

/* ================================================= */
/* SECCIÓN PERFORMANCE TECHNICAL (IMPACTO CINEMÁTICO)*/
/* ================================================= */
.performance-technical {
    padding: 140px 0;
    background-color: #ffffff;
    overflow: hidden;
}

.tech-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
}

.tech-header {
    margin: 0;
    padding: 0;
}

/* --- TIPOGRAFÍA PREMIUM MANIFIESTO --- */
.performance-technical .performance-title {
    font-family: var(--fuente-logo) !important;
    font-weight: 900 !important;
    font-size: clamp(2.8rem, 7vw, 5.2rem) !important;
    line-height: 1.1 !important;
    letter-spacing: -1.5px !important;
    color: var(--color-oscuro);
    margin-top: -5px !important;
    margin-bottom: 50px !important;
    text-transform: none;
    overflow: hidden;
    display: block;
}

.performance-technical .text-outline {
    font-family: var(--fuente-logo);
    color: transparent;
    -webkit-text-stroke: 1.5px var(--color-oscuro);
    font-style: italic;
}

.performance-technical .highlight {
    font-family: var(--fuente-logo);
    color: var(--color-primario) !important;
    font-style: normal;
    display: inline-block;
    transform: skewX(-5deg);
}

.performance-technical .performance-title span {
    display: inline-block;
    transform: translateY(115%);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.performance-technical .performance-title.reveal-visible span {
    transform: translateY(0);
}

/* 2. La Línea de Energía Vertical */
.tech-list {
    position: relative;
    padding-left: 40px;
    padding-top: 5px;
}

.tech-list::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: rgba(0, 0, 0, 0.05); /* Carril apagado */
}

.tech-list-progress {
    position: absolute;
    left: 0;
    top: 10px;
    width: 2px;
    height: 0%; 
    background: linear-gradient(to bottom, var(--color-primario), #00d4ff);
    box-shadow: 0 0 15px rgba(0, 85, 255, 0.4);
    /* Quitamos la transición fija para que sea fluida con el scroll */
    transition: none; 
    z-index: 1;
}

/* 3. Los puntos que se encienden */
.tech-item {
    position: relative;
    margin-bottom: 80px;
}

.tech-item:first-child { margin-top: 0; }
.tech-item:last-child { margin-bottom: 0; }

.tech-dot {
    position: absolute;
    left: -44px;
    top: 8px;
    width: 10px;
    height: 10px;
    background-color: #ddd;
    border-radius: 50%;
    z-index: 2;
    transition: all 0.6s ease;
}

.tech-item.reveal-visible .tech-dot {
    background-color: var(--color-primario);
    transform: scale(1.6);
    box-shadow: 0 0 20px var(--color-primario);
}

/* 4. El texto que aparece con blur */
.tech-info {
    opacity: 0;
    filter: blur(10px);
    transform: translateX(20px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-item.reveal-visible .tech-info {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
}

.tech-info h3 {
    font-family: var(--fuente-logo);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-oscuro);
    margin: 0 0 15px 0;
    letter-spacing: -0.5px;
}

.tech-info p {
    font-size: 1.05rem !important;
    margin: 0;
    color: #666 !important;
}

/* Responsive de Performance Technical */
@media (max-width: 992px) {
    .tech-wrapper {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }
    .performance-technical .performance-title {
        margin-top: 0 !important;
        margin-bottom: 40px !important;
    }
    .tech-list { padding-left: 30px; }
    .tech-dot { left: -34px; }
    .tech-list::before, .tech-list-progress { left: 0; }
    .tech-info h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .performance-technical .performance-title br { display: block; }
    .performance-technical .performance-title {
        letter-spacing: -1px !important;
        font-size: 2.6rem !important;
    }
}

/* ================================================= */
/* SECCIÓN SERVICIOS ESPECIALIZADOS                  */
/* ================================================= */
.servicios-especializados {
    padding: 100px 0;
    background-color: #ffffff !important; 
}

.servicios-main-title {
    font-family: var(--fuente-logo);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    text-align: center;
    margin-bottom: 80px;
    letter-spacing: -0.5px;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.servicio-card {
    background: #ffffff;
    padding: 50px;
    border: 1px solid #f0f0f0; 
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(30px);
}

.servicio-card:hover {
    border-color: var(--color-primario);
    background-color: #ffffff;
    box-shadow: 0 30px 60px rgba(0, 85, 255, 0.08);
    transform: translateY(-10px);
}

.servicio-header {
    margin-bottom: 25px;
}

.servicio-num {
    color: var(--color-primario);
    font-family: var(--fuente-menu);
    font-weight: 800;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.servicio-card h3 {
    font-family: var(--fuente-logo);
    font-size: 1.8rem;
    line-height: 1.2;
    color: var(--color-oscuro);
    margin: 0;
}

.servicio-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.servicio-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.servicio-features li {
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
    line-height: 1.4;
}

.servicio-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background-color: var(--color-primario);
    border-radius: 50%;
}

.servicio-card.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .servicios-grid { grid-template-columns: 1fr; }
    .servicio-card { padding: 35px; }
}

/* --- HERO SERVICIOS IMPACTO TOTAL (TEXTO ORIGINAL) --- */
.hero-servicios-full {
    position: relative;
    padding: 20px 0 120px 0;
    background-color: #ffffff;
    overflow: hidden;
}

.hero-full-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Título Masivo que ocupa el espacio derecho */
.hero-title-max {
    font-family: var(--fuente-logo);
    font-size: clamp(2.5rem, 7vw, 5.5rem) !important; 
    line-height: 1 !important;
    letter-spacing: -1px !important;
    color: var(--color-oscuro);
    margin: 40px 0 60px 0 !important;
    width: 100% !important;
    text-align: left;
}

/* Alineación inferior: Descripción a la izquierda, Botón a la derecha */
.hero-bottom-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    border-top: 1px solid #f0f0f0;
    padding-top: 40px;
}

.hero-desc-wide {
    max-width: 550px; /* Mantenemos la descripción legible */
    font-size: 1.15rem !important;
    line-height: 1.7 !important;
    color: #666 !important;
    margin: 0 !important;
}

/* Estilos de énfasis (Tus originales) */
.text-outline {
    color: transparent;
    -webkit-text-stroke: 2px var(--color-oscuro);
}

.text-italic-glow {
    font-style: italic;
    color: var(--color-primario);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero-title-max {
        font-size: clamp(2.8rem, 10vw, 4.5rem) !important;
        letter-spacing: -1px !important;
    }
    .hero-bottom-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
}

/* --- ALINEACIÓN Y NUEVO CTA --- */

.hero-bottom-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* ALINEACIÓN PERFECTA: Ambos empiezan a la misma altura */
    gap: 60px;
    border-top: 1px solid #f0f0f0;
    padding-top: 40px;
    width: 100%;
}

.hero-desc-wide {
    max-width: 550px;
    font-size: 1.15rem !important;
    line-height: 1.6 !important; /* Ajustado para mayor elegancia */
    color: #555 !important;
    margin: 0 !important;
}

/* DISEÑO DEL NUEVO CTA */
.btn-cta-instauria {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background-color: var(--color-primario);
    color: #ffffff;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 4px; /* Un toque más cuadrado y técnico */
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap; /* Evita que el botón se rompa en dos líneas */
    box-shadow: 0 10px 30px rgba(0, 85, 255, 0.15);
}

.btn-cta-instauria span {
    position: relative;
    z-index: 1;
}

.btn-cta-instauria .icon-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.4s ease;
}

/* Efecto de Hover */
.btn-cta-instauria:hover {
    background-color: var(--color-oscuro);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.btn-cta-instauria:hover .icon-arrow {
    transform: translate(3px, -3px); /* La flecha se mueve hacia la esquina */
}

/* Responsive */
@media (max-width: 768px) {
    .hero-bottom-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
    .btn-cta-instauria {
        width: 100%;
        justify-content: center;
    }
}

/* --- MEJORA DE LEGIBILIDAD EN EL FOOTER --- */

/* La descripción: de gris apagado a blanco suave */
.footer-column p {
    color: #f5f5f5 !important; /* Un blanco roto que no cansa la vista pero se lee perfecto */
    font-size: 1rem !important;
    line-height: 1.8;
    opacity: 1 !important; /* Eliminamos cualquier transparencia que lo apague */
}

/* El Email: Queremos que brille y sea el CTA final */
.footer-column a[href^="mailto:"] {
    color: var(--color-primario) !important; /* Azul eléctrico */
    font-size: 1.2rem !important; /* Un poco más grande para que sea fácil de clicar */
    font-weight: 700 !important;
    text-decoration: none;
    border-bottom: 2px solid rgba(0, 85, 255, 0.3); /* Línea sutil debajo */
    transition: all 0.3s ease;
}

.footer-column a[href^="mailto:"]:hover {
    color: #ffffff !important;
    border-bottom-color: #ffffff;
    padding-left: 5px; /* Pequeño desplazamiento al pasar el ratón */
}

/* Los títulos de las columnas (ej: "Navegación", "Legal") */
.footer-column h4 {
    color: #ffffff !important; /* Blanco puro para los encabezados */
    font-weight: 800;
    letter-spacing: 2px;
}





/* ================================================= */
/* FAQ GRID TILES (SERVICIOS) - DISEÑO FLUIDO        */
/* ================================================= */
.faq-instauria-grid {
    padding: 120px 0;
    background-color: #ffffff;
}

.faq-grid-title {
    font-family: var(--fuente-logo);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 80px;
}

/* La rejilla de 2 columnas */
.faq-tiles-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.faq-tile {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    padding: 40px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    height: fit-content;
}

/* Efecto hover premium */
.faq-tile:hover {
    border-color: var(--color-primario);
    box-shadow: 0 15px 30px rgba(0, 85, 255, 0.05);
}

.faq-tile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.faq-tile-header h3 {
    font-family: var(--fuente-menu);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-oscuro);
    line-height: 1.4;
    margin: 0;
}

/* Flecha animada */
.faq-icon-arrow {
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-icon-arrow::before {
    content: '→';
    font-size: 1.5rem;
    color: var(--color-primario);
    line-height: 1;
}

/* Estado Activo */
.faq-tile.active {
    background-color: #fcfcfc;
    border-color: var(--color-primario);
}

.faq-tile.active .faq-icon-arrow {
    transform: rotate(90deg);
}

/* ANIMACIÓN FLUIDA (MANTEQUILLA) */
.faq-tile-body {
    display: grid;
    grid-template-rows: 0fr; /* Altura 0 inicial */
    transition: grid-template-rows 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    opacity: 0;
    pointer-events: none;
}

.faq-content-inner {
    overflow: hidden;
}

.faq-tile.active .faq-tile-body {
    grid-template-rows: 1fr; /* Expansión suave */
    opacity: 1;
    pointer-events: auto;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.faq-tile-body p {
    margin: 0;
    padding-bottom: 5px;
    font-size: 1.05rem !important;
    line-height: 1.7 !important;
    color: #555 !important;
}

/* Responsive: 1 columna en móvil */
@media (max-width: 992px) {
    .faq-tiles-container {
        grid-template-columns: 1fr;
    }
}





/* --- BLOG LAYOUT --- */


/* Reutilizamos el estilo del Hero de Servicios */
.blog-hero { 
    text-align: center; 
    padding: 40px 0 50px; 
    background-color: #fdfdfd; 
}

.blog-hero .hero-badge {
    background: #eef2ff; /* Azul muy clarito */
    color: #0052FF;      /* Tu azul corporativo */
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-hero .highlight {
    color: #0052FF;
}

/* --- GRID DE TARJETAS --- */
.blog-grid-section { padding: 60px 0 100px; }

.blog-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

/* La Tarjeta "Instauria" */
.instauria-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.instauria-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.card-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.instauria-card:hover .card-image img {
    transform: scale(1.05);
}

.card-body { padding: 30px; }

.card-meta { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 15px; 
    font-size: 0.8rem; 
    color: #888;
}

.card-meta .category { 
    color: #0052FF; 
    font-weight: 700; 
    text-transform: uppercase; 
}

.card-title { font-size: 1.4rem; margin-bottom: 15px; line-height: 1.3; }
.card-title a { color: #1a1a1a; text-decoration: none; }
.card-title a:hover { color: #0052FF; }

.card-excerpt { color: #555; font-size: 0.95rem; line-height: 1.6; }

.card-link { 
    display: inline-block; 
    margin-top: 20px; 
    color: #0052FF; 
    font-weight: 700; 
    text-decoration: none; 
}





/* --- ESTILOS ENTRADA INDIVIDUAL (SINGLE) --- */

/* Contenedor estrecho para legibilidad (máximo 80-90 caracteres por línea) */
.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.post-header-section {
    padding: 60px 0 40px;
    text-align: center;
}

.post-meta-top {
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-category a { color: #0052FF; text-decoration: none; }
.post-date { color: #888; margin-left: 15px; }

.post-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.1;
    color: #1a1a1a;
    margin-bottom: 20px;
    font-weight: 800;
}

.post-author {
    color: #666;
    font-size: 1rem;
}

/* Imagen destacada con bordes redondeados */
.post-featured-image {
    margin-bottom: 60px;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* Estilo del contenido (Cuerpo del texto) */
.entry-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #2c2c2c;
}

.entry-content h2, .entry-content h3 {
    margin: 50px 0 25px;
    color: #1a1a1a;
    line-height: 1.3;
}

.entry-content p {
    margin-bottom: 30px;
}

/* Estilos para listas y citas dentro del post */
.entry-content ul, .entry-content ol {
    margin-bottom: 30px;
    padding-left: 20px;
}

.entry-content blockquote {
    border-left: 4px solid #0052FF;
    padding-left: 30px;
    font-style: italic;
    font-size: 1.4rem;
    color: #444;
    margin: 40px 0;
}

/* Navegación inferior */
.post-footer-nav {
    padding: 60px 0 100px;
    border-top: 1px solid #eee;
    margin-top: 60px;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
}

.nav-links a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #0052FF;
}

/* ==========================================================================
   FORMULARIO INSTAURIA - FIX DE SUPERPOSICIÓN Y ESPACIOS
   ========================================================================== */

/* 1. ELIMINAR LÍNEA BAJO EL TÍTULO */
.form-header, 
.form-header h3 {
    border: none !important;
    margin-bottom: 15px !important; 
    padding-bottom: 0 !important;
}

/* 2. ELIMINAR HUECOS FANTASMA DE WORDPRESS */
.instauria-form p {
    display: contents; /* Evita que los <p> generen márgenes extra */
}

.instauria-form br {
    display: none !important;
}

/* 3. CONTROL DE ESPACIO ENTRE APARTADOS (BLOQUES COMPLETOS) */
.instauria-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
    margin-bottom: 22px !important; /* Espacio entre cada campo */
}

/* 4. MÁS ESPACIO ENTRE TEXTO ESCRITO Y LÍNEA DE DEBAJO */
.instauria-form input[type="text"],
.instauria-form input[type="email"],
.instauria-form textarea {
    width: 100%;
    /* El 18px final es el que aleja la línea del texto */
    padding: 8px 0 18px 0 !important; 
    font-size: 16px;
    color: #1a1a1a !important;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    outline: none;
    display: block;
    box-shadow: none !important;
}

/* 5. AJUSTE DE ETIQUETAS FLOTANTES (LABELS) */
.form-group-float {
    position: relative;
    display: flex;
    flex-direction: column;
}

.form-group-float label {
    position: absolute;
    top: 8px;
    left: 0;
    font-size: 15px;
    color: #666;
    pointer-events: none;
    transition: all 0.25s ease-in-out;
    z-index: 1;
}

/* FIX DEFINITIVO DE SUPERPOSICIÓN:
   Mantenemos la etiqueta arriba si:
   1. Estamos clicando (focus-within)
   2. El input NO está vacío (:not(:placeholder-shown))
*/
.form-group-float:focus-within label,
.form-group-float:has(input:not(:placeholder-shown)) label,
.form-group-float:has(textarea:not(:placeholder-shown)) label {
    top: -15px !important;
    font-size: 11px !important;
    color: #0052FF !important;
    font-weight: 700;
    opacity: 1;
}

/* 6. BOTÓN PREMIUM */
.btn-enviar-premium {
    width: 100%;
    padding: 16px;
    background: #0052FF;
    color: white !important;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    margin-top: 10px !important;
    transition: background 0.3s ease;
}

.btn-enviar-premium:hover {
    background: #003cc2;
}

/* Estilo para el área de texto */
.instauria-form textarea {
    min-height: 100px;
    resize: none;
}