/* ============================================
   FUENTES AUTOHOSPEDADAS (subsets "latin" de Google Fonts)
   y subconjunto de Font Awesome 6.4.0 con solo los glifos usados aqui.
   Anadir un icono nuevo = anadir su @font-face/.fa-* abajo y su glifo
   en webfonts/fa-solid-subset.woff2.
   ============================================ */
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('webfonts/inter-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('webfonts/inter-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('webfonts/inter-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('webfonts/inter-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:700;font-display:swap;src:url('webfonts/playfair-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:900;font-display:swap;src:url('webfonts/playfair-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* Font Awesome 6.4.0 subconjunto autohospedado - solo los iconos usados en este sitio */
@font-face{font-family:"LGV Icons Solid";font-style:normal;font-weight:900;font-display:swap;src:url("webfonts/fa-solid-subset.woff2") format("woff2")}
@font-face{font-family:"LGV Icons Brands";font-style:normal;font-weight:400;font-display:swap;src:url("webfonts/fa-brands-subset.woff2") format("woff2")}
.fas,.fa-solid{font-family:"LGV Icons Solid";font-weight:900;font-style:normal}
.fab,.fa-brands{font-family:"LGV Icons Brands";font-weight:400;font-style:normal}
[class^="fa-"]::before,[class*=" fa-"]::before{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:auto}
.fa-arrow-left::before{content:"\f060"}
.fa-arrow-right::before{content:"\f061"}
.fa-arrow-up::before{content:"\f062"}
.fa-award::before{content:"\f559"}
.fa-balance-scale::before{content:"\f24e"}
.fa-bolt::before{content:"\f0e7"}
.fa-briefcase::before{content:"\f0b1"}
.fa-building::before{content:"\f1ad"}
.fa-chart-line::before{content:"\f201"}
.fa-check-circle::before{content:"\f058"}
.fa-clipboard-check::before{content:"\f46c"}
.fa-clock::before{content:"\f017"}
.fa-code::before{content:"\f121"}
.fa-comments::before{content:"\f086"}
.fa-envelope::before{content:"\f0e0"}
.fa-eye::before{content:"\f06e"}
.fa-file-contract::before{content:"\f56c"}
.fa-handshake::before{content:"\f2b5"}
.fa-heart::before{content:"\f004"}
.fa-map-marker-alt::before{content:"\f3c5"}
.fa-paper-plane::before{content:"\f1d8"}
.fa-phone::before{content:"\f095"}
.fa-shield-alt::before{content:"\f3ed"}
.fa-spinner::before{content:"\f110"}
.fa-star::before{content:"\f005"}
.fa-users::before{content:"\f0c0"}
.fa-facebook-f::before{content:"\f39e"}
.fa-instagram::before{content:"\f16d"}
.fa-tiktok::before{content:"\e07b"}
.fa-whatsapp::before{content:"\f232"}
.fa-spin{animation:fa-spin 2s infinite linear}
@keyframes fa-spin{0%{transform:rotate(0deg)}100%{transform:rotate(359deg)}}

/* ============================================
   LEGAL CONSULTORES S.A.S - Stylesheet
   Paleta: Azul + Blanco + Gris
   Fuentes: Apple System Fonts (SF Pro)
   ============================================ */

/* ===== VARIABLES ===== */
:root {
    /* ===== AZULES ===== */
    --color-primary: #1B2A4A;
    --color-primary-dark: #0F1B33;
    --color-primary-light: #2C4170;
    --color-primary-lighter: #4A6699;
    --color-primary-soft: #A8B8D4;
    --color-primary-pale: #E5EAF2;

    /* ===== ACENTO ===== */
    --color-accent: #4A6699;
    --color-accent-light: #A8B8D4;

    /* ===== TEXTOS ===== */
    --color-text: #1F2937;
    --color-text-light: #6B7280;
    --color-text-lighter: #9CA3AF;

    /* ===== FONDOS ===== */
    --color-bg: #FFFFFF;
    --color-bg-alt: #F5F7FA;
    --color-bg-alt2: #EEF2F7;
    --color-border: #E5E7EB;
    --color-white: #FFFFFF;

    /* ===== SOMBRAS ===== */
    --shadow-sm: 0 2px 8px rgba(27, 42, 74, 0.06);
    --shadow-md: 0 8px 24px rgba(27, 42, 74, 0.10);
    --shadow-lg: 0 20px 50px rgba(27, 42, 74, 0.18);

    /* ===== FUENTES APPLE SYSTEM ===== */
    --font-heading: 'Playfair Display', 'New York', Georgia, 'Times New Roman', serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', 'Inter', sans-serif;
    --font-ui: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', 'Inter', sans-serif;

    /* ===== RADIOS ===== */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* ===== TRANSICIONES ===== */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --container: 1200px;
}

/* ===== RESET ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
    letter-spacing: -0.01em;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== UTILIDADES ===== */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 110px 0;
    position: relative;
    overflow: hidden;
}

.section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 70px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.section__header.visible {
    opacity: 1;
    transform: translateY(0);
}

.section__tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 16px;
    position: relative;
    padding: 0 22px;
}

.section__tag::before,
.section__tag::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 28px;
    height: 1.5px;
    background: var(--color-primary);
}

