@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --primary-color: #D9A520; /* Slightly toned down gold for balance */
    --bg-dark: #0A0A0A;
    --bg-card: #141414;
    --text-light: #F5F5F5;
    --text-muted: #A0A0A0;
    --accent-glow: rgba(197, 160, 89, 0.2);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-serif {
    font-family: 'Playfair Display', serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img, video {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

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

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

header.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: 70px;
}

.header-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px; /* Stronger gap between main blocks */
}

.logo {
    display: flex;
    align-items: center;
    min-width: 60px;
}

.logo img {
    height: 50px;
    width: auto;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

header.scrolled .logo img {
    opacity: 1 !important;
    pointer-events: auto !important;
    height: 60px !important;
}

nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    gap: 40px; /* Reduced gap since we have 5 items now */
    align-items: center;
    list-style: none; /* Just in case */
}

nav ul li a {
    font-size: 13px; /* Slightly refined for a more premium look */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap; /* Prevent "La Esencia" from breaking into two lines */
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary-color);
}

.cta-button {
    background: var(--primary-color);
    color: #000;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(217, 165, 32, 0.4);
    background: linear-gradient(90deg, var(--primary-color), #f0cc66, var(--primary-color));
    background-size: 200% auto;
    animation: shine 1.5s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

.cta-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.cta-outline:hover {
    background: var(--primary-color);
    color: #000;
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%, rgba(10,10,10,1) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 900px;
}

.hero-content h1 {
    font-size: 80px;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 600;
}

.hero-content p {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Gastronomy Carousel */
.ticker-wrap {
    width: 100%;
    padding: 40px 0;
    overflow: hidden;
    /* Force GPU layer so overflow:hidden composites correctly on Safari iOS */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.ticker {
    display: flex;
    width: max-content;
    will-change: transform;
}

.ticker-item {
    width: 350px;
    height: 450px;
    flex-shrink: 0;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 20px;
}

.ticker-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1), filter 0.8s ease;
    filter: brightness(0.9);
}

.ticker-item:hover img {
    transform: scale(1.04);
    filter: brightness(1.1);
}

@media (max-width: 768px) {
    .ticker-item {
        width: 220px;
        height: 280px;
    }
}

/* Sound Toggle */
.sound-toggle {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 100;
}

.sound-toggle:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 25px rgba(197, 160, 89, 0.4);
}

/* Menu Page Styles */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 60px 80px;
    align-items: start;
}

.menu-section-title {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 20px;
    transition: var(--transition-smooth);
    padding: 8px 0;
}

.menu-item .dish {
    flex: 1;
    color: var(--text-light);
    font-weight: 400;
    position: relative;
    padding-right: 15px;
}

.menu-item .price {
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 24px;
}

.menu-item:not(.heading):hover {
    padding-left: 10px;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .menu-section-title {
        font-size: 26px;
    }
}

.sound-toggle.active .mute-line {
    display: none;
}

/* Esencia Slider */
.esencia-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 20px 20px 0 var(--primary-color);
}

.slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.slider-img.active {
    opacity: 1;
    z-index: 1;
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 15px;
    z-index: 10;
}

.slider-btn {
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    height: 45px;
    width: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.slider-btn:hover {
    background: var(--primary-color);
    color: #000;
}

.slider-btn svg {
    width: 20px;
    height: 20px;
}

/* Booking Section & Form */
#reservas {
    position: relative;
    padding: 150px 0;
    background-image: url('MIAMI RESTAURANTE/booking_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Basic CSS Parallax */
    overflow: hidden;
}

#reservas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        var(--bg-dark) 0%, 
        rgba(10, 10, 10, 0.7) 15%, 
        rgba(10, 10, 10, 0.7) 85%, 
        var(--bg-dark) 100%
    );
    z-index: 1;
}

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

