:root {
  --sea: #1e5f8c;
  --sea-dark: #123f5c;
  --terracotta: #d85a30;
  --terracotta-dark: #b4472a;
  --gold: #d9a441;
  --gold-dark: #8a6415;
  --sand: #f7ede1;
  --sand-dark: #ead9c3;
  --sun: #d9a441;
  --ink: #33302b;
  --white: #fffdf9;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(30, 79, 110, 0.14);
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
}

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; margin: 0 0 0.4em; }

a { color: inherit; }

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

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  font-family: Georgia, serif;
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--terracotta-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 46px;
  width: 46px;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}

nav.main-nav a:hover { color: var(--sea); }

.nav-toggle { display: none; }

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--terracotta); color: var(--white); box-shadow: var(--shadow); }
.btn-whatsapp { background: #25D366; color: var(--white); }
.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white); }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--sea) 0%, #164a6e 55%, #0f3550 100%);
  color: var(--white);
  padding: 90px 0 110px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    var(--sea) 0 28px,
    var(--gold) 28px 36px,
    var(--white) 36px 64px,
    var(--terracotta) 64px 72px,
    var(--white) 72px 100px
  );
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 0.2em;
}

.hero .subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 0.6em;
}

.hero p.description {
  max-width: 680px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
  opacity: 0.95;
}

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

/* Rating badges */
.ratings-badges {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border-radius: 12px;
  padding: 8px 16px 8px 8px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease;
}

.rating-badge:hover { transform: translateY(-2px); }

.rating-score {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}

.rating-score-booking { background: #003580; border-radius: 8px 8px 8px 0; }
.rating-score-google { background: #4285f4; }

.rating-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.25;
}

.rating-text strong { font-size: 0.92rem; color: var(--ink); }
.rating-text small { font-size: 0.78rem; color: #6a655e; }
.rating-text small.rating-stars { color: #e8a012; }
.rating-text small.rating-stars span { color: #6a655e; }

/* Sections */
section {
  padding: 70px 0;
  position: relative;
}

section.alt { background: var(--white); }

.section-title {
  text-align: center;
  margin-bottom: 12px;
  color: var(--terracotta-dark);
}

.section-subtitle {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
  color: #55686e;
}

/* Amenities */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.amenity-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--terracotta);
}

.amenity-card:nth-child(3n+2) { border-top-color: var(--sea); }
.amenity-card:nth-child(3n+3) { border-top-color: var(--gold); }

.amenity-card .icon { font-size: 2.2rem; margin-bottom: 10px; }
.amenity-card h3 { font-size: 1.05rem; font-family: inherit; }
.amenity-card p { font-size: 0.9rem; color: #5a6c72; margin: 0; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.gallery-slot {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--sea);
}

.gallery-slot:nth-child(3n+2) { border-color: var(--terracotta); }
.gallery-slot:nth-child(3n+3) { border-color: var(--gold); }

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.gallery-slot:hover img { transform: scale(1.05); }

.gallery-cat {
  font-size: 1.25rem;
  color: var(--sea-dark);
  margin: 40px 0 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--sand-dark);
  scroll-margin-top: 130px;
}

.gallery-cat:first-of-type { margin-top: 8px; }

/* Gallery page (galleria.html) */
.gallery-page { max-width: 860px; }

.gallery-nav {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.gallery-nav a {
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sea-dark);
  text-decoration: none;
}

.gallery-nav a:hover { background: var(--sea); color: var(--white); border-color: var(--sea); }

.gallery-page figure {
  margin: 0 0 36px;
  scroll-margin-top: 120px;
}

.gallery-page figure img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gallery-page figcaption {
  text-align: center;
  margin-top: 10px;
  font-size: 0.95rem;
  color: #6a655e;
  font-style: italic;
}

/* Reviews banner (carosello) */
.reviews-carousel {
  position: relative;
  padding: 0 6px;
}

.reviews-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 2px 18px;
  scrollbar-width: none;
}

.reviews-track::-webkit-scrollbar { display: none; }

.review-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin: 0;
  border-top: 3px solid var(--sea);
  display: flex;
  flex-direction: column;
  flex: 0 0 clamp(260px, 32%, 340px);
  scroll-snap-align: start;
}

.reviews-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--sea-dark);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reviews-arrow:hover { background: var(--sea); color: var(--white); }
.reviews-arrow[disabled] { opacity: 0.35; cursor: default; }
.reviews-arrow-prev { left: -10px; }
.reviews-arrow-next { right: -10px; }

.reviews-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 4px;
}

.reviews-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: var(--sand-dark);
  cursor: pointer;
}

.reviews-dots button[aria-current="true"] { background: var(--terracotta); }

