/* =========================================
   NAVIDADES HOTEL MAJADAHONDA 2026
   CSS MAESTRO - style.css
   ========================================= */

:root { 
    --emerald: #1A4D3E; 
    --gold: #C5A059; 
    --gold-light: #E8D5A3;
    --cream: #F4F0E7; 
    --text: #2C2C2C; 
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: 'Lato', sans-serif; 
    background: var(--cream); 
    color: var(--text); 
    line-height: 1.6; 
}

a { text-decoration: none; color: inherit; }

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

/* HEADER CENTRADO */
.page-header {
    background: var(--cream);
    width: 100%;
    padding: 30px 0 25px 0;
    border-bottom: 2px solid var(--gold-light);
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.logo-wrapper { flex-shrink: 0; text-align: center; }

.navidad-logo {
    display: block;
    max-width: 400px;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--emerald);
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: none;
}

.back-button:hover {
    background: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 77, 62, 0.2);
}

/* HERO */
.hero { text-align: center; margin-bottom: 50px; padding: 30px 20px; }
.hero::after { content: '✦'; display: block; color: var(--gold); font-size: 1.8rem; margin-top: 15px; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: 2.8rem; color: var(--emerald); margin-bottom: 15px; margin-top: 0; }
.hero .tagline { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--gold); font-style: italic; line-height: 1.5; max-width: 600px; margin: 0 auto; }

