/* ============================================
   DON INACIO — RESERVACIONES
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
    --gold:       #c8962a;
    --gold-light: #e8b84b;
    --cream:      #faf6ee;
    --dark:       #1a1208;
    --dark-mid:   #2c1e0a;
    --text:       #3a2e1a;
    --muted:      #7a6a50;
    --white:      #ffffff;
    --header-h:   64px;
    --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spr:   cubic-bezier(0.34, 1.56, 0.64, 1);
    --err:        #c0392b;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; background: var(--cream); color: var(--text); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ============================================
   HEADER
   ============================================ */
.res-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 36px;
    z-index: 900;
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}
.res-header.scrolled {
    background: rgba(20,12,3,0.97);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 24px rgba(0,0,0,0.45);
}

.header-back {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,0.85);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 8px 16px 8px 10px;
    border-radius: 40px;
    border: 1px solid rgba(255,255,255,0.22);
    transition: all 0.25s ease;
}
.header-back .material-symbols-outlined { font-size: 1.1rem; }
.header-back:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.45); color: #fff; }

.header-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.header-logo img {
    height: 40px;
    filter: drop-shadow(0 2px 8px rgba(200,150,42,0.35));
    transition: transform 0.3s var(--ease-spr);
}
.header-logo:hover img { transform: scale(1.06); }

.header-cta {
    display: flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--dark);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 9px 18px;
    border-radius: 40px;
    transition: transform 0.3s var(--ease-spr), box-shadow 0.3s;
}
.header-cta .material-symbols-outlined { font-size: 1rem; }
.header-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200,150,42,0.45); }

/* ---- Header right group ---- */
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ---- Language Switcher ---- */
.lang-switcher { position: relative; }

.lang-current {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255,255,255,0.85);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 8px 12px;
    border-radius: 40px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.25s ease;
    background: none;
    cursor: pointer;
    font-family: inherit;
}
.lang-current:hover,
.lang-switcher.open .lang-current {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.4);
    color: #fff;
}
.lang-flag { font-size: 1rem; line-height: 1; }
.lang-code { font-size: 0.72rem; }
.lang-arrow { font-size: 1rem !important; transition: transform 0.25s ease; }
.lang-switcher.open .lang-arrow { transform: rotate(180deg); }

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(20,12,3,0.97);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(200,150,42,0.25);
    border-radius: 12px;
    padding: 6px;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 999;
}
.lang-switcher.open .lang-dropdown {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}
.lang-option {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    border-radius: 8px;
    color: rgba(255,255,255,0.75);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: all 0.18s ease;
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    width: 100%;
    text-align: left;
}
.lang-option:hover { background: rgba(255,255,255,0.08); color: #fff; }
.lang-option.active { background: rgba(200,150,42,0.15); color: #e8b84b; }

/* ============================================
   HERO
   ============================================ */
.res-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.res-hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(15,8,2,0.93) 0%, rgba(15,8,2,0.55) 55%, rgba(15,8,2,0.15) 100%),
        url('../extern-arch/paisaje-portada2.webp') center / cover no-repeat;
    animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1.0); } to { transform: scale(1.06); } }

.res-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 8%;
    padding-top: var(--header-h);
    max-width: 580px;
}
.res-hero-label {
    font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.24em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 16px;
}
.res-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 900; color: #fff;
    line-height: 1.05; margin-bottom: 20px;
}
.res-hero-title em { font-style: italic; color: var(--gold-light); }
.res-hero-desc { color: rgba(255,255,255,0.62); font-size: 0.93rem; line-height: 1.85; }

.res-hero-scroll {
    position: absolute; bottom: 26px; left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.45);
    animation: bounce 2.2s ease-in-out infinite; z-index: 2;
}
.res-hero-scroll .material-symbols-outlined { font-size: 2rem; }
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(9px); }
}

/* ============================================
   SECCIÓN PRINCIPAL
   ============================================ */
.res-section { padding: 80px 6%; background: var(--cream); }

.res-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: start;
}

