/* ================================================================
   CATERING LA VOSTRA CUINA - ESTILOS MODERNOS & ELEGANTES
   Version 3.0 - Premium Design 2024
   ================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-coral: #E8564D;
    --primary-dark: #D63D34;
    --accent-gold: #D4A574;
    --dark: #1a1a1a;
    --light-gray: #F5F5F5;
    --medium-gray: #7a7a7a;
    --success: #2D5016;
    --white: #ffffff;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-lg: 0 20px 48px rgba(0,0,0,0.15);
}

/* ================================================================
   GLOBAL STYLES
   ================================================================ */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: none;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .navbar {
        position: relative;
    }
    .container {
        padding: 0 20px;
    }
}

/* ================================================================
   HEADER PREMIUM
   ================================================================ */

.header.premium {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-top {
    background: linear-gradient(135deg, var(--dark) 0%, #2a2a2a 100%);
    color: var(--white);
    padding: 12px 0;
    font-size: 14px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    margin-top: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.separator {
    opacity: 0.5;
}

.navbar {
    padding: 20px 0;
}

.flex-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    min-width: 235px;
}

.logo-img {
    height: 68px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,.08));
}

.logo-text {
    display: none;
}

.logo-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--primary-coral);
}

.logo-name {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link[data-dishes],
.nav-link[href="plats-cuinats_w2.html"] {
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-coral), var(--accent-gold));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-coral);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

.language-toggle {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    transform: none !important;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 4px;
}

.language-toggle .lang-btn {
    min-width: 46px;
    height: 38px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background: var(--white);
    color: var(--dark);
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.language-toggle .lang-btn:hover {
    border-color: var(--primary-coral);
    color: var(--primary-coral);
}

.language-toggle .lang-btn.active {
    border-color: var(--primary-coral);
    background: var(--primary-coral);
    color: var(--white);
}

@media (max-width: 1180px) {
    .navbar {
        display: flex;
        flex-direction: column;
        width: 100%;
        position: static !important;
    }

    .language-toggle {
        position: static !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        transform: none !important;
        justify-content: flex-start;
        width: 100%;
        padding: 12px 40px 16px;
        z-index: 101;
    }

    .flex-nav {
        width: 100%;
        max-width: none;
        position: static !important;
        flex-flow: row nowrap;
        flex-wrap: wrap;
        gap: 20px;
    }

    .logo-container {
        min-width: auto;
        flex-shrink: 0;
    }

    .logo-img {
        height: 62px;
    }

    .hamburger {
        display: flex;
        flex-shrink: 0;
        margin-left: auto;
        z-index: 102;
        order: 1;
    }

    .nav-menu {
        position: static !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        width: 100%;
        flex: 0 0 100%;
        order: 2;
        display: flex;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        display: none;
        height: auto;
        overflow: visible;
        box-shadow: var(--shadow-md);
    }

    .hamburger.active + .nav-menu,
    .nav-menu.is-open {
        display: flex;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--light-gray);
    }

    .nav-menu li a {
        display: block;
        padding: 15px 40px;
    }

    .nav-menu .language-menu-item {
        display: block;
        width: 100%;
        border-bottom: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

@media (max-width: 768px) {
    .navbar {
        display: flex;
        flex-direction: column;
    }

    .flex-nav {
        min-height: 78px;
        align-items: center;
    }

    .logo-img {
        height: 56px;
        max-width: 210px;
    }

    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: static;
        width: 100%;
        height: auto;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        overflow: visible;
        z-index: 100;
        box-shadow: var(--shadow-sm);
    }
    
    .nav-menu li {
        border-bottom: 1px solid var(--light-gray);
    }
    
    .nav-menu li a {
        display: block;
        padding: 15px 20px;
    }

    .language-toggle {
        justify-content: flex-start;
        padding: 12px 20px 16px;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(10px, 10px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

/* ================================================================
   HERO SECTION - PREMIUM
   ================================================================ */

.hero-premium {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 20px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: brightness(0.5) saturate(1.2);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.6), rgba(232, 86, 77, 0.3));
    z-index: 2;
}

.hero-content.premium {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    background: rgba(232, 86, 77, 0.9);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 72px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto 40px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.2);
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ================================================================
   BUTTONS
   ================================================================ */

.btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 13px;
    border-radius: 4px;
    padding: 14px 32px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-coral), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 8px 20px rgba(232, 86, 77, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(232, 86, 77, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-coral);
    border: 2px solid var(--white);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.btn-white {
    background: var(--white);
    color: var(--primary-coral);
}

.btn-white:hover {
    background: var(--light-gray);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 14px;
}

/* ================================================================
   STATS SECTION
   ================================================================ */

.stats-section {
    background: linear-gradient(135deg, var(--dark) 0%, #2a2a2a 100%);
    color: var(--white);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-coral);
    margin-bottom: 10px;
    animation: countUp 1s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.stat-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* ================================================================
   FEATURES SECTION - PREMIUM
   ================================================================ */

.features-premium {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--white) 0%, #fafafa 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-coral), var(--accent-gold));
    border-radius: 2px;
}

.section-header p {
    font-size: 18px;
    color: var(--medium-gray);
    margin-top: 25px;
}

.features-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature-card.premium-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.feature-card.premium-card:hover {
    border-top-color: var(--primary-coral);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.feature-icon {
    font-size: 60px;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--medium-gray);
}

/* ================================================================
   GALLERY SECTION
   ================================================================ */

.gallery-preview {
    padding: 100px 0;
    background: var(--white);
}

.gallery-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1) rotate(2deg);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.gallery-overlay p {
    color: var(--white);
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay p {
    opacity: 1;
}

.gallery-cta {
    text-align: center;
}

/* ================================================================
   SERVICES SECTION
   ================================================================ */

.services-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #fafafa 0%, var(--white) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--white);
    padding: 50px 35px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 5px solid var(--primary-coral);
    position: relative;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(10px);
}

.service-number {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-coral);
    opacity: 0.15;
    position: absolute;
    top: 20px;
    right: 20px;
}

