/* =========================================
   PONIENTE BEACH · CSS Principal
   Diseño: Mediterráneo costero elegante
   Paleta: Arena, turquesa profundo, coral suave, blanco roto
   ========================================= */

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

:root {
    --sand:       #F5EFE0;
    --sand-dark:  #EDE3CC;
    --ocean:      #1A4A5C;
    --ocean-mid:  #2D7A8C;
    --ocean-light:#4AAFBE;
    --coral:      #D4715A;
    --white:      #FDFAF5;
    --ink:        #1C1C1C;
    --ink-mid:    #4A4A4A;
    --ink-light:  #8A8A8A;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'Inter', system-ui, sans-serif;
    --radius:       6px;
    --shadow:       0 4px 32px rgba(26,74,92,0.10);
    --shadow-lg:    0 12px 48px rgba(26,74,92,0.18);
    --transition:   0.28s cubic-bezier(.4,0,.2,1);
    --max-w:        1200px;
}

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

body {
    font-family: var(--font-body);
    background: var(--white);
    color: var(--ink);
    line-height: 1.65;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* --- UTILITIES --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

.section-eyebrow {
    font-family: var(--font-body);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ocean-mid);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--ocean);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--ink-mid);
    max-width: 520px;
    margin: 0 auto;
}

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

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .04em;
    transition: all var(--transition);
}

.btn--primary {
    background: var(--coral);
    color: #fff;
    box-shadow: 0 2px 12px rgba(212,113,90,0.30);
}
.btn--primary:hover { background: #c05f4a; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212,113,90,0.40); }

.btn--ghost {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.55);
    backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: rgba(255,255,255,0.28); }

.btn--outline {
    background: transparent;
    color: var(--ocean);
    border: 1.5px solid var(--ocean);
}
.btn--outline:hover { background: var(--ocean); color: #fff; }

.btn--full { width: 100%; justify-content: center; }

/* =========================================
   NAVIGATION
   ========================================= */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
    background: var(--ocean);
    box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 20px 24px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.nav__logo-wave {
    color: var(--ocean-light);
    font-size: 1.5rem;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav__links a {
    font-size: .88rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    transition: color var(--transition);
}
.nav__links a:hover { color: #fff; }

.nav__cta {
    background: var(--coral) !important;
    color: #fff !important;
    padding: 9px 22px;
    border-radius: var(--radius);
    font-size: .85rem !important;
}
.nav__cta:hover { background: #c05f4a !important; }

.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav__burger span { display: block; width: 24px; height: 2px; background: #fff; transition: all var(--transition); border-radius: 2px; }
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
    display: none;
    flex-direction: column;
    background: var(--ocean);
    padding: 16px 24px 24px;
    gap: 16px;
}
.nav__mobile a { color: rgba(255,255,255,0.9); font-weight: 500; font-size: 1rem; }
.nav__mobile.open { display: flex; }

/* =========================================
   HERO
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
}

.hero__bg-img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(26,74,92,0.75) 0%,
        rgba(26,74,92,0.45) 50%,
        rgba(26,74,92,0.70) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 720px;
    padding: 0 24px;
}

.hero__eyebrow {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ocean-light);
    margin-bottom: 20px;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero__title em {
    font-style: italic;
    color: var(--ocean-light);
}

.hero__sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.82);
    margin-bottom: 40px;
    line-height: 1.7;
}

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

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.6);
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hero__scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.7); }
}

/* =========================================
   ABOUT
   ========================================= */
.about {
    padding: 120px 0;
    background: var(--white);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about__images {
    position: relative;
}

.about__img-main img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.about__img-secondary {
    position: absolute;
    bottom: -32px;
    right: -32px;
    width: 240px;
}

.about__img-secondary img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-lg);
}

.about__badge {
    position: absolute;
    bottom: -16px;
    left: -16px;
    background: var(--coral);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow);
}

.about__badge-num { font-size: 1.1rem; font-weight: 700; }
.about__badge-text { font-size: .7rem; opacity: .85; }

.about__text p {
    color: var(--ink-mid);
    margin-bottom: 16px;
    font-size: 1.02rem;
}

.about__features {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about__feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.about__feature-icon { font-size: 1.5rem; line-height: 1; }

.about__feature strong {
    display: block;
    color: var(--ocean);
    font-weight: 600;
    margin-bottom: 2px;
}

.about__feature span {
    font-size: .88rem;
    color: var(--ink-light);
}

/* =========================================
   MENU
   ========================================= */
.menu {
    padding: 120px 0;
    background: var(--sand);
}

.menu__tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.menu__tab {
    padding: 10px 24px;
    border-radius: 40px;
    font-size: .88rem;
    font-weight: 500;
    color: var(--ink-mid);
    background: rgba(255,255,255,0.6);
    border: 1.5px solid transparent;
    transition: all var(--transition);
}

.menu__tab:hover { border-color: var(--ocean-mid); color: var(--ocean); }

.menu__tab.active {
    background: var(--ocean);
    color: #fff;
    border-color: var(--ocean);
}

.menu__panel { display: none; }
.menu__panel.active { display: block; animation: fadeIn .35s ease; }

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

.menu__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 2px;
    background: var(--sand-dark);
    border-radius: 12px;
    overflow: hidden;
}

.menu__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    background: var(--white);
    gap: 24px;
    transition: background var(--transition);
}
.menu__item:hover { background: #FEFCF8; }

.menu__item-info h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ocean);
    margin-bottom: 4px;
}

