/* ===================================
    GalanSeijo - custom overrides
====================================== */

/* -----------------------------------------------
   HEADER: gradiente sutil de legibilidad
   Solo cuando no está sticky (encima del hero)
----------------------------------------------- */
header:not(.sticky) nav {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.55) 0%, transparent 100%);
}

/* -----------------------------------------------
   NAV: subrayado animado en hover
----------------------------------------------- */
.navbar .navbar-nav .nav-link {
    position: relative;
    text-transform: uppercase;
    font-size: 14px !important;
}
.navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--base-color);
    transition: width 0.25s ease;
    border-radius: 2px;
}
.navbar .navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* -----------------------------------------------
   ÁREAS DROPDOWN: flecha animada al hacer hover
----------------------------------------------- */
.fa-angle-down.areas-dropdown-arrow {
    transition: transform 0.25s ease;
    display: inline-block;
    cursor: pointer;
    margin-left: 3px;
}
.nav-item.show .fa-angle-down.areas-dropdown-arrow,
.nav-item:hover .fa-angle-down.areas-dropdown-arrow {
    transform: rotate(180deg);
}

/* -----------------------------------------------
   DROPDOWN MENÚ: ancho, padding y iconos FA
----------------------------------------------- */
.navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu {
    min-width: 300px;
}
.navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li a {
    padding: 13px 15px;
    text-transform: uppercase;
    font-size: 14px !important;
}

/* -----------------------------------------------
   BOTÓN "Concertar Cita": micro-animación
----------------------------------------------- */
.header-button .btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.header-button .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(36, 78, 70, 0.35) !important;
}
/* El icono del botón adopta el color corporativo cuando el fondo desaparece */
.header-button .btn:hover i {
    color: var(--base-color) !important;
}

/* -----------------------------------------------
   CTA "Consulta gratuita": flecha deslizante
----------------------------------------------- */
.gs-btn-arrow .gs-arrow-icon {
    display: inline-block;
    transition: transform 0.25s ease;
}
.gs-btn-arrow:hover .gs-arrow-icon {
    transform: translateX(5px);
}