.booking-form {
    background: linear-gradient(165deg, rgba(20, 20, 20, 0.95) 0%, rgba(5, 5, 5, 0.98) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(217, 165, 32, 0.15); /* Borde dorado muy sutil */
    padding: 60px;
    border-radius: 20px; /* Bordes más suaves */
    text-align: left;
    box-shadow: 
        0 40px 100px rgba(0, 0, 0, 0.8),
        inset 0 1px 1px rgba(255, 255, 255, 0.05); /* Brillo interior superior */
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.booking-form:hover {
    box-shadow: 0 50px 120px rgba(0, 0, 0, 0.9);
}

.booking-form::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1.5px; /* Un poco más grueso para que se note la calidad */
    background: linear-gradient(135deg, 
        rgba(217, 160, 89, 0.4) 0%, 
        transparent 30%, 
        transparent 70%, 
        rgba(217, 160, 89, 0.2) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-12 { grid-column: span 12; }

.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.9;
}

.form-group label svg {
    color: var(--primary-color);
    opacity: 0.8;
}

.form-group input,
.form-group select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 6px;
    color: white;
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition-smooth);
    appearance: none;
    -webkit-appearance: none;
}

/* Hacer visible el icono del calendario (blanco) en Google Chrome/Safari */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23D9A520' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 45px;
}

.form-group input:focus,
.form-group select:focus:not(:disabled) {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(217, 165, 32, 0.05);
    box-shadow: 0 0 15px rgba(217, 165, 32, 0.15);
}

.form-group select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-image: none;
}

.form-group select option {
    background: #111;
    color: white;
}

@media (max-width: 768px) {
    .booking-form {
        padding: 30px 20px;
    }
}

/* Hero Logo Transition */
.hero-logo-entry {
    opacity: 0;
    transform: scale(0.7);
    filter: blur(20px);
    transition: 
        opacity 1.8s cubic-bezier(0.19, 1, 0.22, 1), 
        transform 2s cubic-bezier(0.19, 1, 0.22, 1),
        filter 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.hero-logo-entry.visible {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

/* Event Cards */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.reveal[style*="background: var(--bg-card)"][style*="border-radius: 12px"]:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(197, 160, 89, 0.1);
}

.reveal[style*="background: var(--bg-card)"][style*="border-radius: 12px"]:hover img {
    transform: scale(1.08);
}

/* Responsive Footer, etc. placeholder */
/* Unified Footer */
.unified-footer {
    background: #080808;
    padding: 30px 0 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 30px;
    position: relative;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 30px;
}

.footer-info-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-info-item h3 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--text-light);
}

.footer-info-item h4 {
    color: var(--primary-color);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.footer-info-item p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
}

.footer-visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.footer-map-container {
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    filter: grayscale(1) invert(0.9) contrast(1.2); /* Permanent premium dark map effect */
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.4s ease;
}