.menu__item-info p { font-size: .88rem; color: var(--ink-light); }

.menu__item-price {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--coral);
    white-space: nowrap;
}

/* =========================================
   GALLERY
   ========================================= */
.gallery {
    padding: 120px 0 0;
    background: var(--white);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 260px 260px;
    gap: 6px;
    margin-top: 48px;
}

.gallery__item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }

.gallery__item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}

.gallery__item:hover img { transform: scale(1.06); }

.gallery__hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26,74,92,0.5);
    color: #fff;
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery__item:hover .gallery__hover { opacity: 1; }

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox__close, .lightbox__prev, .lightbox__next {
    position: absolute;
    color: #fff;
    font-size: 2rem;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: rgba(255,255,255,0.22); }

.lightbox__close { top: 24px; right: 24px; }
.lightbox__prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 24px; top: 50%; transform: translateY(-50%); }

/* =========================================
   REVIEWS
   ========================================= */
.reviews {
    padding: 120px 0;
    background: var(--ocean);
}

.reviews .section-eyebrow { color: var(--ocean-light); }
.reviews .section-title { color: #fff; }

.reviews__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.review__card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 28px;
    backdrop-filter: blur(6px);
    transition: transform var(--transition), background var(--transition);
}
.review__card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.12); }

.review__stars { margin-bottom: 16px; font-size: 1.1rem; }
.star--on { color: #F5C842; }
.star--off { color: rgba(255,255,255,0.2); }

.review__text {
    color: rgba(255,255,255,0.85);
    font-size: .95rem;
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.review__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review__avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--ocean-mid);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.review__author strong { display: block; color: #fff; font-size: .9rem; }
.review__author span { color: rgba(255,255,255,0.5); font-size: .8rem; }

.reviews__cta { text-align: center; }

/* =========================================
   CONTACT
   ========================================= */
.contact {
    padding: 120px 0;
    background: var(--sand);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 32px;
}

.contact__detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact__icon { font-size: 1.4rem; line-height: 1; margin-top: 2px; }

.contact__detail strong {
    display: block;
    color: var(--ocean);
    font-weight: 600;
    margin-bottom: 4px;
}

.contact__detail span, .contact__detail a {
    color: var(--ink-mid);
    font-size: .95rem;
    line-height: 1.6;
}

.contact__detail a:hover { color: var(--coral); }

/* SCHEDULE */
.schedule {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.schedule__row {
    display: flex;
    justify-content: space-between;
    font-size: .88rem;
    color: var(--ink-mid);
    padding: 5px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.schedule__row--today {
    color: var(--ocean);
    font-weight: 600;
}

.schedule__row--today em { font-style: normal; color: var(--coral); }

/* FORM */
.contact__form-wrap {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.contact__form-wrap h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--ocean);
    margin-bottom: 28px;
}

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

.form__group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.form__group label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--ink-mid);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.form__group input,
.form__group select,
.form__group textarea {
    padding: 12px 16px;
    border: 1.5px solid var(--sand-dark);
    border-radius: var(--radius);
    font-size: .95rem;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
    transition: border-color var(--transition);
    outline: none;
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus { border-color: var(--ocean-mid); }

.form__group textarea { resize: vertical; }

.form__success {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(45,122,140,0.1);
    border: 1.5px solid var(--ocean-mid);
    border-radius: 10px;
    padding: 20px 24px;
    color: var(--ocean);
}

.form__success span { font-size: 1.5rem; }

.form__error {
    background: rgba(212,113,90,0.1);
    border: 1.5px solid var(--coral);
    border-radius: 10px;
    padding: 14px 20px;
    color: var(--coral);
    font-size: .9rem;
    margin-bottom: 20px;
}

/* =========================================
   MAP
   ========================================= */
.map-wrap {
    line-height: 0;
    filter: saturate(0.7);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background: var(--ink);
    color: rgba(255,255,255,0.65);
    padding: 56px 0 0;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: #fff;
    font-weight: 700;
}

.footer__brand .nav__logo-wave {
    color: var(--ocean-light);
    font-size: 1.6rem;
}

.footer__brand p { font-size: .9rem; line-height: 1.7; margin-top: 8px; }

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

.footer__links a {
    font-size: .9rem;
    transition: color var(--transition);
}
.footer__links a:hover { color: var(--ocean-light); }

.footer__social {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.footer__social a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: background var(--transition), color var(--transition);
}
.footer__social a:hover { background: var(--ocean-mid); color: #fff; }

.footer__bottom {
    padding: 20px 24px;
    text-align: center;
    font-size: .8rem;
    color: rgba(255,255,255,0.35);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .about__grid, .contact__grid { grid-template-columns: 1fr; gap: 48px; }
    .about__images { max-width: 540px; }
    .footer__inner { grid-template-columns: 1fr 1fr; }
    .footer__brand { grid-column: span 2; }
}

@media (max-width: 768px) {
    .nav__links { display: none; }
    .nav__burger { display: flex; }

    .hero__title { font-size: clamp(2.4rem, 9vw, 4rem); }

    .gallery__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .gallery__item--tall { grid-row: span 1; }
    .gallery__item--wide { grid-column: span 2; }

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

    .about__img-secondary { position: static; width: 100%; margin-top: -60px; padding: 0 24px; }
    .about__img-secondary img { height: 200px; }
    .about__badge { bottom: auto; top: -12px; left: 16px; }

    .form__row { grid-template-columns: 1fr; }
    .contact__form-wrap { padding: 28px 20px; }

    .footer__inner { grid-template-columns: 1fr; }
    .footer__brand { grid-column: span 1; }

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

    .about, .menu, .gallery, .reviews, .contact { padding: 80px 0; }
}

@media (max-width: 480px) {
    .hero__actions { flex-direction: column; align-items: center; }
    .gallery__grid { grid-template-columns: 1fr; }
    .gallery__item--wide { grid-column: span 1; }
    .menu__tab { padding: 8px 16px; font-size: .82rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================
   SCROLL REVEAL (añadido por JS)
   ========================================= */
.reveal-ready {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal-ready.revealed {
    opacity: 1;
    transform: none;
}

/* NAV active link */
.nav__links a.nav-active {
    color: #fff;
    border-bottom: 2px solid var(--ocean-light);
    padding-bottom: 2px;
}

/* =========================================
   INTEGRACIÓN WEBSHIELD
   ========================================= */
.nav__private {
    padding-left: 18px;
    border-left: 1px solid rgba(255,255,255,0.25);
}

.form__trap {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.map-frame {
    display: block;
    width: 100%;
    border: 0;
}

body.lightbox-open {
    overflow: hidden;
}

.lightbox img {
    transition: opacity 0.18s ease;
}

.lightbox img.is-switching {
    opacity: 0;
}

@media (max-width: 1080px) {
    .nav__links { gap: 22px; }
}