.section__tag::before { left: -20px; }
.section__tag::after { right: -20px; }

.section__tag--light { color: var(--color-white); }
.section__tag--light::before,
.section__tag--light::after { background: var(--color-white); }

.section__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section__title--light { color: var(--color-white); }

.section__subtitle {
    font-size: 1.05rem;
    color: var(--color-text-light);
    line-height: 1.65;
    letter-spacing: -0.005em;
}

.section__subtitle--light { color: rgba(255, 255, 255, 0.85); }

.highlight { color: var(--color-white); }

/* ===== BOTONES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 32px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-ui);
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
    text-align: center;
    letter-spacing: -0.01em;
}

.btn--primary {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 6px 18px rgba(27, 42, 74, 0.22);
}

.btn--primary:hover {
    background: var(--color-primary-light);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(27, 42, 74, 0.32);
}

.btn--outline {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn--outline:hover {
    background: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
    transform: translateY(-2px);
}

.btn--block { width: 100%; }

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
    width: 100%;
}

.header--scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 8px 24px rgba(27, 42, 74, 0.06);
    padding: 14px 0;
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* ===== LOGO ===== */
.logo {
    display: flex;
    align-items: center;
    z-index: 10;
    flex-shrink: 0;
    transition: var(--transition);
}

.logo__image {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    /* Ajuste para que el logo se vea bien sobre el hero oscuro */
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

/* En el header scrolled (fondo blanco) */
.header--scrolled .logo__image {
    height: 50px;
    filter: none;
}

/* Logo en el footer (fondo oscuro) */
.logo--light .logo__image {
    height: 70px;
    /* Si usas el logo con fondo blanco, descomenta: */
    /* background: #FFFFFF; */
    /* padding: 12px 16px; */
    /* border-radius: 12px; */
}

/* Responsive */
@media (max-width: 768px) {
    .logo__image { height: 50px; }
    .header--scrolled .logo__image { height: 44px; }
    .logo--light .logo__image { height: 60px; }
}

@media (max-width: 480px) {
    .logo__image { height: 42px; }
    .header--scrolled .logo__image { height: 38px; }
    .logo--light .logo__image { height: 54px; }
}

/* ===== NAVEGACIÓN ===== */
.nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav__list {
    display: flex;
    gap: 32px;
}

.nav__link {
    font-size: 15px;
    font-weight: 500;
    font-family: var(--font-ui);
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    padding: 4px 0;
    letter-spacing: -0.01em;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-white);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 1px;
}

.nav__link:hover::after { width: 100%; }
.nav__link:hover { color: var(--color-white); }

.header--scrolled .nav__link { color: var(--color-primary); }
.header--scrolled .nav__link::after { background: var(--color-primary); }
.header--scrolled .nav__link:hover { color: var(--color-primary-light); }

.nav__cta {
    padding: 11px 22px;
    font-size: 14px;
    background: var(--color-white);
    color: var(--color-primary);
    font-weight: 600;
}