.footer-map-container:hover {
    border-color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    text-align: center;
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.footer-logos img {
    transition: var(--transition-smooth);
}

.footer-logos img:hover {
    transform: translateY(-5px);
    filter: brightness(1.2) !important;
}

.copyright {
    color: var(--text-muted);
    font-size: 13px;
    letter-spacing: 0.5px;
}

@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .footer-map-container {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .unified-footer {
        padding: 60px 0 30px;
    }
    .footer-info-item h3 {
        text-align: center !important;
        margin-bottom: 35px !important;
    }
    .footer-visit-grid {
        grid-template-columns: 1fr !important;
        gap: 45px !important;
        text-align: center !important;
    }
    .footer-visit-grid h4 {
        margin-bottom: 12px !important;
        display: inline-block !important;
        border-bottom: 1px solid rgba(217, 165, 32, 0.4) !important;
        padding-bottom: 8px !important;
        letter-spacing: 2px !important;
    }
    .footer-visit-grid > div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-visit-grid p {
        line-height: 1.8 !important;
        color: rgba(255, 255, 255, 0.8) !important;
    }
    .footer-logos {
        flex-direction: column !important;
        align-items: center !important;
        gap: 45px !important;
    }
    .footer-logos img:first-child {
        height: 150px !important; /* Logotipo principal más destacado */
    }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .hero-content h1 { font-size: 48px; }
    
    /* Configuración Navbar Móvil (Menú Hamburguesa) */
    nav { 
        display: flex;
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(15px);
        transition: left 0.4s ease;
        z-index: 999;
    }
    nav.nav-active {
        left: 0;
    }
    nav ul {
        flex-direction: column;
        gap: 30px;
    }
    nav ul li a {
        font-size: 20px;
    }
    header.scrolled nav {
        top: 70px;
        height: calc(100vh - 70px);
    }
    
    /* Botón Hamburguesa Refinado */
    .hamburger-btn {
        display: flex !important;
        flex-direction: column;
        gap: 5px; /* Más compacto */
        margin-left: 5px !important; /* Ligera separación del grupo de botones */
        cursor: pointer;
        background: transparent;
        border: none;
        z-index: 1001;
    }
    .hamburger-line {
        width: 20px; /* Raya más fina y corta */
        height: 2px;
        background: var(--text-light);
        transition: var(--transition-smooth);
    }
    
    /* Animación toggle hamburguesa */
    .hamburger-btn.active .hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger-btn.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    .hamburger-btn.active .hamburger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    section { padding: 80px 0; }
    .form-row { grid-template-columns: 1fr; }
    .col-3, .col-4, .col-6, .col-12 { grid-column: span 1; }
    
    /* Botones más sutiles y armónicos para cabecera móvil */
    .header-actions .cta-button { 
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 5px 10px !important; 
        font-size: 10px !important;
        letter-spacing: 0.5px !important;
        border-radius: 4px !important;
        height: 28px !important;
    }
    
    .header-actions .cta-outline {
        border: 1px solid rgba(217, 165, 32, 0.4) !important; /* Más ligero visualmente */
    }
    
    .header-actions {
        gap: 6px !important; /* Más juntos */
        align-items: center !important;
    }
    .header-inner {
        gap: 5px !important; /* Agrupar más los bloques */
        justify-content: space-between !important;
    }
    .logo img {
        height: 44px !important; /* Logotipo visible y más grande en móvil */
    }
    header.scrolled .logo img {
        height: 44px !important;
    }

    /* Arreglos de Grids específicos usando selects para no tocar el HTML */
    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    
    #about h2 { 
        font-size: 38px !important; 
        text-align: center;
    }
    /* El texto explicativo de Esencia a centrado en móvil */
    #about p { text-align: center; }
    
    .experience-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .esencia-slider {
        box-shadow: 10px 10px 0 var(--primary-color);
        max-width: 400px;
        margin: 0 auto;
    }

    /* Ajustes Reconstruidos para carta.html y eventos.html (Aesthetics Premium) */
    .menu-page .container, .eventos-page .container, #eventos section .container {
        padding: 0 20px !important; /* Safe Area / Gutter imprescindible */
    }
    
    .menu-hero {
        height: 60vh !important; /* Margen respirable */
        min-height: auto !important;
        padding-top: 80px !important;
    }
    .menu-hero h1 { 
        font-size: 38px !important; 
    }
    /* GASTRO EXPERIENCIA de fondo - Letra más modesta en móvil para no manchar */
    .menu-hero h1::after {
        font-size: 50px !important;
        opacity: 0.04 !important;
        top: 50% !important;
    }
    
    .eventos-hero h1 { 
        font-size: 36px !important; 
        line-height: 1.3 !important; /* Evita recorte vertical (clipping) */
        padding-top: 40px !important;
    }
    
    /* Botón de volver reubicado para no solapar, conservando el estilo dorado original */
    a[href="index.html"].cta-outline {
        font-size: 11px !important; 
        padding: 8px 14px !important;
        top: 20px !important;
        left: 20px !important;
        z-index: 100 !important;
    }
    
    /* Corrección crítica de espaciado para evitar límite de borde en los Precios */
    .menu-item { 
        padding-right: 20px !important; 
    }
    .menu-category {
        margin-bottom: 60px !important;
    }
    .menu-category h2 {
        font-size: 26px !important; /* Rebajar jerarquía en móvil */
        margin-bottom: 25px !important;
    }
    
    /* Párrafos en Eventos (Line-height para respirar fluidez) */
    .editorial-text { 
        text-align: center; 
        line-height: 1.7 !important; 
        font-size: 15px !important;
        margin-bottom: 30px !important;
    }
    
    /* Etiquetas Event-Tags (Diseño pastilla uniforme) */
    .event-tags { 
        justify-content: center !important;
        gap: 10px !important;
    }
    .event-tags .badge {
        font-size: 10px !important;
        padding: 8px 14px !important;
        flex: 1 1 calc(50% - 20px) !important; /* Doble columna automática o llenado */
        text-align: center;
        border: 1px solid rgba(217, 165, 32, 0.4) !important;
        background: transparent !important;
    }
}