/* GRID INDEX */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-top: 40px; }
.card { background: #fff; border-radius: 8px; padding: 35px 30px; border-top: 4px solid var(--gold); box-shadow: 0 8px 30px rgba(26, 77, 62, 0.08); transition: transform 0.3s ease, box-shadow 0.3s ease; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(26, 77, 62, 0.15); }
.card h3 { font-family: 'Playfair Display', serif; font-size: 1.6rem; margin: 0 0 15px 0; color: var(--emerald); }
.card p { color: #666; flex-grow: 1; font-size: 0.95rem; line-height: 1.6; margin-bottom: 20px; }
.card .price { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: var(--gold); margin-bottom: 20px; padding-top: 15px; border-top: 1px solid var(--gold-light); }
.card .btn { display: block; background: var(--emerald); color: #fff; padding: 14px 24px; border-radius: 6px; text-align: center; font-weight: 700; text-decoration: none; letter-spacing: 1px; text-transform: uppercase; font-size: 0.85rem; transition: background 0.3s; border: none; cursor: pointer; }
.card .btn:hover { background: var(--gold); }

/* HIGHLIGHTS */
.highlights { background: #fff; border-radius: 8px; padding: 35px 40px; border-left: 5px solid var(--gold); box-shadow: 0 8px 30px rgba(26, 77, 62, 0.08); margin-bottom: 35px; }
.highlights h2 { font-family: 'Playfair Display', serif; color: var(--emerald); margin-top: 0; margin-bottom: 25px; font-size: 1.6rem; }
.highlights ul { list-style: none; padding: 0; margin: 0; }
.highlights li { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--emerald); padding: 12px 0; border-bottom: 1px solid #e8e0d5; display: flex; align-items: center; gap: 15px; letter-spacing: 0.5px; }
.highlights li:last-child { border-bottom: none; }
.highlights li::before { content: '✦'; color: var(--gold); font-size: 1rem; }

/* MENU SECTIONS */
.menu-section { background: #fff; border-radius: 8px; padding: 40px; border-top: 4px solid var(--gold); box-shadow: 0 8px 30px rgba(26, 77, 62, 0.08); margin-bottom: 30px; }
.menu-section h2 { font-family: 'Playfair Display', serif; color: var(--emerald); text-align: center; font-size: 1.8rem; margin-top: 0; margin-bottom: 30px; letter-spacing: 1px; }
.menu-price { font-size: 1.3rem; color: var(--gold); display: block; margin-top: 10px; font-family: 'Playfair Display', serif; }

/* DISH */
.dish { margin-bottom: 25px; padding-bottom: 25px; border-bottom: 1px dashed var(--gold-light); text-align: center; }
.dish:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.dish h4 { margin: 0 0 8px 0; font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--emerald); letter-spacing: 1px; text-transform: uppercase; }
.dish p { margin: 0; color: #666; font-size: 1rem; font-style: italic; }

/* ESTACIONES & APERITIVOS (Empresas) */
.estacion-title { color: var(--emerald); font-size: 1.1rem; font-weight: 700; display: block; margin-bottom: 8px; margin-top: 20px; text-transform: uppercase; letter-spacing: 1px; font-family: 'Playfair Display', serif; }
.estacion-title:first-of-type { margin-top: 0; }
.aperitivo-list { list-style: none; padding: 0; margin: 0; text-align: left; }
.aperitivo-list li { padding: 10px 0; border-bottom: 1px dotted var(--gold-light); color: #555; font-size: 0.95rem; font-style: normal; position: relative; padding-left: 20px; }
.aperitivo-list li:last-child { border-bottom: none; }
.aperitivo-list li::before { content: ''; color: var(--gold); position: absolute; left: 0; font-size: 0.8rem; }

/* SERVICIOS (Empresas) */
.service-item { background: var(--cream); padding: 20px; border-radius: 8px; margin-bottom: 15px; border-left: 4px solid var(--gold); text-align: left; }
.service-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--emerald); font-weight: 700; margin-bottom: 8px; display: block; }
.service-detail { color: #666; font-size: 0.95rem; line-height: 1.5; display: block; margin-bottom: 5px; }
.service-price { color: var(--gold); font-weight: 700; font-size: 1.1rem; display: block; margin-top: 5px; }

/* PRECIOS & CONTACTO */
.prices-box { background: #fff; border-radius: 8px; padding: 35px; border-top: 4px solid var(--gold); box-shadow: 0 8px 30px rgba(26, 77, 62, 0.08); margin-bottom: 30px; text-align: center; }
.prices-box h3 { font-family: 'Playfair Display', serif; color: var(--emerald); margin-top: 0; margin-bottom: 20px; }
.prices { display: flex; justify-content: center; gap: 40px; margin: 25px 0; flex-wrap: wrap; }
.price-item { background: var(--cream); padding: 20px 35px; border-radius: 6px; border: 1px solid var(--gold-light); min-width: 180px; }
.price-item strong { display: block; font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--emerald); }
.price-item span { font-size: 0.85rem; color: #666; text-transform: uppercase; letter-spacing: 1.5px; }
.iva-note { color: #888; font-size: 0.85rem; margin-top: 15px; letter-spacing: 0.5px; }

.contact-box { background: var(--emerald); color: #fff; border-radius: 8px; padding: 35px; text-align: center; }
.contact-box h3 { font-family: 'Playfair Display', serif; margin-top: 0; color: var(--gold); margin-bottom: 20px; }
.contact-box a { color: #fff; text-decoration: none; display: block; margin: 8px 0; font-size: 1.1rem; transition: color 0.3s; }
.contact-box a:hover { color: var(--gold-light); }
.contact-box .domain { margin-top: 25px; font-size: 0.9rem; opacity: 0.8; letter-spacing: 1.5px; }

/* POPUP */
.ig-popup-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26, 77, 62, 0.7); backdrop-filter: blur(4px);
    z-index: 9999; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease;
}
.ig-popup-overlay.active { opacity: 1; visibility: visible; }
.ig-popup-content {
    background: #F4F0E7; border: 2px solid #C5A059; border-radius: 12px;
    padding: 40px 30px; max-width: 480px; width: 90%; text-align: center;
    position: relative; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px); transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Lato', 'Segoe UI', Arial, sans-serif;
}
.ig-popup-overlay.active .ig-popup-content { transform: scale(1) translateY(0); }
.ig-popup-close {
    position: absolute; top: 15px; right: 15px; background: none; border: none;
    font-size: 1.8rem; color: #1A4D3E; cursor: pointer; line-height: 1; transition: color 0.3s, transform 0.3s;
}
.ig-popup-close:hover { color: #C5A059; transform: rotate(90deg); }
.ig-popup-title {
    font-family: 'Playfair Display', Georgia, serif; font-size: 2rem;
    color: #1A4D3E; margin: 0 0 10px 0; font-weight: 700;
}
.ig-popup-subtitle {
    font-family: 'Playfair Display', Georgia, serif; font-size: 1.1rem;
    color: #C5A059; font-style: italic; margin: 0 0 20px 0;
}
.ig-popup-text { font-size: 0.95rem; color: #555; line-height: 1.6; margin-bottom: 30px; }
.ig-popup-buttons { display: flex; flex-direction: column; gap: 15px; }
.ig-popup-btn {
    display: block; width: 100%; padding: 16px 20px; text-align: center;
    text-decoration: none; font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    border-radius: 6px; transition: all 0.3s ease;
}
.ig-popup-btn.primary { background-color: #1A4D3E; color: #ffffff !important; border: 2px solid #1A4D3E; }
.ig-popup-btn.primary:hover { background-color: #C5A059; border-color: #C5A059; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(197, 160, 89, 0.4); }
.ig-popup-btn.secondary { background-color: transparent; color: #1A4D3E !important; border: 2px solid #1A4D3E; }
.ig-popup-btn.secondary:hover { background-color: #1A4D3E; color: #ffffff !important; transform: translateY(-2px); }
.ig-popup-decoration { font-size: 2.5rem; margin-bottom: 10px; display: block; }

/* RESPONSIVE */
@media (max-width: 600px) {
    .container { padding: 25px 15px; }
    .navidad-logo { max-width: 300px; }
    .back-button { width: 100%; max-width: 280px; justify-content: center; padding: 14px 24px; }
    .hero h1 { font-size: 2rem; }
    .hero .tagline { font-size: 1rem; }
    .hero { padding: 20px 15px; }
    .menu-section, .highlights, .prices-box { padding: 25px 20px; }
    .menu-section h2 { font-size: 1.5rem; }
    .prices { flex-direction: column; align-items: center; gap: 20px; }
    .price-item { width: 100%; max-width: 280px; }
    .grid { grid-template-columns: 1fr; }
    .dish h4 { font-size: 1.05rem; }
    .dish p { font-size: 0.9rem; }
    .estacion-title { font-size: 1rem; }
    .service-item { padding: 15px; }
    .ig-popup-content { padding: 30px 20px; width: 95%; }
    .ig-popup-title { font-size: 1.6rem; }
}

@media (min-width: 601px) and (max-width: 900px) {
    .navidad-logo { max-width: 350px; }
    .grid { grid-template-columns: repeat(2, 1fr); }
}