.nav__cta:hover {
    background: var(--color-primary-pale);
    color: var(--color-primary);
    transform: translateY(-1px);
}

.header--scrolled .nav__cta {
    background: var(--color-primary);
    color: var(--color-white);
}

.header--scrolled .nav__cta:hover {
    background: var(--color-primary-light);
    color: var(--color-white);
}

/* Toggle móvil */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    z-index: 1010;
    position: relative;
}

.nav-toggle span {
    display: block;
    height: 2.5px;
    width: 100%;
    background: var(--color-white);
    border-radius: 3px;
    transition: var(--transition);
}

.header--scrolled .nav-toggle span { background: var(--color-primary); }
.nav-toggle--active span { background: var(--color-primary) !important; }
.nav-toggle--active span:nth-child(1) { transform: translateY(8.75px) rotate(45deg); }
.nav-toggle--active span:nth-child(2) { opacity: 0; }
.nav-toggle--active span:nth-child(3) { transform: translateY(-8.75px) rotate(-45deg); }

/* Overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 27, 51, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
}

.nav-overlay--visible {
    opacity: 1;
    visibility: visible;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #0F1B33 url('img/hero-m.webp') center 30% / cover no-repeat;
    padding: 140px 0 80px;
    overflow: hidden;
    width: 100%;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 27, 51, 0.95) 0%, rgba(27, 42, 74, 0.88) 50%, rgba(27, 42, 74, 0.78) 100%);
}

.hero__container {
    position: relative;
    z-index: 2;
}

.hero__content {
    max-width: 800px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50px;
    color: var(--color-white);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-ui);
    margin-bottom: 28px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.3rem, 5.5vw, 4rem);
    font-weight: 900;
    color: var(--color-white);
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.025em;
    opacity: 0;
    animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}

.hero__subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.65;
    margin-bottom: 40px;
    max-width: 620px;
    opacity: 0;
    animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.hero__buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
    opacity: 0;
    animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.65s forwards;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 640px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.stat__number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--color-white);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.stat__label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.3px;
    font-family: var(--font-ui);
}

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

/* ===== ABOUT ===== */
.about { background: var(--color-bg); }

.about__grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 70px;
    align-items: center;
}

.about__content {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.about__content.visible {
    opacity: 1;
    transform: translateX(0);
}

.about__text {
    color: var(--color-text-light);
    margin-bottom: 20px;
    font-size: 1.02rem;
    line-height: 1.75;
}

.about__text strong { color: var(--color-primary); font-weight: 600; }

.about__features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 30px 0 36px;
}

.about__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-primary);
    font-family: var(--font-ui);
}

.about__features i { color: var(--color-primary-lighter); font-size: 18px; }

.about__image {
    position: relative;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.about__image.visible {
    opacity: 1;
    transform: translateX(0);
}

.about__image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about__image-wrapper img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.about__image-wrapper:hover img { transform: scale(1.04); }

.about__badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 22px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.about__badge i {
    font-size: 30px;
    color: var(--color-primary);
}

.about__badge strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--color-primary);
    line-height: 1;
}

.about__badge span {
    font-size: 13px;
    color: var(--color-text-light);
    font-family: var(--font-ui);
}

/* ===== SERVICIOS ===== */
.services { background: var(--color-bg-alt); }

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 28px;
}

.service-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(27, 42, 74, 0.06);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    display: flex;
    flex-direction: column;
}

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

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(27, 42, 74, 0.14);
}

.service-card__image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card__image img {
    transform: scale(1.08);
}

.service-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(27, 42, 74, 0.15) 0%, rgba(27, 42, 74, 0.55) 100%);
}

.service-card__icon {
    position: absolute;
    bottom: -24px;
    left: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 14px;
    font-size: 22px;
    z-index: 2;
    box-shadow: 0 8px 20px rgba(27, 42, 74, 0.3);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease;
}

.service-card:hover .service-card__icon {
    background: var(--color-primary-light);
    transform: rotate(-6deg) scale(1.05);
}