/* Ocultar hamburguesa por defecto en desktop - se añade tras el bloque */
.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
}
.hamburger-line {
    width: 28px;
    height: 2px;
    background: var(--text-light);
    transition: var(--transition-smooth);
}

/* Opción de hora deshabilitada */
.form-group select option:disabled {
    color: #555;
}

/* Mensaje de error del formulario */
#formError {
    animation: fadeIn 0.4s ease forwards;
}

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

/* ─────────────────────────────────────────────────────────────────
   FORMULARIO LEGAL (Checkboxes RGPD)
   ───────────────────────────────────────────────────────────────── */
.legal-checkbox-group {
    margin: 25px 0 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.legal-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.legal-item input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
    margin-top: 2px;
    flex-shrink: 0;
}

.legal-item span {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.legal-item span a {
    color: var(--primary-color);
    text-decoration: underline;
}

.form-info-text {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    line-height: 1.6;
    margin-top: 20px;
    text-align: center;
    padding: 0 10px;
}

/* =========================================
   LA ESENCIA - TIMELINE Y PREMIOS
   ========================================= */

/* Timeline: diseño vertical con línea izquierda y año como badge flotante */
.timeline {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
    padding-left: 4px;
}

/* Línea vertical decorativa */
.timeline::before {
    content: '';
    position: absolute;
    top: 8px;
    bottom: 0;
    left: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), rgba(217, 165, 32, 0.05));
    border-radius: 2px;
}

/* Cada hito */
.timeline-item {
    position: relative;
    padding-left: 36px;
    margin-bottom: 48px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Dot en la línea */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 14px;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(217, 165, 32, 0.6);
    flex-shrink: 0;
}

/* Badge del año: INLINE, no absoluto → nunca desborda */
.timeline-year {
    display: inline-block;
    background: rgba(217, 165, 32, 0.1);
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 14px;
    border: 1px solid rgba(217, 165, 32, 0.4);
    border-radius: 20px;
    margin-bottom: 16px;
    white-space: nowrap;
}

/* Tarjeta de contenido */
.timeline-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 28px 30px;
    border-radius: 10px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
    border-color: rgba(217, 165, 32, 0.25);
}

.timeline-content h3 {
    font-size: 22px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.85;
}

/* Mobile: simplificamos el padding */
@media (max-width: 600px) {
    .timeline {
        padding-left: 2px;
    }
    .timeline-item {
        padding-left: 28px;
    }
    .timeline-content {
        padding: 22px 18px;
    }
}

/* Awards Grid */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 30px;
}

.award-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.award-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    background: linear-gradient(to bottom, rgba(20, 20, 20, 0.8), rgba(217, 165, 32, 0.05));
}

/* Contenedor de logo con altura fija para alinear tarjetas */
.award-logo-wrap {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Imágenes y SVGs de logos */
.award-logo {
    max-height: 80px;
    max-width: 140px;
    width: auto;
    object-fit: contain;
    /* Filtro para logos oscuros sobre fondo oscuro */
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: opacity 0.4s ease, filter 0.4s ease;
}

.award-card:hover .award-logo {
    opacity: 1;
    filter: brightness(0) invert(1) sepia(1) saturate(2) hue-rotate(5deg);
}

/* Excepciones para logos que ya son blancos/claros o tienen color específico */
.award-card:has(svg) .award-logo,
.award-card .award-logo[src*="repsol"],
.award-card .award-logo[src*="macarfi"],
.award-card .award-logo[src*="raiz"] {
    filter: none;
    opacity: 0.9;
}

.award-card:hover:has(img) .award-logo {
    filter: none;
    opacity: 1;
}

.award-card h4 {
    font-family: 'Inter', sans-serif;
    color: var(--primary-color);
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.award-card p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

/* Icono antiguo (emoji) - por si se usa en algún sitio */
.award-icon {
    font-size: 40px;
    line-height: 1;
}


/* Responsive Ajustes */
@media (max-width: 768px) {
    .awards-list ul {
        grid-template-columns: 1fr !important;
    }
}

/* About Grid Responsive Fix */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 992px) {
}

/* Experience Grid Responsive Fix */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 992px) {
    .experience-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .experience-grid {
        grid-template-columns: 1fr;
    }
}



