/* assets/css/style.css */

/* ======================================= */
/* ?============= VARIABLES ============== */
/* ======================================= */

:root {
    /** NUEVA PALETA DE COLORES (REDISEÑO 2026 — HÍBRIDO) */
    --color-primary: #192d4e;
    /* Azul noche corporativo (base) */
    /* --color-secondary: #1e5385; */
    --color-secondary: #2466a0;
        /* Azul profundo de apoyo (logo) */
        --color-secondary2: #192d4e;
    /* Dorado del sitio (líneas, botones, hover). Se puede cambiar sin tocar el footer. */
    --color-accent: #b9872a;
    /* Dorado del footer (títulos, bordes e iconos). No sigue a --color-accent. */
    --color-footer-gold: #c5a059;
    --color-footer-icon: #e5bc6b;
    --color-accent2: var(--color-footer-gold);

    --color-white: #ffffff;
    --color-dark: #0f1c2e;
    --color-gray-light: #f4f6f8;

    /* MAPEO LEGACY */
    --primary-color-1: var(--color-primary);
    --secondary-color-5: var(--color-accent);
    --white-color-1: var(--color-white);
    --dark-color-1: var(--color-dark);
    --gray-color-2: #757575;

    /** TIPOGRAFÍA */
    --font-size-default: 19px;
    --font-regular: 400;
    --font-medium: 500;
    --font-semi-bold: 500;
    --font-bold: 600;

    /** VAR-TYPOGRAPHY-FOOTER*/
    --slogan-desktop: 1.62em;
    --footer-mobile: 0.75em;
    --footer-tablet: 0.8em;
    --footer-desktop: 0.855em;

    /** ESCALAS DE TEXTO */
    --h1-mobile: 1.98em;
    --h1-tablet: 2.26em;
    --h1-laptop: 3em;
    --h1-desktop: 3.78em;

    --h2-mobile: 1.15em;
    --h2-tablet: 1.26em;
    --h2-desktop: 1.5em;

    --h3-mobile: 1.05em;
    --h3-tablet: 0.95em;
    --h3-desktop: 1.14em;

    --texto-desktop: 1.1rem;

    --h4-mobile: 1.09em;
    --h4-tablet: 1.1em;
    --h4-desktop: 1.2em;

    /** ESPACIADO & LAYOUT */
    --spacing-default: 1.6;
    --max-width-desktop: 1280px;
    --border-radius-card: 8px;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);

    --margin-layout-mobile: 2.8em;
    --margin-layout-desktop: 4em;
    --padding-layout-mobile: 0 1rem;
    --padding-layout-desktop: 0 2rem;
}


/* ======================================= */
/* ?=============== RESET ================ */
/* ======================================= */