.service-card__body {
    padding: 44px 28px 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card__title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.service-card__text {
    color: var(--color-text-light);
    font-size: 15px;
    line-height: 1.65;
}

/* ===== VALORES ===== */
.values {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.values::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.values::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.values .container { position: relative; z-index: 2; }

.values__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 22px;
}

.value-card {
    text-align: center;
    padding: 40px 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: background 0.4s ease, border-color 0.4s ease,
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(30px);
}

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

.value-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-6px);
}

.value-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-white);
    border-radius: 50%;
    font-size: 24px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.value-card:hover .value-card__icon {
    background: var(--color-white);
    color: var(--color-primary);
    transform: scale(1.08) rotate(6deg);
}

.value-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-white);
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.value-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.6;
}

/* ===== ENCUESTA ===== */
.survey { background: var(--color-bg); }

.survey__box {
    background: linear-gradient(135deg, #F5F7FA 0%, #E5EAF2 100%);
    border: 1.5px dashed var(--color-primary-lighter);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    transition: var(--transition);
}

.survey__box:hover {
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(27, 42, 74, 0.08);
}

.survey__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    font-size: 30px;
    margin-bottom: 24px;
    box-shadow: 0 12px 28px rgba(27, 42, 74, 0.28);
}

.survey__title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--color-primary);
    margin-bottom: 14px;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.survey__text {
    color: var(--color-text-light);
    font-size: 1.05rem;
    margin-bottom: 32px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
}

/* ===== CONTACTO ===== */
.contact { background: var(--color-bg-alt); }

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 22px;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact__info.visible {
    opacity: 1;
    transform: translateX(0);
}

.contact__item {
    display: flex;
    gap: 18px;
    padding: 22px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 12px rgba(27, 42, 74, 0.05);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.contact__item:hover {
    transform: translateX(6px);
    box-shadow: 0 12px 28px rgba(27, 42, 74, 0.1);
}

.contact__item-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: var(--color-white);
    border-radius: 12px;
    font-size: 20px;
}

.contact__item h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--color-primary);
    margin-bottom: 6px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.contact__item a,
.contact__item p {
    color: var(--color-text-light);
    font-size: 14.5px;
    line-height: 1.65;
    display: block;
    word-break: break-word;
    font-family: var(--font-ui);
}

.contact__item a:hover { color: var(--color-primary); }

.contact__social {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.contact__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    font-size: 17px;
    transition: var(--transition);
}

.contact__social a:hover {
    background: var(--color-primary-light);
    color: var(--color-white);
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(27, 42, 74, 0.25);
}

/* Formulario */
.contact__form {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(27, 42, 74, 0.08);
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact__form.visible {
    opacity: 1;
    transform: translateX(0);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 8px;
    font-family: var(--font-ui);
    letter-spacing: -0.005em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-ui);
    font-size: 15px;
    color: var(--color-text);
    background: var(--color-bg-alt);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    outline: none;
    letter-spacing: -0.005em;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background: var(--color-white);
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 4px rgba(44, 65, 112, 0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { cursor: pointer; }

/* Checkbox de privacidad */
.form-group--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-group--checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.form-group--checkbox label {
    font-size: 13.5px;
    color: var(--color-text-light);
    font-weight: 400;
    margin: 0;
    cursor: pointer;
    line-height: 1.5;
}

.form-group--checkbox label a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
}

.form-note {
    font-size: 13px;
    color: var(--color-text-light);
    text-align: center;
    margin-top: 12px;
    font-family: var(--font-ui);
}

/* ===== MENSAJES DEL FORMULARIO ===== */
.form-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    font-size: 14.5px;
    line-height: 1.5;
    animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-message i { font-size: 20px; flex-shrink: 0; margin-top: 1px; }

.form-message--success {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #065F46;
}
.form-message--success i { color: #10B981; }

.form-message--error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
}
.form-message--error i { color: #EF4444; }

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

/* ===== FOOTER ===== */
.footer {
    background: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 70px 0 0;
    overflow: hidden;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo--light .logo__title,
.logo--light .logo__subtitle { color: var(--color-white); }
.logo--light .logo__divider { background: var(--color-white); }
.logo--light .logo__icon {
    background: var(--color-white);
    color: var(--color-primary);
}

.footer__text {
    font-size: 14.5px;
    line-height: 1.7;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.footer__col h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--color-white);
    margin-bottom: 22px;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
    letter-spacing: -0.01em;
}

.footer__col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--color-white);
    opacity: 0.4;
    border-radius: 1px;
}