/* -----------------------------------------------
   SLIDER HOME: hover en botones CTA
----------------------------------------------- */
.swiper-slide .btn-white {
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.swiper-slide .btn-white:hover {
    background-color: var(--base-color) !important;
    border-color: var(--base-color) !important;
    color: #fff !important;
    box-shadow: 0 10px 28px rgba(36, 78, 70, 0.4) !important;
}
.swiper-slide .btn span i {
    transition: transform 0.22s ease;
    display: inline-block;
}
.swiper-slide .btn:hover span i {
    transform: translateX(5px);
}

/* -----------------------------------------------
   SERVICIOS (páginas de área): tarjetas con muesca
   Diseño Figma "Web-assets" — 3 verdes rotando
----------------------------------------------- */
.gs-svc {
    --svc-color: var(--base-color);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.28s ease;
}
.gs-svc:hover {
    transform: translateY(-4px);
}
.gs-svc--dark  { --svc-color: #244e46; }
.gs-svc--olive { --svc-color: #6f7741; }
.gs-svc--sage  { --svc-color: #879a70; }
.gs-svc-num {
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--svc-color);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--alt-font);
    font-size: 1.2rem;
    font-weight: 500;
}
.gs-svc-head {
    margin-left: 93px;
    min-height: 96px;
    background: var(--svc-color);
    border-radius: 24px 24px 0 0;
    display: flex;
    align-items: center;
    padding: 18px 26px;
    position: relative;
}
/* fillet cóncavo entre la pestaña del título y el cuerpo */
.gs-svc-head::before {
    content: '';
    position: absolute;
    left: -20px;
    bottom: 0;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 0 0, transparent 19.5px, var(--svc-color) 20px);
}
.gs-svc-title {
    color: #ffffff;
    font-family: var(--alt-font);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0;
}
.gs-svc-body {
    background: var(--svc-color);
    border-radius: 24px 0 24px 24px;
    padding: 26px 28px 30px;
    color: #ffffff;
    flex-grow: 1;
    font-size: 0.93rem;
    line-height: 1.7;
}
.gs-svc-body p {
    margin-bottom: 0;
    color: #ffffff;
}
.gs-svc-body strong {
    color: #ffffff;
    font-weight: 700;
}

/* -----------------------------------------------
   ROTATE BOXES (áreas): flip más suave
----------------------------------------------- */
.rotate-box {
    transition-duration: 0.75s !important;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.rotate-box .front-side,
.rotate-box .back-side {
    transition-duration: 0.75s !important;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
}
/* Botón del reverso: blanco con texto verde */
.back-side .btn-white {
    color: var(--base-color) !important;
}

/* -----------------------------------------------
   MAPA CONTACTO: estética corporativa (gris + verde)
----------------------------------------------- */
.map-corporate-wrapper {
    position: relative;
    overflow: hidden;
}
.map-corporate-wrapper iframe {
    filter: grayscale(0.85) contrast(1.05) brightness(0.97);
    display: block;
}
.map-corporate-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(36, 78, 70, 0.08);
    pointer-events: none;
}

/* -----------------------------------------------
   FOOTER: texto con --solitude-blue
----------------------------------------------- */
.footer-dark {
    color: #f0f4fd !important;
}
.footer-dark p,
.footer-dark a {
    color: #f0f4fd !important;
}
.footer-dark a:hover {
    color: #ffffff !important;
}
.footer-dark .footer-navbar .nav-link {
    color: #f0f4fd !important;
}

/* -----------------------------------------------
   FOOTER: botón CTA con texto en color corporativo
----------------------------------------------- */
footer .footer-top .btn-white,
footer .footer-top .btn-white:not(:hover) {
    color: var(--base-color) !important;
}

/* -----------------------------------------------
   RESEÑAS: estrellas en color corporativo
----------------------------------------------- */
.review-star-icon i {
    color: var(--base-color);
}

/* -----------------------------------------------
   FOOTER: logo a tamaño proporcional
   (el tema lo limita a 40px de alto y lo deforma)
----------------------------------------------- */
footer .footer-logo img {
    max-height: none;
    height: auto;
}

/* ===============================================
   RESTYLING EDITORIAL 2026
   Inspiración: minimal editorial (kuemmerlein.de)
   manteniendo el verde corporativo #244e46
================================================ */

/* --- 1. Tipografía: titulares con más presencia (Plus Jakarta Sans) --- */
h1.alt-font, h2.alt-font, h3.alt-font {
    text-wrap: balance;
    letter-spacing: -0.02em;
    line-height: 1.12;
}
.alt-font.font-style-italic,
.alt-font .font-style-italic {
    letter-spacing: -0.01em;
}

/* --- 2. Superficies: neutros cálidos, una sola familia de gris --- */
:root {
    --very-light-gray: #f1efe9;        /* tarjetas: piedra cálida */
    --extra-medium-gray: #e5e2d9;      /* bordes cálidos */
    --light-medium-gray: #eceae3;
}
body {
    background-color: #faf9f6;         /* blanco roto cálido en vez de blanco puro */
}
html {
    scroll-behavior: smooth;
}
::selection {
    background-color: var(--base-color);
    color: #ffffff;
}

/* --- 3. Radios generosos y coherentes en todo el sitio ---
   (el tema declara estas clases con !important) */
.border-radius-6px,
.border-radius-10px {
    border-radius: 34px !important;
}
/* el vídeo de la home comparte el mismo radio */
.html-video {
    border-radius: 34px;
    overflow: hidden;
}
/* mapa de contacto (Leaflet): recorte redondeado */
#contact-map {
    border-radius: 34px;
    overflow: hidden;
}

/* --- 4. Botones: estados vivos, sombras tintadas de verde --- */
.btn {
    transition: transform 0.22s ease, box-shadow 0.22s ease,
                background-color 0.22s ease, border-color 0.22s ease,
                color 0.22s ease;
}
.btn:hover {
    transform: translateY(-2px);
}
.btn:active {
    transform: translateY(0) scale(0.98);
}
.btn.btn-box-shadow,
.btn.btn-box-shadow:hover {
    box-shadow: 0 12px 28px rgba(36, 78, 70, 0.22) !important;
}
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--base-color);
    outline-offset: 3px;
}

/* --- 5. Bloques destacados (¿Por qué elegirnos?): plano cálido con borde fino --- */
.bg-very-light-gray.border-radius-6px {
    border: 1px solid var(--extra-medium-gray);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.bg-very-light-gray.border-radius-6px:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(36, 78, 70, 0.10);
    border-color: rgba(36, 78, 70, 0.22);
}