* {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

/* CARGA DE FUENTES */
@font-face {
    font-family: "Morales";
    src: url("../fonts/Morales-Regular.woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Morales";
    src: url("../fonts/Morales-Medium.woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: "Morales", "Segoe UI", Roboto, sans-serif;
    line-height: var(--spacing-default);
    font-size: var(--font-size-default);
    color: var(--color-dark);
    background-color: var(--color-gray-light);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

h1,
h2,
h3,
h4 {
    font-weight: var(--font-medium);
    color: var(--color-primary);
    line-height: 1.2;
}

.negrita,
strong {
    font-weight: 500;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* ======================================= */
/* ?=========== COMPONENTES ============= */
/* ======================================= */

/* CONTENEDOR PRINCIPAL */
.container {
    width: 100%;
    margin: 0 auto;
    max-width: var(--max-width-desktop);
    padding: var(--padding-layout-mobile);
}

/* BOTONES — base navy; dorado solo en hover con texto azul noche */
.button {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: var(--font-medium);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
}

.button-cards {
    background-color: var(--color-primary);
}

.button:hover {
    transform: translateY(-2px);
}

/*
 * Header nav: AGENDAR CITA
 * Base #2466a0 | Hover #b9872a | texto blanco
 * Anula border-bottom dorado de los enlaces del menú
 */
.c-header__nav__ul li a.button.button-cita.btn-agendar-header,
.c-header__nav__ul li a.button.button-cita.btn-agendar-header:hover,
.c-header__nav__ul li a.button.button-cita.btn-agendar-header:focus,
.c-header__nav__ul li a.button.button-cita.btn-agendar-header.active {
    background-color: #2466a0 !important;
    color: #ffffff !important;
    border: none !important;
    border-bottom: none !important;
    text-decoration: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.c-header__nav__ul li a.button.button-cita.btn-agendar-header i {
    color: #ffffff !important;
}

.c-header__nav__ul li a.button.button-cita.btn-agendar-header:hover,
.c-header__nav__ul li a.button.button-cita.btn-agendar-header:focus {
    background-color: var(--color-accent) !important;
    color: #ffffff !important;
    border: none !important;
    border-bottom: none !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transform: translateY(-2px);
}

.c-header__nav__ul li a.button.button-cita.btn-agendar-header:hover i,
.c-header__nav__ul li a.button.button-cita.btn-agendar-header:focus i {
    color: #ffffff !important;
}

/*
 * Cuerpo (HOME banda, etc.): AGENDAR CITA
 * Normal #2466a0 | Hover #b9872a | Texto/icono siempre blanco
 */
.btn-agendar-cita,
.btn-arquitecto.btn-primary.btn-agendar-cita {
    background-color: #2466a0 !important;
    color: #ffffff !important;
}

.btn-agendar-cita i,
.btn-arquitecto.btn-primary.btn-agendar-cita i {
    color: #ffffff !important;
}

.btn-agendar-cita:hover,
.btn-agendar-cita:focus,
.btn-arquitecto.btn-primary.btn-agendar-cita:hover,
.btn-arquitecto.btn-primary.btn-agendar-cita:focus {
    background-color: var(--color-accent) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.btn-agendar-cita:hover i,
.btn-agendar-cita:focus i,
.btn-arquitecto.btn-primary.btn-agendar-cita:hover i,
.btn-arquitecto.btn-primary.btn-agendar-cita:focus i {
    color: #ffffff !important;
}

/* Proceso 100% Virtual — AGENDAR: Navy + hover dorado (texto blanco) */
.proceso-virtual .btn-agendar-cita,
.proceso-virtual .btn-arquitecto.btn-primary.btn-agendar-cita {
    background-color: #192d4e !important;
    color: #ffffff !important;
}

.proceso-virtual .btn-agendar-cita:hover,
.proceso-virtual .btn-agendar-cita:focus,
.proceso-virtual .btn-arquitecto.btn-primary.btn-agendar-cita:hover,
.proceso-virtual .btn-arquitecto.btn-primary.btn-agendar-cita:focus {
    background-color: var(--color-accent) !important;
    color: #ffffff !important;
}

.proceso-virtual .btn-agendar-cita i,
.proceso-virtual .btn-agendar-cita:hover i,
.proceso-virtual .btn-agendar-cita:focus i {
    color: #ffffff !important;
}

/* WhatsApp en Proceso Virtual: normal = verde oscuro previo hover; hover = #25d366 */
.proceso-virtual .btn-arquitecto.btn-whatsapp {
    background-color: #1ebe57 !important;
    color: #ffffff !important;
}

.proceso-virtual .btn-arquitecto.btn-whatsapp:hover,
.proceso-virtual .btn-arquitecto.btn-whatsapp:focus {
    background-color: #25d366 !important;
    color: #ffffff !important;
}

.proceso-virtual .btn-arquitecto.btn-whatsapp i,
.proceso-virtual .btn-arquitecto.btn-whatsapp:hover i,
.proceso-virtual .btn-arquitecto.btn-whatsapp:focus i {
    color: #ffffff !important;
}

.btn-2 {
    background-color: var(--color-primary);
    box-shadow: 0 4px 6px rgba(25, 45, 78, 0.2);
}

.btn-2:hover {
    background-color: var(--color-accent);
    color: #192d4e;
}

div.btns {
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

/* ========================================================= */
/* ? === HERO OPTIMIZADO (LCP FIX & RENDER BLOCKING) === ? */
/* ========================================================= */

.hero {
    position: relative;
    /* Reservamos espacio para evitar Layout Shift */
    width: 100%;
    min-height: 305px;
    /* Altura mínima móvil */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    /* Creamos un contexto de apilamiento aislado */
    isolation: isolate;
}

/* 1. Capa Base: La Imagen (Background) */
/* Clase nueva para el picture en main.php */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Base level */
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Optimizaciones de renderizado */
    will-change: transform;
}

/* Compatibilidad Legacy: Si el HTML aún no tiene la clase .hero-bg */
.hero>picture img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    /* Corregido de -1 a 0 */
}

/* 2. Capa Media: El Overlay (Gradiente) */
.overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(to right, rgba(25, 45, 78, 0.85), rgba(25, 45, 78, 0.45)); */
    background: linear-gradient(to right, rgba(11, 24, 46, 0.85), rgba(25, 45, 78, 0.45));
    opacity: 0.7;
    z-index: 1;
    /* Encima de la imagen */
    pointer-events: none;
    /* Permite clicks a través */
}

/* 3. Capa Superior: Texto y Contenido */
.texto-hero,
.texto-hero2 {
    position: relative;
    /* Relative para que el z-index funcione */
    width: 100%;
    z-index: 2;
    /* Lo más alto */
    padding: 0.1em;
    margin: auto;
    /* Texto */
    text-align: center;
    color: #ffff;
    font-weight: normal;
    -webkit-text-stroke-width: 1px;
    font-size: var(--h1-desktop);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    /* Legibilidad mejorada */
}

/* Animaciones de Texto */
.banner-text-item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
    will-change: opacity, visibility;
    z-index: 3;
}

.banner-text-item.active-text {
    opacity: 1;
    visibility: visible;
}

@media screen and (min-width: 601px) {
    .hero {
        aspect-ratio: 1920 / 800;
        min-height: auto;
        /* max-height: 580px; */
        /* Opcional si quieres limitar altura */
        max-height: 600px;
    }
}

@media screen and (min-width: 1100px) {
    .texto-hero {
        font-size: var(--h1-desktop);
    }
}


/* ======================================= */
/* ?======= HEADER Y NAVEGACIÓN ======== ? */
/* ======================================= */

.c-header {
    background-color: var(--color-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
}

.c-header__nav__ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 22px;
}

.c-header__nav__ul li a {
    color: var(--color-dark);
    font-weight: var(--font-regular);
    font-size: 0.873em;
    text-transform: uppercase;
    /* padding: 0.5rem 0.8rem; */
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    -webkit-text-stroke-width: 0.25px;
}

.c-header__nav__ul li a:hover,
.c-header__nav__ul li a.active {
    /* color: var(--color-secondary); */
    color: var(--color-dark);
    border-bottom: 2.5px solid var(--color-accent);
}

a.button-cita {
    color: var(--color-white) !important;
    padding: 0.5rem 0.8rem;
    gap: 0.45rem;
}

a.button-cita i {
    color: inherit;
    font-size: 0.95rem;
}

.logo-ham a {
    display: block;
    width: 240px;
    height: 42.15px;
    background-image: url('../img/logotipo.svg?v=2.0');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center left;
    text-indent: -9999px;
}

.header-servicios {
    height: 16vh;
    display: flex;
    justify-content: center;
    align-content: center;
    flex-direction: column;
}

.header-servicios__title {
    font-size: var(--h2-desktop);
    margin: 0;
    color: var(--color-white);
    font-weight: 500;
    line-height: 1.25;
}

.breadcrumb-servicios__list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: #666;
    justify-content: flex-start;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb-servicios__list a {
    color: var(--color-secondary);
    font-weight: 500;
    text-decoration: none;
}

.breadcrumb-servicios__list a:hover {
    text-decoration: underline;
    border-bottom: none;
}

.breadcrumb-servicios__list strong {
    color: var(--color-primary);
    font-weight: 500;
}

.breadcrumb-servicios__sep {
    color: #ccc;
}

.servicio-intro-grid {
    padding: 1.5rem 1.75rem;
    display: flex;
    gap: 2rem;
}

/* Card blanca: lista de ámbitos / servicios (misma presencia que el intro) */
.servicio-lista-card {
    margin-top: 3rem;
    padding: 1.5rem 1.75rem 1.75rem;
    background: var(--color-white);
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-soft);
}

.servicio-lista-card>.titulos {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.servicio-lista-card__lead {
    text-align: center;
    margin: 0 0 1.25rem;
    color: #555555;
}

/* Paso 3.5: enlaces internos en subservicios */
.subservicio-enlaces {
    margin-top: 2.5rem;
    padding: 1.25rem 1.35rem;
    background: #f7f8fa;
    border-radius: 6px;
    border: 1px solid rgba(25, 45, 78, 0.08);
}

.subservicio-enlaces__volver {
    margin: 0 0 0.75rem;
}

.subservicio-enlaces__volver a,
.subservicio-enlaces__lista a {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 500;
}

.subservicio-enlaces__label {
    margin: 0 0 0.5rem;
    color: #555;
    font-size: 0.95rem;
}

.subservicio-enlaces__lista {
    margin: 0;
    padding-left: 1.15rem;
    color: #313131;
}

.subservicio-enlaces__lista li {
    margin-bottom: 0.35rem;
}

.servicio-lista-card .ul {
    margin-top: 1.25rem;
    background: transparent;
}

.margen {
    margin-top: 3rem;
}

.consultas {
    padding: 3rem 1rem;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.button-wrapper {
    margin-top: 0.2rem;
}

.servicio-intro-grid p {
    font-size: 19px;
}

.fsize {
    font-size: 19px;
}

.slogan {
    margin-top: 1.2rem;
    font-size: 1.2em;
}

/* Menú Móvil */
@media screen and (max-width: 1099px) {
    .c-header__nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-white);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
    }

    .c-header__nav.responsive {
        display: block;
    }

    .c-header__nav__ul {
        flex-direction: column;
        gap: 0;
    }

    .c-header__nav__ul li {
        width: 90%;
        text-align: center;
        padding: 0.5rem;
    }

    .c-header__nav__ul li a.nav-link {
        display: block;
        padding: 0.5rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .c-header__nav__ul li a.nav-link:hover,
    .c-header__nav__ul li a.nav-link.active {
        border-bottom-color: transparent;
    }

    .c-header__nav__ul li a.nav-link:hover::after,
    .c-header__nav__ul li a.nav-link.active::after {
        content: "";
        display: block;
        width: 90px;
        height: 2.5px;
        margin: 0.15rem auto 0;
        background-color: var(--color-accent);
    }

    picture {
        min-width: 350px;
    }

    .logo-ham {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .button-cita {
        margin-top: 1rem;
    }

    div.btns {
        padding: 0 5px;
    }
}


/* ======================================= */
/* ?===== TARJETAS DE SERVICIO (GRID) === ? */
/* ======================================= */

.container-cards {
    display: grid;
    gap: 30px;
    margin: 0 auto;
    max-width: var(--max-width-desktop);
    grid-template-columns: 1fr;
    row-gap: 3rem;
}

.card {
    background: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(25, 45, 78, 0.06);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.card .card-picture-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.card .card-picture-link img {
    transition: transform 0.35s ease;
}

.card .card-picture-link:hover img,
.card .card-picture-link:focus-visible img {
    transform: scale(1.04);
}

.card .card-picture-link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: -2px;
}

/* Título sobre fondo blanco + remate dorado superior */
.titulocard {
    background-color: transparent;
    padding: 1.1rem 1.5rem 0.45rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.titulocard h3 {
    color: var(--color-primary);
    font-size: var(--h4-desktop);
    margin: 0;
    font-weight: var(--font-medium);
    line-height: 1.3;
    text-align: center;
    max-width: 100%;
}

.titulocard h3::after {
    content: "";
    display: block;
    width: 80px;
    height: 2.5px;
    margin: 0.4rem auto 0;
    background-color: var(--color-accent);
}

.card-text {
    padding: 1rem 1.5rem 1.6rem;
    color: #454545;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Listas de servicios: formato vertical legacy con viñetas circulares */
.card-text ul {
    list-style-type: disc;
    list-style-position: outside;
    padding-left: 1.25rem;
    margin: 0 0 1.35rem 0.15rem;
    /* line-height: 1.7; */
    font-size: inherit;
    color: #454545;
}

.card-text ul li {
    display: list-item;
    padding: 0;
    margin: 0 0 0.45rem;
    font-size: inherit;
    color: inherit;
}

.card-text ul li::before,
.card-text ul li::after {
    content: none;
}

/* Doble botón restaurado: MÁS INFO + CONSULTAR */
.card .btns {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0 !important;
    margin-top: 0.75rem;
}

.card .card-btn-info,
.card .card-btn-consultar {
    flex: 1 1 calc(50% - 0.4rem);
    min-width: 7.5rem;
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
    color: #ffffff !important;
    text-align: center;
    box-shadow: none;
}

.card .card-btn-info {
    background-color: #192d4e !important;
    
}

.card .card-btn-info:hover,
.card .card-btn-info:focus {
    background-color: rgb(117, 117, 117) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.card .card-btn-consultar {
    background-color: #2466a0 !important;
}

.card .card-btn-consultar:hover,
.card .card-btn-consultar:focus {
    background-color: var(--color-accent) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

@media screen and (max-width: 649px) {
    .card .btns {
        /* flex-direction: column;
        align-items: stretch; */
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.9rem;
    }

    .card .card-btn-info,
    .card .card-btn-consultar {
        flex: 1 1 auto;
        width: 100%;
    }
}

.seccion-3 {
    margin-top: var(--margin-layout-mobile);
    padding: 0.5rem;
}

/* Responsive Grid */
@media screen and (min-width: 650px) {
    .container-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 1024px) {
    .container-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Ajustes legacy mobile específicos (tipografía especialidades) */
@media (max-width: 649px) {
    .texto-hero {
        font-size: 2.2em !important;
    }

    .banner-text-item {
        box-sizing: border-box;
        padding: 1.5rem 0;
    }

    .hero {
        height: 50vh;
        max-height: 305px;
    }

    .header-servicios {
        height: 10vh;
        min-height: 64px;
        padding: 0.65rem 0;
    }

    .header-servicios__title {
        font-size: var(--h2-mobile);
        line-height: 1.2;
        padding: 0 0.5rem;
    }

    .breadcrumb-servicios {
        padding: 0.75rem 0 !important;
        margin-bottom: 1.5rem !important;
    }

    .breadcrumb-servicios__list {
        font-size: 0.88rem;
        gap: 0.45rem;
    }

    .main-especialidad .titulos {
        font-size: var(--h2-mobile);
        font-weight: var(--font-medium);
        line-height: 1.3;
    }

    .servicio-intro-grid {
        flex-direction: column;
        padding: 0.88rem;
    }

    .servicio-intro-grid p {
        font-size: 17.5px;
        line-height: 1.65;
    }

    .fsize {
        font-size: 17.5px;
        line-height: 1.65;
    }

    .main-especialidad {
        margin-top: 0.75em;
    }

    picture {
        min-width: 0;
    }

    .seccion-2 {
        margin-top: var(--margin-layout-mobile);
    }
}


/* ======================================= */
/* ?============= FOOTER ================ */
/* ======================================= */

.seccion-prefooter {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: var(--margin-layout-mobile);
}

.text-prefooter {
    border-left: 3px solid var(--color-footer-gold);
    padding-left: 1rem;
}

.text-prefooter h3,
.text-prefooter h2 {
    color: var(--color-footer-gold);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.text-prefooter ul {
    list-style: none;
    padding: 0;
}

.text-prefooter p {
    font-size: 1.1rem;
}

.text-prefooter li {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.text-prefooter a {
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.2s;
}

.text-prefooter a:hover {
    color: var(--color-footer-gold);
    text-decoration: underline;
}

.text-prefooter i {
    color: var(--color-footer-icon);
}

.bold {
    font-weight: 500;
    color: #8daecf;
}

.titulos {
    color: var(--color-dark);
}

.titulos,
.h3-size>h3 {
    font-size: var(--h2-mobile);
    font-weight: var(--font-medium);
}

/* H1 de especialidades: tipografía fluida sin CLS (misma escala visual que .titulos) */
h1.servicio-h1 {
    font-size: clamp(1.15rem, 2.4vw, 1.5rem);
    line-height: 1.25;
    font-weight: var(--font-medium);
    color: var(--color-primary);
}


.h3-size>h3 {
    color: var(--color-white);
}

.subservicio {
    padding: 1.5rem;
}

/* --- SOLUCIÓN PARA 3 COLUMNAS EN ESCRITORIO --- */
@media screen and (min-width: 960px) {
    .seccion-prefooter {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-columns: auto auto auto;
        justify-content: center;
        gap: 7rem;
        padding-right: 5%;
        margin-top: var(--margin-layout-desktop);
    }

    .text-prefooter>h2 {
        font-size: 1.15rem;
    }

    .text-prefooter>ul li,
    .text-prefooter>p {
        font-size: 1.1rem;
    }

    .seccion-3 {
        margin-top: var(--margin-layout-desktop);
    }

    .titulos,
    .h3-size>h3 {
        font-size: var(--h2-desktop);
        font-weight: var(--font-medium);
    }

    .subservicio {
        padding: 2rem;
    }
}

.footer {
    background-color: var(--color-dark);
    text-align: center;
    padding: 1.5rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: var(--footer-desktop);
    color: rgba(255, 255, 255, 0.6);
}


/* ======================================= */
/* ?========== UTILIDADES =============== */
/* ======================================= */

.oh-no-osito {
    display: none !important;
}

.hidden {
    display: none;
}

.flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

/* Ajustes Formularios */
.campos,
.comentarios {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.campos:focus,
.comentarios:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(25, 45, 78, 0.1);
}

.ul {
    margin-top: 1.2rem;
}


/* ========================================================== */
/* ? === MIGRACIÓN Y ADAPTACIONES DEL HEAD (LEGACY) === ? */
/* ========================================================== */

/* --- Iconografía y UI Elements (Migrados) --- */
.ham {
    background-image: url('../img/menu.svg');
    background-repeat: no-repeat;
    width: 24px;
    height: 24px;
    margin-right: 4px;
}

.hamx {
    display: none;
    background-image: url('../img/menux.svg') !important;
    background-repeat: no-repeat;
    width: 24px;
    height: 24px;
    margin-right: 4px;
}

/* --- Barras de Navegación Secundarias --- */
.nav2,
.nav3 {
    background-color: #e6e6e6;
    display: flex;
    align-items: center;
    position: sticky;
    top: 70px;
    border-bottom: .1px solid rgba(128, 128, 128, .45);
    z-index: 2;
}

.nav2>nav,
.nav3>nav {
    margin: 0 4%;
}

.nav2 nav ul,
.nav3 nav ul {
    display: flex;
    list-style: none;
    /* justify-content: center; */
    flex-wrap: wrap;
    line-height: normal;
}

nav ul li a {
    padding: 0 3px;
    color: var(--color-dark);
    font-size: 0.88rem;
}

.main-especialidad {
    margin-top: 1.5em;
}

.servicio-intro-grid p+p {
    margin-top: .75em;
}

/* --- Banner Amarillo (Migrado) --- */
.banner {
    background-color: var(--color-primary);
    padding: 10px;
    height: 12vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}

.banner h1,
.banner h2 {
    text-align: center;
    color: var(--color-white);
}

/* Posicionamiento específico del texto hero (Estilo Legacy) */
.texto-hero.legacy-pos {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}


/* ======================================= */
/* ? === MEDIA QUERIES MIGRADOS (HEAD) === */
/* ======================================= */

/* Mobile específico (< 600px) */
@media screen and (max-width: 600px) {
    .logo-ham {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .slogan {
        display: none !important;
        width: 0 !important;
        margin: 0 !important;
    }

    /* Cambio de Logo en Móvil */
    .logo>a,
    .logo-ham a {
        background-image: url('../img/logotipo-mobile.svg?v=2.0') !important;
        width: 210px;
        height: 37px;
    }

    .nav2,
    .nav3 {
        justify-content: center;
        top: 64px;
    }

    .texto-hero {
        font-size: 2.2em;
    }

    .texto-hero>br {
        display: none;
    }
}

/* Ajustes de Grid y Flex Desktop (Migrados de min-width: 961px) */
@media screen and (min-width: 961px) {
    .servicio-intro-grid {
        display: flex;
        gap: 25px;
        align-items: flex-start;
        margin-bottom: 1.5em;
    }

    .servicio-intro-grid>picture {
        flex: 0 0 520px;
    }

    .servicio-intro-grid>div {
        flex: 1 1 auto;
    }
}

/* Desktop Header & Nav Ajustes */
@media screen and (min-width: 1100px) {
    .c-header__nav {
        display: block;
    }

    .ham {
        display: none;
    }

    .nav2,
    .nav3 {
        height: 7vh;
        top: 71px;
        padding-left: 20px;
    }

    .nav2>nav,
    .nav3>nav {
        margin: 0 8%;
    }

}


img.XNo5Ab {
    height: 26px !important;
    width: 26px !important;
}

/* ==========================================================================
   PROCESO 100% VIRTUAL + DOBLE CTA
   ========================================================================== */
.proceso-virtual {
    padding: 3.5rem 0 3rem;
    background: linear-gradient(180deg, #f7f8fa 0%, #ffffff 100%);
    text-align: center;
}

.proceso-virtual h2 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-size: var(--h2-desktop);
    line-height: 1.3;
    font-weight: var(--font-medium);
}

.proceso-virtual__lead {
    color: #555;
    max-width: 560px;
    margin: 0 auto 2.25rem;
    line-height: 1.6;
    font-size: 1rem;
}

.proceso-virtual__steps {
    list-style: none;
    margin: 0 auto 2.5rem;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 980px;
    text-align: center;
}

/* Tarjetas blancas originales con círculo numérico superior */
.proceso-virtual__steps li {
    background: #fff;
    border: 1px solid rgba(25, 45, 78, 0.08);
    border-radius: 8px;
    padding: 1.5rem 1.15rem 1.35rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.proceso-virtual__num {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    background: #192d4e;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.proceso-virtual__steps h3 {
    margin: 0 0 0.45rem;
    color: var(--color-primary);
    font-size: var(--h3-desktop);
}

.proceso-virtual__steps p {
    margin: 0;
    color: #444;
    line-height: 1.6;
    font-size: 1rem;
}

.proceso-virtual__steps a {
    color: var(--color-primary);
    text-decoration: underline;
}

.proceso-virtual__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 1.1rem;
    max-width: 680px;
    margin: 0 auto;
}

.proceso-virtual__action {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    flex: 1 1 0;
    min-width: 0;
}

.proceso-virtual__action .btn-arquitecto {
    width: 100%;
}

.proceso-virtual__trust {
    display: block;
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.35;
    color: #6b7280;
    letter-spacing: 0.01em;
    padding: 0 0.35rem;
}

.btn-arquitecto {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.9rem 1.5rem;
    border-radius: 4px;
    font-weight: var(--font-medium);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-decoration: none;
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
    color: #fff;
}

.btn-arquitecto:hover {
    transform: translateY(-2px);
    color: #fff;
}

.btn-arquitecto.btn-primary:not(.btn-agendar-cita) {
    background-color: var(--color-primary);
    box-shadow: 0 4px 10px rgba(25, 45, 78, 0.22);
    color: #fff;
}

.btn-arquitecto.btn-primary:not(.btn-agendar-cita):hover {
    background-color: #2466a0;
    color: #fff;
}

.btn-arquitecto.btn-primary:not(.btn-agendar-cita):hover i {
    color: #fff;
}

.btn-arquitecto.btn-whatsapp {
    background-color: #25D366;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.28);
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.btn-arquitecto.btn-whatsapp:hover {
    background-color: #1ebe57;
    color: #ffffff;
}

.btn-arquitecto.btn-whatsapp i,
.btn-arquitecto.btn-whatsapp:hover i {
    color: #ffffff;
}

.btn-arquitecto i {
    color: #fff;
    font-size: 1.15rem;
}

@media screen and (min-width: 768px) {
    .proceso-virtual__steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    .proceso-virtual__actions {
        flex-direction: row;
        align-items: flex-start;
        gap: 1rem;
    }

    .proceso-virtual h2 {
        font-size: var(--h2-desktop);
    }

    .proceso-virtual__steps h3 {
        font-size: var(--h3-desktop);
    }
}

@media screen and (max-width: 767px) {
    .proceso-virtual {
        padding: 2.8rem 0 2.4rem;
    }

    .proceso-virtual h2 {
        font-size: var(--h2-mobile);
        line-height: 1.3;
        padding: 0 0.25rem;
    }

    .proceso-virtual__lead {
        font-size: 1rem;
        margin-bottom: 1.75rem;
        padding: 0 0.5rem;
        line-height: 1.6;
    }

    .proceso-virtual__steps {
        gap: 1.15rem;
        margin-bottom: 1.85rem;
        padding: 0 0.25rem;
        grid-template-columns: 1fr;
    }

    .proceso-virtual__steps li {
        padding: 1.35rem 1.1rem;
    }

    .proceso-virtual__num {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1rem;
    }

    .proceso-virtual__steps h3 {
        font-size: var(--h3-mobile);
        line-height: 1.35;
    }

    .proceso-virtual__steps p {
        font-size: 1rem;
        line-height: 1.6;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .proceso-virtual__actions {
        padding: 0 0.25rem;
        gap: 1.1rem;
        flex-direction: column;
    }

    .proceso-virtual__trust {
        font-size: 0.8rem;
    }

    .btn-arquitecto {
        font-size: 0.9rem;
        padding: 0.85rem 1.15rem;
    }

    .servicio-intro-grid,
    .servicio-lista-card {
        padding: 1.5rem 1.25rem 1.75rem;
    }
}

/* ==========================================================================
   BOTÓN FLOTANTE WHATSAPP (VISIBLE EN TODOS LOS DISPOSITIVOS)
   ========================================================================== */
.wa-float {
    display: flex;
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.wa-float:hover,
.wa-float:focus {
    color: #fff;
    background: #1ebe57;
    transform: scale(1.1);
}

/* Desktop: estático (sin ondas) */
.wa-float__pulse {
    display: none;
}

/* Móvil: ondas pulsantes */
@media screen and (max-width: 768px) {
    .wa-float {
        right: 1.1rem;
        bottom: 1.1rem;
    }

    .wa-float:hover,
    .wa-float:focus {
        transform: none;
    }

    .wa-float__pulse {
        display: block;
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: #25D366;
        animation: wa-pulse 2s ease-out infinite;
        z-index: -1;
        pointer-events: none;
    }

    .wa-float__pulse--delay {
        animation-delay: 0.6s;
    }
}

@keyframes wa-pulse {
    0% {
        transform: scale(1);
        opacity: 0.55;
    }

    100% {
        transform: scale(1.85);
        opacity: 0;
    }
}