/* ============================================
   LOS PORTALES — Stylesheet
   Classic & Elegant | Deep Navy + Warm Gold
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy-950: #060E1A;
    --navy-900: #0B1D3A;
    --navy-800: #102A52;
    --navy-700: #163566;
    --navy-600: #1D4480;
    --gold-500: #C9A84C;
    --gold-400: #D4B96A;
    --gold-300: #E0CA88;
    --gold-600: #A8893A;
    --cream-50: #FAFAF8;
    --cream-100: #F5F3EF;
    --cream-200: #EDE9E2;
    --warm-gray-100: #F7F6F3;
    --warm-gray-200: #EDEBE6;
    --warm-gray-300: #D5D0C8;
    --warm-gray-400: #A89F94;
    --warm-gray-500: #7A7067;
    --warm-gray-600: #5C544B;
    --text-primary: #1A1612;
    --text-secondary: #4A4238;
    --text-muted: #7A7067;
    --white: #FFFFFF;
    --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background-color: var(--cream-50);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--gold-600);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--gold-500);
}

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

/* --- Skip Link --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--navy-900);
    color: var(--white);
    padding: 8px 16px;
    z-index: 1000;
    border-radius: 4px;
    font-size: 0.875rem;
}

.skip-link:focus {
    top: 16px;
    color: var(--white);
}

/* --- Loader --- */
.loader {
    position: fixed;
    inset: 0;
    background: var(--navy-950);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-line {
    width: 60px;
    height: 2px;
    background: var(--gold-500);
    animation: loaderPulse 1s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%, 100% { transform: scaleX(0.3); opacity: 0.4; }
    50% { transform: scaleX(1); opacity: 1; }
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: background var(--transition-base), padding var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled {
    background: rgba(11, 29, 58, 0.97);
    padding: 14px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--white);
}

.logo-monogram {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gold-500);
    letter-spacing: 0.05em;
    border: 1px solid var(--gold-500);
    padding: 4px 8px;
    line-height: 1;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* --- Navigation --- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--white);
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    position: relative;
    padding: 4px 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold-500);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--gold-500);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link--cta {
    background: var(--gold-500);
    color: var(--navy-900) !important;
    padding: 10px 24px;
    border-radius: 2px;
    letter-spacing: 0.1em;
    transition: background var(--transition-fast), color var(--transition-fast) !important;
}

.nav-link--cta::after {
    display: none;
}

.nav-link--cta:hover {
    background: var(--gold-400);
    color: var(--navy-900) !important;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--navy-950);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(6, 14, 26, 0.4) 0%,
        rgba(11, 29, 58, 0.6) 50%,
        rgba(6, 14, 26, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
    color: var(--white);
}

.hero-ornament {
    color: var(--gold-500);
    margin-bottom: 24px;
    opacity: 0.7;
}

.hero-label {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--white);
}

.hero-title em {
    font-style: italic;
    color: var(--gold-500);
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 400;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 16px 36px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
}

.btn--gold {
    background: var(--gold-500);
    color: var(--navy-900);
}

.btn--gold:hover {
    background: var(--gold-400);
    color: var(--navy-900);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.3);
}

.btn--outline-light {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn--outline-light:hover {
    border-color: var(--gold-500);
    color: var(--gold-500);
    transform: translateY(-2px);
}

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

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-family: var(--font-sans);
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--gold-500), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.6); }
}

/* --- Section Shared --- */
.section {
    padding: 100px 0;
}

.section--dark {
    background: var(--navy-900);
}

.section-header--center {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold-600);
    margin-bottom: 16px;
}

.section-label--light {
    color: var(--gold-500);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 20px;
}

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

.section-title em {
    font-style: italic;
    color: var(--gold-500);
}

.section-subtitle {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-subtitle--light {
    color: rgba(255, 255, 255, 0.65);
}

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

.about-image-wrap {
    position: relative;
}

.about-image-wrap img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 2px;
}

.about-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    border: 1px solid var(--gold-500);
    border-radius: 2px;
    z-index: -1;
}

.about-text .lead {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.9375rem;
}

.about-features {
    display: flex;
    gap: 32px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--warm-gray-200);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.feature-icon {
    color: var(--gold-500);
    flex-shrink: 0;
}