.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.review-source {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
}

.review-logo { width: 18px; height: 18px; flex: 0 0 auto; border-radius: 4px; }

.review-source-booking { background: #e6edf7; color: #003580; }
.review-source-google { background: #e8f0fe; color: #1a56c4; }

.review-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.review-stars {
  position: relative;
  display: inline-block;
  color: #ddd6c8;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: 2px;
}

.review-stars::before { content: "★★★★★"; }

.review-stars > span {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
  color: #e8a012;
}

.review-stars > span::before { content: "★★★★★"; }

.review-score {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--sea-dark);
}

.review-card blockquote {
  margin: 0 0 14px;
  font-size: 0.97rem;
  line-height: 1.6;
  color: #46423c;
  flex: 1;
}

.review-card blockquote::before { content: "“"; }
.review-card blockquote::after { content: "”"; }

.review-card figcaption {
  font-size: 0.85rem;
  color: #756f66;
  font-style: italic;
}

/* Availability calendar */
#calendar { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }

.calendar-legend {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.legend-busy { background: #d9534f; }
.legend-free { background: #4caf82; }

.calendar-note {
  max-width: 640px;
  margin: 24px auto 0;
  text-align: center;
  font-size: 0.9rem;
  color: #64777d;
}

/* Booking form */
.booking-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 860px) {
  .booking-wrapper { grid-template-columns: 1fr; }
}

form#booking-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  display: grid;
  gap: 16px;
}

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

label { font-weight: 600; font-size: 0.9rem; }

input, textarea {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #d5cbb3;
  font-size: 1rem;
  font-family: inherit;
  width: 100%;
}

input:focus, textarea:focus {
  outline: 2px solid var(--sea);
  outline-offset: 1px;
}

textarea { resize: vertical; min-height: 90px; }

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.5;
  color: #55504a;
  cursor: pointer;
}

.form-consent input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: var(--terracotta);
  cursor: pointer;
}

.form-consent a {
  color: var(--sea);
  font-weight: 600;
  text-decoration: underline;
}

.form-consent a:hover { color: var(--terracotta); }

#form-status {
  font-size: 0.95rem;
  font-weight: 600;
  min-height: 1.4em;
}

#form-status.ok { color: #2e7d32; }
#form-status.error { color: #c62828; }
#form-status.warn { color: #b26a00; }

.info-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.info-card h3 { color: var(--sea-dark); }

.fb-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fb-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: #1877f2;
}

.site-footer .fb-icon { fill: currentColor; }

.info-list { list-style: none; padding: 0; margin: 20px 0; }
.info-list li { padding: 8px 0; border-bottom: 1px solid var(--sand-dark); }

/* Link Facebook con logo */
.fb-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fb-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: #1877f2;
}

.site-footer .fb-icon { fill: currentColor; }

/* Location */
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: none;
}

.map-frame iframe { width: 100%; height: 380px; border: none; display: block; }

/* Footer */
footer.site-footer {
  background: var(--sea-dark);
  color: var(--white);
  padding: 50px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-grid h4 { color: var(--white); margin-bottom: 12px; }
.footer-grid a { text-decoration: none; opacity: 0.85; }
.footer-grid a:hover { opacity: 1; text-decoration: underline; }
.footer-grid p, .footer-grid ul { opacity: 0.85; margin: 0; padding: 0; list-style: none; }
.footer-grid li { margin-bottom: 8px; }

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.65;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
}

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25D366;
  color: white;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  z-index: 200;
  text-decoration: none;
}

/* Mobile */
@media (max-width: 720px) {
  .site-header .container {
    flex-direction: column;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .site-header .btn { display: none; }

  .logo { font-size: 1.15rem; }
  .logo-img { height: 38px; width: 38px; }

  nav.main-nav ul {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav.main-nav a { font-size: 0.88rem; }

  .hero { padding: 54px 0 64px; }
  .hero p.description { font-size: 0.98rem; padding: 0 8px; }
  .hero .hero-actions { padding: 0 8px; }
  .btn { padding: 12px 22px; font-size: 0.95rem; }

  section { padding: 48px 0; }
  .container { padding: 0 16px; }

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

  form#booking-form, .info-card { padding: 22px; }

  #calendar { padding: 12px; }
  .fc .fc-toolbar-title { font-size: 1.15rem; }
  .fc .fc-button { padding: 4px 10px; font-size: 0.85rem; }

  .map-frame iframe { height: 280px; }

  .reviews-carousel { padding: 0; }
  .reviews-arrow { display: none; }
  .review-card { flex-basis: 88%; padding: 20px; }

  .whatsapp-float { width: 52px; height: 52px; bottom: 16px; right: 16px; }
}
