﻿/* Ecotel Villa Romana — Estilo "Lujo Moderno" v3.0 (Final y Optimizado) */

:root {
  --bg-main: #FFFFFF;
  --bg-dark: #111111;
  --bg-light-gray: #f9f9f9;
  --text-light: #FFFFFF;
  --text-dark: #1C1C1C;
  --text-muted: #888888;
  --accent-gold: #D1B07E; /* Un oro más cálido y elegante */
  --accent-gold-darker: #b99766;
  --line: #EAEAEA;
  --font-main: 'Montserrat', sans-serif;
}

/* --- 1. Base y Layout General --- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-main); color: var(--text-dark); background: var(--bg-main); line-height: 1.7; -webkit-font-smoothing: antialiased; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-grande { max-width: 1440px; }
section { padding: 120px 0; overflow: hidden; }
img { max-width: 100%; display: block; }

/* --- 2. Header (con efecto de scroll) --- */
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; padding: 20px 0; transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease; }
.site-header.scrolled { background-color: rgba(255, 255, 255, 1); padding: 15px 0; box-shadow: 0 4px 12px rgba(0,0,0,0.05); border-bottom: 1px solid var(--line); }
.site-header.scrolled .logo { filter: none; }
.site-header.scrolled .nav-links a { color: var(--text-dark); }
.site-header.scrolled .nav-links a:hover { color: var(--accent-gold); }
.site-header.scrolled .nav-toggle { color: var(--text-dark); }
.nav { display: flex; align-items: center; justify-content: space-between; }
.brand .logo { height: 90px; filter: brightness(0) invert(1); transition: filter 0.4s ease; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { color: var(--text-light); text-decoration: none; font-weight: 600; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent-gold); }
.nav-toggle { background: none; border: none; color: white; font-size: 24px; cursor: pointer; z-index: 101; display: none; transition: color 0.4s ease; }

/* --- 3. Hero Section (Video y Layout Editorial) --- */
.hero { height: 100vh; position: relative; display: flex; align-items: center; color: var(--text-light); overflow: hidden; }
.video-background { position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; transform: translate(-50%, -50%); z-index: -2; pointer-events: none; }
.video-background iframe { width: 100vw; height: 56.25vw; min-height: 100vh; min-width: 177.77vh; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.video-fallback { width: 100%; height: 100%; object-fit: cover; }
.hero .overlay.dark-gradient { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,0.7) 30%, rgba(0,0,0,0.3) 70%, rgba(0,0,0,0.1)); z-index: -1; }
.hero-content.left-aligned { z-index: 2; text-align: left; max-width: 600px; }
.hero-kicker { font-size: 14px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--accent-gold); margin-bottom: 16px; }
.hero-title { font-size: clamp(48px, 7vw, 80px); font-weight: 700; line-height: 1.1; margin: 0 0 24px; text-transform: uppercase; letter-spacing: 2px; }
.hero-subtitle { font-size: 1.2rem; line-height: 1.6; color: rgba(255,255,255,0.85); margin-bottom: 40px; }
.btn-hero-main { background: var(--accent-gold); color: white; padding: 16px 32px; border-radius: 12px; text-decoration: none; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s ease; }
.btn-hero-main:hover { background: var(--accent-gold-darker); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

/* --- 4. Estilos Generales de Secciones --- */
.kicker { display: flex; align-items: center; gap: 16px; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); }
.kicker .line { width: 40px; height: 1.5px; background: var(--accent-gold); }
.section-title { font-size: clamp(36px, 5vw, 60px); font-weight: 700; margin: 0; }

