:root {
    --brand-blue: #00A9B5;
    --brand-blue-dark: #004B5D;
    --brand-orange: #FF7B00;
    --brand-orange-soft: #FFAA64;
    --bg-light: #F9FCFD;
    --bg-body: #002D37;
    --white: #ffffff;
    --text-primary: #0a2540;
    --text-secondary: #5c7073;
    --gradient-main: linear-gradient(135deg, var(--brand-orange-soft) 0%, var(--brand-orange) 100%);
    --shadow-soft: 0 4px 15px rgba(0, 169, 181, 0.08);
    --radius-md: 20px;
    --font-main: 'Nunito Sans', sans-serif;
    --header-height: 80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html.menu-open, body.menu-open { overflow: hidden; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

main {
    background-color: var(--bg-light); /* Fondo claro para la sección principal */
}

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

/* ===== HEADER STYLES (FROM HOME) ===== */
#main-header {
    position: fixed; width: 100%; top: 0; z-index: 1001;
    height: var(--header-height);
    display: flex; align-items: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 169, 181, 0.08);
    box-shadow: var(--shadow-soft);
}
#main-header .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.logo a {
    font-size: 1.6rem; font-weight: 900; color: var(--brand-blue); text-decoration: none;
    display: flex; align-items: center; letter-spacing: -1px; transition: transform 0.3s ease;
}
.logo-image { height: 1.4em; margin-right: 0.7rem; object-fit: contain; }
.logo a:hover { transform: scale(1.05); }

.header-right { display: flex; align-items: center; gap: 1.5rem; }
.desktop-nav { display: none; }
.nav-menu { display: flex; align-items: center; list-style: none; gap: 2rem; }
.nav-menu a { font-weight: 700; text-decoration: none; color: var(--brand-blue); padding: 0.5rem 0.2rem; position: relative; }
.nav-menu a:not(.btn-nav)::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 3px; background: var(--gradient-main); border-radius: 2px; transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1); }
.nav-menu a:hover, .nav-menu a.active { color: var(--brand-orange); }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
.nav-link.btn-nav { padding: 0.6rem 1.5rem; border: 2px solid var(--brand-orange); border-radius: 50px; color: var(--brand-blue); transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); }
.nav-link.btn-nav::after { display: none; }
.nav-link.btn-nav:hover { background: var(--gradient-main); border-color: transparent; color: var(--brand-blue-dark); transform: scale(1.05); }

.mobile-menu-toggle {
    display: block; position: relative; z-index: 1002; width: 44px; height: 44px;
    background: none; border: none; cursor: pointer; padding: 0;
}
.mobile-menu-toggle span {
    display: block; position: absolute; height: 3px; width: 28px; background: var(--brand-blue); border-radius: 3px;
    opacity: 1; left: 8px; transform: rotate(0deg); transition: all .3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.mobile-menu-toggle span:nth-child(1) { top: 11px; }
.mobile-menu-toggle span:nth-child(2) { top: 20px; }
.mobile-menu-toggle span:nth-child(3) { top: 29px; }
body.menu-open .mobile-menu-toggle span:nth-child(1) { top: 20px; transform: rotate(135deg); }
body.menu-open .mobile-menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .mobile-menu-toggle span:nth-child(3) { top: 20px; transform: rotate(-135deg); }

.mobile-nav {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: var(--brand-blue-dark); z-index: 1000;
    display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--header-height) + 2rem) 1.5rem 3rem;
    opacity: 0; visibility: hidden; transform: translateX(100%); transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.5s ease;
}
.mobile-nav.active { opacity: 1; visibility: visible; transform: translateX(0); }
.mobile-nav .nav-menu { list-style: none; text-align: center; display: flex; flex-direction: column; gap: 1rem; }
.mobile-nav .nav-link { font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 700; color: rgba(255,255,255,0.85); text-decoration: none; padding: 0.75rem; }
.mobile-nav .nav-link:hover { background: var(--gradient-main); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mobile-nav-footer { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); }
.mobile-nav-footer .btn { display: inline-block; width: 100%; max-width: 400px; margin: 0 auto 1.5rem; font-size: 1.2rem; padding: 1.2rem; text-decoration: none; border-radius: 50px; background: var(--gradient-main); color: var(--brand-blue-dark); font-weight: 800; }
.mobile-nav-footer .social-links { list-style: none; display: flex; justify-content: center; gap: 1.5rem; margin: 0; }
.mobile-nav-footer .social-links a { color: rgba(255,255,255,0.6); font-size: 1.3rem; }