.footer__links,
.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__links a,
.footer__contact li {
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    word-break: break-word;
    font-family: var(--font-ui);
}

.footer__links a:hover {
    color: var(--color-white);
    padding-left: 6px;
}

.footer__contact li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__contact i {
    color: var(--color-primary-soft);
    width: 16px;
    font-size: 14px;
    flex-shrink: 0;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 24px 0;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.55);
    flex-wrap: wrap;
    font-family: var(--font-ui);
}

.footer__legal {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer__legal a { color: rgba(255, 255, 255, 0.55); }
.footer__legal a:hover { color: var(--color-white); }

/* ===== CRÉDITO DESARROLLADOR ===== */
.footer__credit {
    text-align: center;
    padding: 20px 0 28px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-ui);
}

.footer__credit p {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer__credit-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-white);
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.footer__credit-link:hover {
    background: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.2);
}

.footer__credit-link i { font-size: 12px; }

/* ===== WHATSAPP FLOTANTE ===== */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--color-white);
    border-radius: 50%;
    font-size: 30px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    animation: pulse 2.5s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 32px;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    font-size: 16px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.back-to-top--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-primary-light);
    color: var(--color-white);
    transform: translateY(-4px);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .about__grid { grid-template-columns: 1fr; gap: 50px; }
    .about__image-wrapper img { height: 420px; }
    .contact__grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

@media (max-width: 768px) {
    .section { padding: 80px 0; }
    .section__header { margin-bottom: 50px; }

    /* Nav móvil */
    .nav-toggle { display: flex; }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 85%;
        max-width: 340px;
        height: 100vh;
        height: 100dvh;
        background: var(--color-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        padding: 80px 30px;
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
    }

    .nav--open { transform: translateX(0); }

    .nav__list {
        flex-direction: column;
        gap: 22px;
        text-align: center;
    }

    .nav__link {
        color: var(--color-primary) !important;
        font-size: 17px;
        font-weight: 600;
    }

    .nav__link::after { display: none; }
    .nav__cta { width: 100%; background: var(--color-primary); color: var(--color-white); }
    .header--scrolled .nav__cta { background: var(--color-primary); color: var(--color-white); }

    /* Hero */
    .hero { padding: 120px 0 60px; min-height: auto; background-position: center 25%; }
    .hero__buttons { flex-direction: column; align-items: stretch; }
    .hero__buttons .btn { width: 100%; }
    .hero__stats {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
        padding-top: 30px;
    }

    /* About */
    .about__features { grid-template-columns: 1fr; }
    .about__image-wrapper img { height: 320px; }
    .about__badge { padding: 12px 16px; bottom: 16px; left: 16px; }
    .about__badge i { font-size: 24px; }
    .about__badge strong { font-size: 18px; }

    /* Servicios */
    .services__grid { grid-template-columns: 1fr; gap: 24px; }
    .service-card__image { height: 160px; }

    /* Footer */
    .footer__grid { grid-template-columns: 1fr; }
    .footer__bottom {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }
    .footer__legal { justify-content: center; }

    /* Formulario */
    .contact__form { padding: 28px 22px; }
    .contact__item { padding: 18px; }

    /* Botones flotantes */
    .whatsapp-float {
        width: 54px;
        height: 54px;
        font-size: 26px;
        bottom: 20px;
        right: 20px;
    }

    .back-to-top {
        bottom: 88px;
        right: 24px;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .hero__title { font-size: 2rem; }
    .section__title { font-size: 1.7rem; }

    .survey__box { padding: 40px 24px; }
    .survey__icon { width: 64px; height: 64px; font-size: 26px; }

    .stat__number { font-size: 1.8rem; }

    .logo__icon { width: 42px; height: 42px; font-size: 18px; }
    .logo__title { font-size: 24px; letter-spacing: 1px; }
    .logo__subtitle { font-size: 8px; letter-spacing: 1.8px; }
    .logo__divider { height: 1.5px; margin: 4px 0; }

    .service-card { padding: 0; }
    .service-card__image { height: 150px; }
    .service-card__body { padding: 40px 22px 28px; }
    .service-card__icon { width: 50px; height: 50px; font-size: 20px; }

    .value-card { padding: 32px 20px; }

    .contact__item-icon { width: 44px; height: 44px; font-size: 17px; }

    .btn { padding: 13px 24px; font-size: 14px; }
}

@media (max-width: 360px) {
    .container { padding: 0 14px; }
    .hero__title { font-size: 1.75rem; }
    .section__title { font-size: 1.5rem; }
    .nav { width: 92%; }
    .logo__title { font-size: 22px; }
    .logo__subtitle { font-size: 7px; letter-spacing: 1.5px; }
}

/* ===== ACCESIBILIDAD ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .hero__badge,
    .hero__title,
    .hero__subtitle,
    .hero__buttons,
    .hero__stats {
        opacity: 1 !important;
        transform: none !important;
    }
    .section__header,
    .about__content,
    .about__image,
    .service-card,
    .value-card,
    .contact__info,
    .contact__form {
        opacity: 1 !important;
        transform: none !important;
    }
}
/* ===== SERVICIOS ===== */
.services { background: var(--color-bg-alt); }

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 28px;
}