/* --- 5b. Tarjetas de reseñas (home): verde salvia, sin borde --- */
.gs-review-card {
    background-color: #879a70;
    border: none;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.gs-review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(36, 78, 70, 0.18);
}
/* sobre el verde salvia el texto va en blanco, como en las tarjetas de servicio */
.gs-review-card p,
.gs-review-card .text-medium-gray,
.gs-review-card .text-dark-gray {
    color: #ffffff !important;
}
.gs-review-card .review-star-icon i,
.gs-review-card .fa-google {
    color: #ffffff;
    opacity: 0.9;
}

/* --- 8. Cabecera de página: título centrado sin imagen --- */
.gs-page-title {
    padding-top: 170px;
    padding-bottom: 40px;
}
.gs-page-title h1 {
    font-size: 1.4rem;
    line-height: 1.3;
    text-wrap: balance;
}
@media (max-width: 991px) {
    .gs-page-title {
        padding-top: 130px;
        padding-bottom: 20px;
    }
}
@media (max-width: 767px) {
    .gs-page-title {
        padding-top: 90px;
        padding-bottom: 14px;
    }
}
/* La sección que sigue a la cabecera va pegada a ella */
.gs-page-title + section {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

/* --- 8b. Grid de servicios: más aire entre tarjetas --- */
.gs-svc-grid {
    --bs-gutter-x: 2.5rem;
    --bs-gutter-y: 3.5rem;
}

/* --- 8c. Cómo trabajamos: tarjetas de proceso y de valores --- */
.gs-card-title {
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.35;
}
.gs-step-card p,
.gs-value-card p {
    font-size: 0.93rem;
    line-height: 22px;
}
/* tarjetas de "Nuestros principios": icono arriba y centrado */
.gs-value-card .feature-box-icon {
    margin-right: 0 !important;
}
/* etiqueta flotante sobre la foto: verde oliva en vez de gris oscuro */
figcaption.bg-dark-gray {
    background-color: #6f7741 !important;
}

/* --- 9. Intro de página: escala tipográfica más compacta --- */
.gs-page-intro > h3 {
    font-size: 2rem;
    line-height: 1.25;
    margin-bottom: 15px;
}
.gs-page-intro > h5 {
    font-size: 1.3rem;
    line-height: 1.35;
    margin-bottom: 15px;
}
.gs-page-intro > p {
    margin-bottom: 10px;
    line-height: 24px;
}

/* (los estilos de los antiguos acordeones de servicios se
   sustituyeron por las tarjetas .gs-svc definidas más arriba) */

/* -----------------------------------------------
   DROPDOWN MÓVIL: submenú de Áreas de práctica
   El JS del template añade/quita .show en el
   .dropdown-menu. Sólo necesitamos forzar que
   cuando .show esté presente se vea correctamente.
----------------------------------------------- */
@media (max-width: 991.98px) {
    /* el collapse necesita scroll si el submenú lo alarga */
    .navbar-collapse.show {
        overflow-y: auto !important;
    }
    /* oculto por defecto */
    .navbar-collapse .dropdown-menu {
        display: none;
        position: static !important;
        float: none !important;
        box-shadow: none !important;
        border: none !important;
        background-color: #f5f3ee !important;
        min-width: 0 !important;
        padding: 6px 0 10px 20px !important;
        margin-top: 4px !important;
        border-radius: 12px !important;
    }
    /* visible cuando el JS añade .show */
    .navbar-collapse .dropdown-menu.show {
        display: block !important;
    }
    /* cada enlace del submenú */
    .navbar-collapse .dropdown-menu li a {
        color: #1a1a1a !important;
        padding: 8px 12px 8px 0 !important;
        font-size: 13px !important;
        text-transform: uppercase;
        display: flex !important;
        align-items: center;
        gap: 8px;
        background: transparent !important;
    }
    .navbar-collapse .dropdown-menu li a:hover {
        color: var(--base-color) !important;
        background: transparent !important;
    }
    .navbar-collapse .dropdown-menu li a i {
        color: var(--base-color) !important;
        width: 18px;
        text-align: center;
        flex-shrink: 0;
    }
    /* sin subrayado animado en los items del dropdown */
    .navbar-collapse .dropdown-menu li a::after {
        display: none !important;
    }
}
