/* ============================================
   RESET Y BASE (igual que antes)
   ============================================ */

   /* ============================================
   FUENTE AUTOALOJADA (Inter Variable)
   ============================================ */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/InterVariable.woff2') format('woff2');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}
img {
    max-width: 100%;
    display: block;
}
ul {
    list-style: none;
}

/* ============================================
   CONTENEDOR
   ============================================ */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   CABECERA (igual que antes)
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding: 0.7rem 0;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-img {
    width: 0;
    height: 0;
    min-width: 0;
    min-height: 0;
    max-width: 0;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: none;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}
picture {
    display: inline-block;
    width: 0;
    height: 0;
    overflow: hidden;
    flex-shrink: 0;
}
.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #1a1a1a;
}
.logo-text span {
    font-weight: 300;
    color: #6b7a7f;
}
.nav {
    display: flex;
    align-items: center;
    flex-shrink: 1;
    overflow: visible;
    margin-left: 2.5rem;
}
.nav-links {
    display: flex;
    gap: 1.8rem;
    font-weight: 500;
    font-size: 0.95rem;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}
.nav-links a {
    padding: 0.2rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.25s ease, color 0.25s ease;
    color: #2d3a3f;
    line-height: 1.4;
}
.nav-links a:hover {
    border-bottom-color: #000;
    color: #000;
}
.nav-links a.activo {
    border-bottom-color: #000;
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
    margin-left: 1.5rem;
}
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    flex-shrink: 0;
}
.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: #000;
    transition: 0.2s;
}

/* ============================================
   RESPONSIVE MÓVIL (igual)
   ============================================ */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    .header-right {
        gap: 0.6rem;
        margin-left: 0;
    }
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 1.5rem;
        border-bottom: 1px solid #eee;
        box-shadow: 0 12px 24px rgba(0,0,0,0.04);
        z-index: 200;
        margin-left: 0;
    }
    .nav.open {
        display: block;
    }
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
        font-size: 1rem;
        flex-wrap: wrap;
        white-space: normal;
    }
}

/* ============================================
   BOTONES (genéricos)
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.9rem 2.8rem;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 60px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    font-family: inherit;
    line-height: 1.3;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.btn-primary {
    background: #000000;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.btn-primary:hover {
    background: #222222;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}
.btn-outline {
    background: transparent;
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
}
.btn-outline:hover {
    background: #1a1a1a;
    color: #ffffff;
    transform: translateY(-2px);
}
.btn-small {
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    background: #000;
    color: #fff;
    border-radius: 60px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.btn-small:hover {
    background: #222;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

/* ============================================
   PÁGINAS LEGALES
   ============================================ */
.section {
    padding: 5rem 0;
    border-bottom: 1px solid #f0f0f0;
}
.section:last-of-type {
    border-bottom: none;
}
.section-title {
    font-size: 2.4rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 1rem;
}
.section-title strong {
    font-weight: 600;
}
.legal-section {
    padding: 4rem 0 6rem;
}
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    color: #2d3a3f;
    line-height: 1.8;
}
.legal-content h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #1a1a1a;
}
.legal-content p {
    margin-bottom: 1.2rem;
}
.legal-content ul {
    margin: 1rem 0 1.5rem 1.5rem;
    list-style: disc;
}
.legal-content ul li {
    margin-bottom: 0.5rem;
}
.legal-content a {
    color: #000;
    text-decoration: underline;
}
.legal-content a:hover {
    color: #6b7a7f;
}
.legal-content em {
    color: #6b7a7f;
    font-size: 0.9rem;
}

/* ============================================
   FOOTER (igual que antes)
   ============================================ */
.footer {
    background: #fafcfb;
    padding: 3rem 0 1.5rem;
    border-top: 1px solid #eaeaea;
    margin-top: 1rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eaeaea;
    justify-items: center;
    text-align: center;
}
.footer-col-center {
    max-width: 700px;
    width: 100%;
}
.logo-footer {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    margin-bottom: 0.8rem;
    justify-content: center;
}
.logo-footer-img {
    width: 0;
    height: 0;
    min-width: 0;
    min-height: 0;
    max-width: 0;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: none;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}
.logo-footer-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
}
.logo-footer-text span {
    font-weight: 300;
    color: #6b7a7f;
}
.footer-desc {
    color: #4a5a60;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 0.5rem;
}
.footer-legal {
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid #eaeaea;
    font-size: 0.85rem;
    color: #6b7a7f;
}
.footer-legal a {
    color: #6b7a7f;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-legal a:hover {
    color: #1a1a1a;
    text-decoration: underline;
}
.footer-legal .separator {
    margin: 0 0.6rem;
    color: #d0d8d5;
}
.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    font-size: 0.85rem;
    color: #6b7a7f;
}
#configurar-cookies {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    z-index: 9999;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
}
.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
    flex: 1;
}
.cookie-banner a {
    color: #a0d0c0;
    text-decoration: underline;
}
.cookie-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}
.cookie-banner .btn-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid #fff;
}
.cookie-banner .btn-outline:hover {
    background: #fff;
    color: #1a1a1a;
}
@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    .cookie-buttons {
        justify-content: center;
    }
}