.service-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 12px rgba(27, 42, 74, 0.06);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    display: flex;
    flex-direction: column;
    padding-top: 0;
}

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

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(27, 42, 74, 0.14);
}

/* Imagen con carrusel */
.service-card__image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.service-card__slider {
    position: absolute;
    inset: 0;
}

.service-card__slider img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.service-card__slider img.active {
    opacity: 1;
    z-index: 2;
}

.service-card:hover .service-card__slider img.active {
    transform: scale(1.06);
}

/* Overlay degradado sutil */
.service-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(27, 42, 74, 0.1) 0%, rgba(27, 42, 74, 0.45) 100%);
    z-index: 3;
    pointer-events: none;
}

/* Icono flotante — AHORA SOBRE EL BORDE, sin recortarse */
.service-card__icon {
    position: absolute;
    top: 180px;                        /* Alineado al borde inferior de la imagen */
    left: 24px;
    transform: translateY(-50%);       /* Centrado sobre el borde */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 14px;
    font-size: 22px;
    z-index: 10;                       /* ✅ Encima de todo */
    box-shadow: 0 8px 20px rgba(27, 42, 74, 0.35);
    border: 3px solid var(--color-white);   /* ✅ Borde blanco para despegarlo visualmente */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease;
}

.service-card:hover .service-card__icon {
    background: var(--color-primary-light);
    transform: translateY(-50%) rotate(-6deg) scale(1.06);
}

/* Cuerpo */
.service-card__body {
    padding: 44px 28px 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card__title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.service-card__text {
    color: var(--color-text-light);
    font-size: 15px;
    line-height: 1.65;
}

/* ===== RESPONSIVE SERVICIOS ===== */
@media (max-width: 768px) {
    .service-card__image { height: 160px; }
    .service-card__icon {
        top: 160px;
        width: 52px;
        height: 52px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .service-card__image { height: 150px; }
    .service-card__icon {
        top: 150px;
        width: 48px;
        height: 48px;
        font-size: 18px;
        left: 20px;
    }
    .service-card__body { padding: 38px 22px 26px; }
}
/* ============================================
   PÁGINAS LEGALES
   Política de Privacidad, Aviso Legal, Términos y Condiciones
   ============================================ */

.legal-page {
    padding-top: 90px;
    background: var(--color-bg);
}

.legal-content {
    padding: 60px 0 80px;
}

.legal-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--color-border);
}

.legal-header .section__tag {
    margin-bottom: 20px;
}

.legal-date {
    font-size: 14px;
    color: var(--color-text-light);
    margin-top: 16px;
    font-style: italic;
    font-family: var(--font-ui);
}

.legal-body {
    max-width: 800px;
    margin: 0 auto;
}

.legal-body h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin: 40px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
    letter-spacing: -0.01em;
}