/* ── INFO LATERAL ── */
.res-info { padding-top: 10px; }

.info-label {
    font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.24em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 12px;
}
.info-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 900; color: var(--dark);
    line-height: 1.1; margin-bottom: 44px;
}

.info-items { display: flex; flex-direction: column; gap: 28px; }

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideRight 0.5s var(--ease-out) forwards;
}
.info-item:nth-child(1) { animation-delay: 0.1s; }
.info-item:nth-child(2) { animation-delay: 0.2s; }
.info-item:nth-child(3) { animation-delay: 0.3s; }
.info-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideRight {
    to { opacity: 1; transform: translateX(0); }
}

.info-icon {
    width: 42px; height: 42px;
    background: rgba(200,150,42,0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.info-icon .material-symbols-outlined { font-size: 1.1rem; color: var(--gold); }

.info-item strong {
    display: block; font-size: 0.85rem;
    font-weight: 700; color: var(--dark); margin-bottom: 4px;
}
.info-item p { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }
.info-item a { font-size: 0.82rem; color: var(--gold); font-weight: 600; }
.info-item a:hover { color: var(--gold-light); }

/* Línea decorativa */
.res-info::after {
    content: '';
    display: block;
    width: 52px; height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
    margin-top: 48px;
}

/* ── CARD DEL FORMULARIO ── */
.res-form-wrap {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 56px rgba(58,46,26,0.11);
    border: 1px solid rgba(200,150,42,0.1);
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.6s 0.2s var(--ease-out) forwards;
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.form-card-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-mid) 100%);
    padding: 36px 36px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.form-card-header::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(200,150,42,0.12) 0%, transparent 65%);
    pointer-events: none;
}
.form-card-header img {
    height: 58px; margin: 0 auto 18px;
    filter: drop-shadow(0 2px 10px rgba(200,150,42,0.45));
    position: relative; z-index: 1;
}
.form-card-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.65rem; font-weight: 700;
    color: var(--white); margin-bottom: 6px;
    position: relative; z-index: 1;
}
.form-card-header p {
    font-size: 0.81rem; color: rgba(255,255,255,0.48);
    position: relative; z-index: 1;
}

/* ── FORM BODY ── */
.res-form {
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

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

.form-group label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text);
}
.form-group label .material-symbols-outlined { font-size: 1rem; color: var(--gold); }

.req  { color: var(--gold); margin-left: 2px; }
.opt  { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 0.77rem; color: var(--muted); }

/* ── Inputs ── */
.form-group input[type="text"],
.form-group input[type="date"],
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid rgba(58,46,26,0.15);
    border-radius: 10px;
    font-size: 0.92rem;
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    background: var(--cream);
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.form-group input[type="text"]::placeholder,
.form-group textarea::placeholder { color: var(--muted); }

.form-group input[type="text"]:focus,
.form-group input[type="date"]:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200,150,42,0.12);
    background: var(--white);
}

/* Estado inválido */
.form-group.invalid input,
.form-group.invalid textarea,
.form-group.invalid .select-wrap select,
.form-group.invalid .counter-wrap {
    border-color: var(--err) !important;
    box-shadow: 0 0 0 3px rgba(192,57,43,0.1) !important;
}
.form-error {
    display: none;
    font-size: 0.74rem;
    color: var(--err);
    font-weight: 500;
}
.form-group.invalid .form-error { display: block; }

/* ── Select ── */
.select-wrap { position: relative; }
.select-wrap select {
    width: 100%;
    padding: 13px 44px 13px 16px;
    border: 1.5px solid rgba(58,46,26,0.15);
    border-radius: 10px;
    font-size: 0.92rem;
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    background: var(--cream);
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.select-wrap select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200,150,42,0.12);
    background: var(--white);
}
.select-arrow {
    position: absolute; right: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--gold); font-size: 1.1rem;
    pointer-events: none;
}