/* --- Cuisine --- */
.cuisine-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cuisine-card {
    background: var(--navy-800);
    border-radius: 2px;
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.cuisine-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.cuisine-card-img {
    height: 220px;
    overflow: hidden;
}

.cuisine-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.cuisine-card:hover .cuisine-card-img img {
    transform: scale(1.05);
}

.cuisine-card-body {
    padding: 28px;
}

.cuisine-card-tag {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 12px;
}

.cuisine-card-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.3;
}

.cuisine-card-body p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

/* --- Events --- */
.events-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.events-image-side img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 2px;
}

.events-text-side .lead {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.events-text-side p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.9375rem;
}

.events-list {
    list-style: none;
    margin: 24px 0 32px;
    display: grid;
    gap: 12px;
}

.events-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
}

.events-list li svg {
    color: var(--gold-500);
    flex-shrink: 0;
}

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    gap: 16px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 2px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-item--wide {
    grid-column: span 8;
    height: 360px;
}

.gallery-item--tall {
    grid-column: span 4;
    height: 480px;
}

.gallery-item:not(.gallery-item--wide):not(.gallery-item--tall) {
    height: 220px;
}

/* --- Contact --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-intro {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.7;
}

.contact-details {
    font-style: normal;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
}

.contact-icon {
    color: var(--gold-500);
    flex-shrink: 0;
    margin-top: 4px;
}

.contact-item strong {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.9375rem;
    color: var(--text-primary);
    line-height: 1.7;
}

.contact-item a {
    color: var(--text-primary);
}

.contact-item a:hover {
    color: var(--gold-500);
}

/* --- Form --- */
.contact-form-wrap {
    background: var(--white);
    padding: 40px;
    border-radius: 2px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--warm-gray-200);
}

.contact-form-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-group--full {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--text-primary);
    background: var(--cream-50);
    border: 1px solid var(--warm-gray-300);
    border-radius: 2px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--warm-gray-400);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-note {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 16px;
    text-align: center;
}

.form-note a {
    color: var(--gold-600);
    font-weight: 600;
}

.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success svg {
    color: var(--gold-500);
    margin: 0 auto 16px;
}

.form-success h4 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-success p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

/* --- Footer --- */
.site-footer {
    background: var(--navy-950);
    color: rgba(255, 255, 255, 0.6);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo-monogram {
    font-size: 1rem;
}

.footer-brand .logo-text--light {
    color: var(--white);
}

.footer-tagline {
    font-family: var(--font-serif);
    font-size: 1rem;
    margin-top: 12px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    max-width: 280px;
}

.footer-nav h4,
.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 20px;
}

.footer-nav ul {
    list-style: none;
    display: grid;
    gap: 10px;
}

.footer-nav a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition-fast);
}

.footer-nav a:hover {
    color: var(--gold-500);
}

.footer-contact p {
    font-size: 0.875rem;
    line-height: 1.8;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.5);
}

.footer-contact a:hover {
    color: var(--gold-500);
}

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

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.3);
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--navy-900);
    color: var(--gold-500);
    border: 1px solid var(--gold-500);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 50;
    transition: all var(--transition-base);
}

.back-to-top:hover {
    background: var(--gold-500);
    color: var(--navy-900);
}

/* --- Mobile Menu Overlay --- */
@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--navy-950);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 32px 32px;
        gap: 0;
        transition: right var(--transition-base);
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-menu .nav-link {
        display: block;
        padding: 16px 0;
        font-size: 0.9375rem;
    }

    .nav-menu .nav-link--cta {
        margin-top: 16px;
        text-align: center;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 90;
    }

    .nav-overlay.active {
        display: block;
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }

    .about-grid,
    .events-content,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-wrap img {
        height: 360px;
    }

    .about-accent {
        display: none;
    }

    .about-features {
        flex-direction: column;
        gap: 16px;
    }

    .cuisine-grid {
        grid-template-columns: 1fr;
    }

    .events-image-side img {
        height: 360px;
    }

    .gallery-item--wide {
        grid-column: span 12;
        height: 260px;
    }

    .gallery-item--tall {
        grid-column: span 12;
        height: 280px;
    }

    .gallery-item:not(.gallery-item--wide):not(.gallery-item--tall) {
        grid-column: span 6;
        height: 200px;
    }

    .contact-form-wrap {
        padding: 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .gallery-item:not(.gallery-item--wide):not(.gallery-item--tall) {
        grid-column: span 12;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .cuisine-card:hover {
        transform: none;
    }

    .cuisine-card-img img,
    .gallery-item img {
        transform: none;
    }
}