.legal-body h2:first-child {
    margin-top: 0;
}

.legal-body p {
    color: var(--color-text);
    margin-bottom: 16px;
    line-height: 1.8;
    text-align: justify;
}

.legal-body ul {
    list-style: none;
    margin: 16px 0 24px 0;
    padding-left: 0;
}

.legal-body ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    color: var(--color-text);
    line-height: 1.7;
}

.legal-body ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--color-primary);
    font-size: 13px;
}

.legal-body a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    transition: var(--transition);
}

.legal-body a:hover {
    color: var(--color-primary-light);
}

.legal-body strong {
    color: var(--color-primary);
    font-weight: 600;
}

.legal-footer-note {
    margin-top: 40px;
    padding: 20px;
    background: var(--color-bg-alt);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-sm);
    font-style: italic;
    text-align: left !important;
    color: var(--color-text-light) !important;
}

.legal-actions {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--color-border);
}

/* ===== HEADER Y NAVEGACIÓN EN PÁGINAS LEGALES ===== */

/* El header siempre está scrolled en estas páginas */
.legal-page .header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 8px 24px rgba(27, 42, 74, 0.06);
    padding: 14px 0;
}

.legal-page .logo__title { color: var(--color-primary); }
.legal-page .logo__divider { background: var(--color-primary); }
.legal-page .logo__subtitle { color: var(--color-primary); }

.legal-page .logo__icon {
    background: var(--color-primary);
    color: var(--color-white);
}

.legal-page .nav__link {
    color: var(--color-primary);
}

.legal-page .nav__link::after {
    background: var(--color-primary);
}

.legal-page .nav__link:hover {
    color: var(--color-primary-light);
}

/* Responsive de páginas legales */
@media (max-width: 768px) {
    .legal-page {
        padding-top: 80px;
    }

    .legal-header {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .legal-content {
        padding: 40px 0 60px;
    }

    .legal-body h2 {
        font-size: 1.25rem;
        margin: 30px 0 14px;
    }

    .legal-body p {
        text-align: left;
        font-size: 15px;
    }

    .legal-body ul li {
        font-size: 15px;
    }

    .legal-footer-note {
        padding: 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .legal-page {
        padding-top: 75px;
    }

    .legal-body h2 {
        font-size: 1.15rem;
    }

    .legal-body p,
    .legal-body ul li {
        font-size: 14.5px;
        line-height: 1.7;
    }
}
/* ============================================
   LOGO SVG CON FONDO BLANCO
   ============================================ */

.logo__image {
    display: block;
    height: 100px;
    width: auto;
    object-fit: contain;
    background: #FFFFFF;
    padding: 8px 14px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

/* Header scrolled (fondo blanco) → sombra más sutil */
.header--scrolled .logo__image {
    height: 70px;
    padding: 6px 12px;
    box-shadow: 0 2px 10px rgba(27, 42, 74, 0.1);
}

/* Footer (fondo oscuro) → ligeramente más grande */
.logo--light .logo__image {
    height: 72px;
    padding: 10px 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Hover: sutil elevación */
.logo:hover .logo__image {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.header--scrolled .logo:hover .logo__image {
    box-shadow: 0 4px 14px rgba(27, 42, 74, 0.15);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .logo__image {
        height: 90px;
        padding: 6px 11px;
        border-radius: 10px;
    }
    .header--scrolled .logo__image {
        height: 70px;
        padding: 5px 10px;
    }
    .logo--light .logo__image {
        height: 60px;
        padding: 8px 13px;
    }
}

@media (max-width: 480px) {
    .logo__image {
        height: 80px;
        padding: 5px 9px;
        border-radius: 8px;
    }
    .header--scrolled .logo__image {
        height: 65px;
        padding: 4px 8px;
    }
    .logo--light .logo__image {
        height: 60px;
        padding: 7px 12px;
    }
}
/* Solo cuando el header está transparente (sobre el hero) */
.header:not(.header--scrolled) .logo__image {
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Hero: fondo en WebP autohospedado, una variante por viewport */
@media (min-width: 901px) {
    .hero {
        background-image: url('img/hero-d.webp');
    }
}