/* --- 5. Sección "La Villa" --- */
.villa-section-final { background: var(--bg-main); }
.villa-grid-final { display: grid; grid-template-columns: 1fr 1.3fr; gap: 100px; align-items: center; }
.villa-content-final { text-align: left; }
.villa-title-final { font-family: var(--font-main); font-size: clamp(36px, 5vw, 52px); font-weight: 700; line-height: 1.2; margin: 0 0 32px 0; color: var(--text-dark); }
.villa-title-final span { font-weight: 500; color: var(--text-muted); }
.villa-intro-final { font-size: 1.1rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 40px; }
.villa-details-final h3 { font-size: 1.5rem; font-weight: 600; margin: 40px 0 16px 0; color: var(--text-dark); border-top: 1px solid var(--line); padding-top: 40px; }
.villa-details-final p { color: var(--text-muted); line-height: 1.8; }
.amenities-list-final { list-style: none; padding-left: 0; margin: 24px 0; }
.amenities-list-final li { padding-left: 35px; position: relative; margin-bottom: 16px; font-size: 1rem; color: var(--text-muted); }
.amenities-list-final li strong { color: var(--text-dark); }
.amenities-list-final li::before { font-family: 'Remixicon'; content: '\EA59'; position: absolute; left: 0; top: 2px; font-size: 20px; color: var(--accent-gold); }
.amenities-list-final li:nth-child(1)::before { content: '\EA59'; }
.amenities-list-final li:nth-child(2)::before { content: '\EBCC'; }
.amenities-list-final li:nth-child(3)::before { content: '\EC3B'; }
.amenities-list-final li:nth-child(4)::before { content: '\EA52'; }
.amenities-list-final li:nth-child(5)::before { content: '\F28B'; }
.note-final { font-size: 0.9rem; color: var(--text-muted); background: var(--bg-light-gray); padding: 16px; border-radius: 8px; margin-top: 32px; }
.link-cta-final { color: var(--text-dark); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; margin-top: 40px; transition: color 0.3s; }
.link-cta-final:hover { color: var(--accent-gold); }
.link-cta-final i { transition: transform 0.3s; }
.link-cta-final:hover i { transform: translateX(5px); }
.image-wrapper-final { border-radius: 24px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.1); display: flex; }
.image-wrapper-final img { width: 100%; height: 100%; object-fit: cover; }

/* --- 6. Sección "Galería" --- */
.gallery-section { background: var(--bg-light-gray); }
.gallery-header { text-align: center; margin-bottom: 60px; }
.gallery-header .kicker { justify-content: center; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.gallery-card { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4/5; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-card:hover img { transform: scale(1.05); }
.card-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 40px 30px 30px; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); color: white; }
.card-overlay h3 { margin: 0; font-size: 1.8rem; }