.service-card h3 {
    font-size: 22px;
    color: var(--dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.service-card p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--medium-gray);
}

/* ================================================================
   CTA PREMIUM SECTION
   ================================================================ */

.cta-premium {
    background: linear-gradient(135deg, var(--primary-coral) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 100px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M 0 50 Q 300 100 600 50 T 1200 50 L 1200 0 L 0 0 Z" fill="%23ffffff" opacity="0.05"/></svg>');
    background-repeat: repeat-x;
    animation: wave 15s linear infinite;
}

@keyframes wave {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(1200px);
    }
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-premium h2 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    color: var(--white);
    margin-bottom: 20px;
}

.cta-premium p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 35px;
}

/* ================================================================
   FOOTER
   ================================================================ */

.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--primary-coral);
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.footer-legal {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.footer-link {
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
    text-decoration: underline;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 10px;
}

.footer-social {
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    color: var(--primary-coral);
    transform: translateY(-3px);
}

.social-link svg {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

/* ================================================================
   RESPONSIVE DESIGN
   ================================================================ */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 56px;
    }
    
    .section-header h2 {
        font-size: 40px;
    }
    
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .flex-nav {
        gap: 20px;
    }
    
    .logo-container {
        min-width: auto;
    }
    
    .nav-menu {
        gap: 0;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-premium {
        min-height: 500px;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .cta-premium h2 {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .hero-cta {
        gap: 10px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 12px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cta-premium h2 {
        font-size: 28px;
    }
    
    .cta-premium p {
        font-size: 15px;
    }
}

/* ================================================================
   UTILITY CLASSES
   ================================================================ */

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-60 {
    margin-bottom: 60px;
}

/* ================================================================
   COOKIE BANNER & CONSENT
   ================================================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--dark), #2a2a2a);
    color: white;
    padding: 20px 40px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-coral);
    font-weight: 700;
}

.cookie-text p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.cookie-text a {
    color: var(--primary-coral);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.cookie-text a:hover {
    color: var(--accent-gold);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn.accept {
    background: var(--primary-coral);
    color: white;
}

.cookie-btn.accept:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 86, 77, 0.3);
}

.cookie-btn.reject {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.cookie-btn.reject:hover {
    border-color: rgba(255, 255, 255, 0.8);
    color: white;
}

.cookie-btn.customize {
    background: transparent;
    color: var(--primary-coral);
    border: 1px solid var(--primary-coral);
}

.cookie-btn.customize:hover {
    background: var(--primary-coral);
    color: white;
}

.cookie-banner.hide {
    animation: slideDown 0.4s ease-out forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1100;
    padding: 20px;
}

.cookie-modal-content {
    background: white;
    border-radius: 8px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.cookie-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--dark);
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.cookie-close:hover {
    color: var(--primary-coral);
}

.cookie-modal-content h2 {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--dark);
    font-weight: 700;
}

.cookie-option {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.cookie-option:last-of-type {
    border-bottom: none;
}

.cookie-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-option-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.cookie-option p {
    font-size: 14px;
    color: var(--medium-gray);
    line-height: 1.5;
    margin: 0;
}

/* Cookie Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-flex;
    cursor: pointer;
    width: 50px;
    height: 26px;
}

.cookie-toggle input {
    display: none;
}

.cookie-toggle span {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--light-gray);
    border-radius: 13px;
    transition: 0.3s;
    display: flex;
    align-items: center;
}

.cookie-toggle span::after {
    content: '';
    display: block;
    width: 22px;
    height: 22px;
    background-color: white;
    border-radius: 50%;
    margin: 2px;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + span {
    background-color: var(--primary-coral);
}

.cookie-toggle input:checked + span::after {
    margin-left: auto;
    margin-right: 2px;
}

.cookie-toggle.disabled {
    cursor: default;
    color: var(--medium-gray);
    font-weight: 600;
    padding: 2px 10px;
    background: var(--light-gray);
    border-radius: 4px;
}

.cookie-toggle.disabled span {
    display: none;
}

.cookie-modal-footer {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.cookie-modal-footer .cookie-btn {
    flex: 1;
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 15px 20px;
    }

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: flex-start;
    }

    .cookie-btn {
        font-size: 12px;
        padding: 8px 16px;
    }

    .cookie-text h3 {
        font-size: 16px;
    }

    .cookie-text p {
        font-size: 13px;
    }

    .cookie-modal-content {
        padding: 30px 20px;
        margin: 20px;
    }
}

/* ================================================================
   LEGAL PAGES (POLITICA COOKIES, PRIVACIDAD)
   ================================================================ */

.legal-section {
    padding: 60px 0;
    background: var(--white);
    min-height: 100vh;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.legal-content h1 {
    font-size: 36px;
    margin-bottom: 30px;
    color: var(--dark);
    font-weight: 800;
    text-align: center;
}

.legal-date {
    text-align: center;
    color: var(--medium-gray);
    font-size: 14px;
    margin-bottom: 40px;
}

.legal-content h2 {
    font-size: 22px;
    margin-top: 35px;
    margin-bottom: 15px;
    color: var(--dark);
    border-bottom: 2px solid var(--primary-coral);
    padding-bottom: 10px;
    font-weight: 700;
}

.legal-content h3 {
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--dark);
    font-weight: 600;
}

.legal-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: rgba(26, 26, 26, 0.8);
}

.legal-content ul,
.legal-content ol {
    margin: 15px 0 15px 30px;
    line-height: 1.8;
}

.legal-content li {
    margin-bottom: 10px;
    color: rgba(26, 26, 26, 0.8);
}

.legal-content strong {
    color: var(--dark);
    font-weight: 600;
}

.legal-content a {
    color: var(--primary-coral);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.legal-content a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.legal-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--light-gray);
    text-align: center;
}

.legal-footer p {
    margin-bottom: 20px;
    color: var(--medium-gray);
}

@media (max-width: 768px) {
    .legal-content {
        padding: 20px;
    }

    .legal-content h1 {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .legal-content h2 {
        font-size: 20px;
        margin-top: 25px;
    }

    .legal-content h3 {
        font-size: 16px;
    }

    .legal-section {
        padding: 30px 0;
    }
}