/* ===== LANGUAGE SWITCHER STYLES (FROM HOME) ===== */
.language-switcher { position: relative; z-index: 10; }
.lang-toggle {
    display: flex; align-items: center; gap: 0.5rem; cursor: pointer; padding: 0.5rem; border-radius: 8px;
    background: none; border: none; font-family: var(--font-main); font-weight: 700; color: var(--brand-blue);
}
.flag-icon { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.lang-toggle span { font-size: 0.9rem; }
.lang-dropdown {
    position: absolute; top: calc(100% + 10px); right: 0; background: var(--white); border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 169, 181, 0.1); list-style: none; padding: 0.5rem; margin: 0; width: 150px;
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.lang-dropdown.active { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-dropdown a {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; color: var(--brand-blue-dark); text-decoration: none;
    font-weight: 600; font-size: 0.95rem; border-radius: 8px; transition: background-color 0.3s ease, color 0.3s ease;
}
.lang-dropdown a:hover { background-color: var(--bg-light); color: var(--brand-orange); }

/* ===== LEGAL PAGE CONTENT STYLES ===== */
.legal-page {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 5rem;
}
.legal-page .container {
    max-width: 900px;
}
.legal-page h1, .legal-page h2, .legal-page h3, .legal-page p, .legal-page ul, .legal-page strong {
    text-align: left;
}
.legal-page h1 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 900;
    color: var(--brand-blue);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--brand-orange);
}
.legal-page h2 {
    font-size: clamp(1.5rem, 4vw, 1.9rem);
    font-weight: 900;
    color: var(--brand-blue-dark);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}
.legal-page p, .legal-page li {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}
.legal-page strong {
    color: var(--text-primary);
    font-weight: 700;
}
.legal-page ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}
.legal-page a {
    color: var(--brand-orange);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}
.legal-page a:hover {
    color: var(--brand-blue);
    text-decoration: underline;
}

/* ===== FOOTER STYLES (FROM HOME) ===== */
footer {
    background: var(--bg-body); padding: 5rem 0 3rem; text-align: center;
    color: rgba(255,255,255,0.6); font-size: 0.9rem;
}
footer .logo a { justify-content: center; font-size: 2rem; color: var(--white); margin-bottom: 1rem; }
.footer-contact { margin-bottom: 2rem; color: rgba(255,255,255,0.8); }
.social-links { list-style: none; display: flex; justify-content: center; gap: 1rem; margin-bottom: 2rem; }
.social-links a {
    color: rgba(255,255,255,0.8); font-size: 1.5rem; width: 50px; height: 50px; line-height: 50px; display: inline-block;
    border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.social-links a:hover {
    color: var(--brand-orange); background-color: rgba(255,255,255,0.1);
    transform: translateY(-5px); border-color: var(--brand-orange);
}
.footer-legal-links {
    list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
    gap: 0.8rem 1.5rem; margin-top: 2.5rem; padding: 0;
}
.footer-legal-links a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.3s ease; }
.footer-legal-links a:hover { color: var(--brand-orange); text-decoration: underline; }
.footer-credit {
    margin-top: 3rem; padding-top: 1.5rem; font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5); position: relative;
}
.footer-credit::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 50%; height: 1px; background-color: rgba(255, 255, 255, 0.2);
}
.footer-credit a { color: rgba(255, 255, 255, 0.7); font-weight: bold; text-decoration: none; transition: color 0.3s ease; }
.footer-credit a:hover { color: var(--brand-orange); }
.footer-credit .fa-heart { color: #e74c3c; margin: 0 0.25rem; font-size: 0.9em; }

@media (min-width: 992px) {
    .mobile-menu-toggle { display: none; }
    .desktop-nav { display: block; }
}

        /* ===== INICIO ESTILOS BANNER DE COOKIES ===== */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--brand-blue-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 1.5rem 0;
    z-index: 1010; /* Superior al header, pero puede ajustarse si es necesario */
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    visibility: hidden;
}

#cookie-banner.active {
    transform: translateY(0);
    visibility: visible;
}

.cookie-banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.cookie-text {
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.cookie-text a {
    color: var(--brand-orange-soft);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.cookie-text a:hover {
    color: var(--brand-orange);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-cookie-primary, .btn-cookie-secondary {
    border: none;
    padding: 0.7rem 1.5rem;
    font-family: var(--font-main);
    font-weight: 800;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cookie-primary {
    background: var(--gradient-main);
    color: var(--brand-blue-dark);
    box-shadow: 0 4px 15px rgba(255, 123, 0, 0.2);
}

.btn-cookie-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px rgba(255, 123, 0, 0.3);
}

.btn-cookie-secondary {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-cookie-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-3px);
}

/* --- Media Query para pantallas más grandes --- */
@media (min-width: 768px) {
    .cookie-banner-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    .cookie-text {
        font-size: 1rem;
    }
    .cookie-buttons {
        margin-left: 2rem;
    }
}
/* ===== FIN ESTILOS BANNER DE COOKIES ===== */