/* --- 7. Sección "Disponibilidad" (con Calendario y Formulario) --- */
.availability-section { background: var(--bg-light-gray); }
.availability-header { text-align: center; margin-bottom: 60px; }
.availability-header .kicker { justify-content: center; }
.availability-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: flex-start; }
.calendar-wrapper { background: #fff; border-radius: 24px; box-shadow: 0 30px 60px rgba(0,0,0,0.08); }
.cal { padding: 24px; }
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.cal-label { font-weight: 700; font-size: 1.2rem; }
.cal-nav-btn { background: none; border: none; font-size: 24px; cursor: pointer; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.cal-week { font-size: 12px; color: var(--text-muted); font-weight: 600; margin-bottom: 10px; }
.cal-grid { gap: 6px; }
.cal-day { user-select: none; border-radius: 50%; aspect-ratio: 1 / 1; display: grid; place-content: center; border: 2px solid transparent; background: #fff; cursor: pointer; transition: all .2s; }
.cal-day:not(.disabled):hover { background: var(--bg-light-gray); }
.cal-day.disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.cal-day.booked { background: #fde2e2; }
.cal-day.selected { background: var(--accent-gold); color: white; border-color: var(--accent-gold-darker); }
.cal-legend { margin-top: 16px; display: flex; gap: 16px; align-items: center; font-size: 12px; }
.cal-legend .box { width: 14px; height: 14px; border-radius: 4px; }
.cal-legend .box.booked { background: #fde2e2; }
.cal-legend .box.selected { background: var(--accent-gold); }
.form-wrapper { text-align: left; }
.form-title { font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.form-subtitle { color: var(--text-muted); margin-bottom: 32px; }
.reserve-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.reserve-form .form-group { margin-bottom: 0; }
.reserve-form label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 14px; }
.reserve-form input, .reserve-form select { width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 12px; font-family: var(--font-main); font-size: 1rem; -webkit-appearance: none; -moz-appearance: none; appearance: none; background-color: #fff; }
.reserve-form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3Cpath d='M12 13.172l4.95-4.95 1.414 1.414L12 16 5.636 9.636 7.05 8.222z' fill='rgba(136,136,136,1)'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 24px; padding-right: 48px; }
.btn-submit { width: 100%; background: var(--accent-gold); color: white; border: none; padding: 16px; border-radius: 12px; font-weight: 700; font-size: 1rem; cursor: pointer; text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s; }
.btn-submit:hover { background: var(--accent-gold-darker); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.form-feedback { margin-top: 16px; font-weight: 600; font-size: 0.9rem; padding: 12px; border-radius: 8px; display: none; }
.form-feedback.success, .form-feedback.error { display: block; }
.form-feedback.success { background-color: #e3f9e5; color: #2c7b3a; }
.form-feedback.error { background-color: #fde2e2; color: #b91c1c; }
.btn-submit:disabled { background-color: #cccccc; cursor: not-allowed; transform: none; box-shadow: none; }

/* --- 8. Sección FAQ --- */
.faq-section { background-color: var(--bg-main); }
.faq-header { text-align: center; margin-bottom: 60px; }
.faq-header .kicker { justify-content: center; }
.faq-accordion { max-width: 800px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { width: 100%; background: none; border: none; padding: 24px 0; text-align: left; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-family: var(--font-main); }
.faq-question span { font-size: 1.2rem; font-weight: 600; color: var(--text-dark); }
.faq-question i { font-size: 1.5rem; color: var(--accent-gold); transition: transform 0.3s ease; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out, padding 0.4s ease-out; }
.faq-answer p { margin: 0; padding: 0 16px 24px 0; color: var(--text-muted); line-height: 1.8; }
.faq-item.open .faq-question i { transform: rotate(45deg); }
.faq-item.open .faq-answer { max-height: 200px; }

/* --- 9. Sección Ubicación y Mapa --- */
.location-section { background: var(--bg-main); }
.location-header { text-align: center; margin-bottom: 60px; }
.location-header .kicker { justify-content: center; }
.map-container { width: 100%; height: 450px; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.1); }
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* --- 10. Footer --- */
.site-footer { background: var(--bg-dark); color: var(--text-light); padding: 100px 0 40px; text-align: center; }
.footer-title { font-size: 3rem; font-weight: 700; margin: 0 0 16px; }
.footer-subtitle { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 60px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); }
.footer-col p, .footer-col a { color: var(--text-light); text-decoration: none; transition: color 0.3s; }
.footer-col a:hover { color: var(--accent-gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 40px; font-size: 14px; color: var(--text-muted); }
.footer-bottom span { text-align: center; width: 100%; }
.footer-bottom a { color: var(--text-muted); text-decoration: none; font-weight: 600; transition: color 0.3s ease; }
.footer-bottom a:hover { color: var(--accent-gold); }

/* --- 11. WhatsApp Flotante --- */
.whatsapp-flotante { position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px; background-color: #25D366; color: #FFF; border-radius: 50%; text-align: center; font-size: 30px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); z-index: 100; display: grid; place-items: center; text-decoration: none; transition: all 0.3s ease; }
.whatsapp-flotante:hover { transform: scale(1.1) translateY(-5px); box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4); }

/* --- 12. Animaciones y Responsividad --- */
[data-reveal] { opacity: 0; transition: opacity 1s ease-out; }
[data-reveal="up"] { opacity: 0; transform: translateY(40px); transition: opacity 1s ease-out, transform 1s ease-out; }
[data-reveal="left"] { opacity: 0; transform: translateX(-40px); transition: opacity 1s ease-out, transform 1s ease-out; }
[data-reveal="right"] { opacity: 0; transform: translateX(40px); transition: opacity 1s ease-out, transform 1s ease-out; }
[data-reveal].in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  section { padding: 80px 0; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 80px; right: 20px; background: var(--bg-dark); padding: 20px; border-radius: 12px; flex-direction: column; width: 200px; }
  .nav-links.open { display: flex; }
  .villa-grid-final, .availability-grid { grid-template-columns: 1fr; }
  .villa-image-final { margin-top: 40px; }
  .gallery-grid, .footer-grid { grid-template-columns: 1fr; }
  .amenities-list-final { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .reserve-form .form-grid { grid-template-columns: 1fr; }
}

@media (min-width: 768px) {
    .footer-bottom span {
        width: auto;
    }
}