/* ── Contador de personas ── */
.counter-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid rgba(58,46,26,0.15);
    border-radius: 10px;
    overflow: hidden;
    background: var(--cream);
    transition: border-color 0.25s, box-shadow 0.25s;
}
.counter-wrap:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200,150,42,0.12);
}
.counter-btn {
    width: 48px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
    transition: background 0.2s;
    flex-shrink: 0;
}
.counter-btn:hover { background: rgba(200,150,42,0.1); }
.counter-btn .material-symbols-outlined { font-size: 1.2rem; }

.counter-wrap input[type="number"] {
    flex: 1;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    font-family: 'Cormorant Garamond', serif;
    color: var(--dark);
    padding: 0;
    outline: none;
    box-shadow: none !important;
}
.counter-wrap input[type="number"]::-webkit-inner-spin-button,
.counter-wrap input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; }

/* ── Textarea ── */
.form-group textarea { resize: vertical; min-height: 90px; }

/* ── Botón submit ── */
.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #25d366 0%, #1ebc59 100%);
    color: var(--white);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(37,211,102,0.3);
    transition: transform 0.3s var(--ease-spr), box-shadow 0.3s;
    margin-top: 4px;
}
.btn-submit .material-symbols-outlined { font-size: 1.1rem; }
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,211,102,0.45); }
.btn-submit:active { transform: translateY(0); }

.form-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.73rem;
    color: var(--muted);
    text-align: center;
}
.form-note .material-symbols-outlined { font-size: 0.9rem; color: var(--gold); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer { background: var(--dark); padding: 60px 6% 0; }
.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    max-width: 1100px; margin: 0 auto;
    padding-bottom: 48px;
}
.footer-brand img { height: 48px; margin-bottom: 16px; filter: drop-shadow(0 2px 8px rgba(200,150,42,0.25)); }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.38); line-height: 1.7; }
.footer-nav h4, .footer-contact h4 {
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--gold-light); margin-bottom: 16px;
}
.footer-nav ul li, .footer-contact ul li {
    display: flex; align-items: center; gap: 8px;
    color: rgba(255,255,255,0.42); font-size: 0.86rem; margin-bottom: 10px;
}
.footer-nav ul li a { transition: color 0.2s; }
.footer-nav ul li a:hover { color: var(--gold-light); }
.footer-contact ul li .material-symbols-outlined { font-size: 1rem; color: var(--gold); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 20px 0; text-align: center;
    max-width: 1100px; margin: 0 auto;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.22); }

/* ============================================
   SCROLL TOP
   ============================================ */
.scroll-top {
    position: fixed; bottom: 30px; right: 26px;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(200,150,42,0.92);
    color: var(--dark);
    border-radius: 50%; z-index: 800;
    box-shadow: 0 4px 16px rgba(200,150,42,0.35);
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s, transform 0.3s var(--ease-spr);
}
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover { transform: translateY(-3px) scale(1.08); }
.scroll-top .material-symbols-outlined { font-size: 1.2rem; }

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */
@media (max-width: 900px) {
    .res-container { grid-template-columns: 1fr; gap: 48px; }
    .res-info::after { display: none; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 768px) {
    :root { --header-h: 56px; }

    .res-header { padding: 0 20px; }
    .header-back span:last-child { display: none; }
    .header-back { padding: 8px 10px; gap: 0; }
    .header-cta span:last-child { display: none; }
    .header-cta { padding: 9px 12px; gap: 0; border-radius: 50%; }

    .res-hero { height: 65vh; }
    .res-hero-bg {
        background:
            linear-gradient(to bottom, rgba(15,8,2,0.7) 0%, rgba(15,8,2,0.92) 100%),
            url('../extern-arch/paisaje-portada2.webp') center / cover no-repeat;
    }
    .res-hero-content { padding: 0 6%; padding-top: calc(var(--header-h) + 16px); }

    .res-section { padding: 56px 5%; }
    .res-form { padding: 24px 20px; gap: 18px; }
    .form-card-header { padding: 28px 20px 22px; }

    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
    .footer-brand { grid-column: auto; }
}

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