/* ═══════════════════════════════════════════════════════
   REAL DEL CASTILLO — Estilos
═══════════════════════════════════════════════════════ */

:root {
  --dark:        #001e17;
  --gold:        #c8a96e;
  --gold-light:  #e2c98f;
  --beige:       #dbdddb;
  --white:       #ffffff;
  --muted-light: #9a9a9a;
  --font-serif:  'EB Garamond', Georgia, serif;
  --font-sans:   'Montserrat', sans-serif;
}

/* ─── Base ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

.py-6 { padding-top: 5rem; padding-bottom: 5rem; }

/* ─── Utilidades de color ─── */
.text-gold       { color: var(--gold) !important; }
.text-dark-rc    { color: var(--dark) !important; }
.text-muted-light{ color: var(--muted-light) !important; }

/* ─── Fondos de sección ─── */
.section-light  { background-color: var(--white); }
.section-beige  { background-color: var(--beige); }
.section-dark   { background-color: var(--dark); }

/* ─── Tipografía ─── */
.section-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.1;
}

.divider-gold {
  width: 55px;
  height: 2px;
  background: var(--gold);
}

/* ─── Botones ─── */
.btn-gold {
  background-color: var(--gold);
  color: var(--dark);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  border: none;
  border-radius: 0;
  transition: background-color 0.22s;
}
.btn-gold:hover { background-color: var(--gold-light); color: var(--dark); }

.btn-dark-rc {
  background-color: var(--dark);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  border: none;
  border-radius: 0;
  transition: opacity 0.22s;
}
.btn-dark-rc:hover { opacity: 0.85; color: #fff; }

/* ─── Navbar ─── */
#mainNav {
  background-color: transparent;
  transition: padding 0.3s, box-shadow 0.3s;
}

#mainNav.scrolled {
  padding-top: 0.4rem !important;
  padding-bottom: 0.4rem !important;
  box-shadow: 0 2px 16px rgba(0,30,23,0.4);
}

.nav-link, .nav-pill {
  color: rgba(255,255,255,0.82) !important;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}
.nav-link:hover, .nav-pill:hover { color: var(--gold) !important; }

/* ─── Selector de idioma ─── */
.lang-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: color 0.2s;
}
.lang-btn:hover { color: var(--gold); }
.lang-btn.active { color: var(--gold); font-weight: 700; cursor: default; }
.lang-sep { color: rgba(255,255,255,0.35); font-size: 0.68rem; }

.brand-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--gold);
}

/* Logo casi cuadrado — ancho fijo */
.navbar-logo {
  width: 140px;
  height: auto;
  transition: width 0.3s;
}
#mainNav.scrolled .navbar-logo { width: 110px; }

.footer-logo {
  width: 160px;
  height: auto;
}

/* ─── Hero ─── */
.hero-section {
  position: relative;
  min-height: 100vh;
  background-color: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,30,23,0.92) 0%,
    rgba(0,30,23,0.35) 55%,
    rgba(0,30,23,0.1) 100%
  );
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.05;
  color: #fff;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
}

/* ─── Historia ─── */
.historia-img-col {
  position: relative;
  min-height: 520px;
}
.historia-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.historia-content { max-width: 560px; }

.historia-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.25;
  color: var(--dark);
}

/* ─── Concepto — Multi-carousel ─── */
.multi-carousel {
  position: relative;
  overflow: hidden;
}

.multi-carousel-track {
  display: flex;
  gap: 0.75rem;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.mc-item {
  flex: 0 0 calc(33.333% - 0.5rem);
  min-width: 0;
}

.mc-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--beige);
}
.mc-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}
.mc-item:hover .mc-img-wrap img { transform: scale(1.04); }

.mc-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  background: rgba(0,30,23,0.75);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 2;
}
.mc-btn:hover { background: var(--dark); }
.mc-prev { left: 0.5rem; }
.mc-next { right: 0.5rem; }
.mc-btn:disabled { opacity: 0.3; cursor: default; }

/* ─── Turismo items ─── */
.turismo-item { padding: 1rem 0; }

.turismo-icon i {
  font-size: 1.8rem;
  color: var(--gold);
}

.turismo-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.turismo-text {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.65;
}

/* ─── Banner 1% ─── */
.banner-1pct {
  background-color: var(--dark);
  border-top: 1px solid rgba(200,169,110,0.15);
  border-bottom: 1px solid rgba(200,169,110,0.15);
}

.banner-label {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 2.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #fff;
}

/* ─── Country Club ─── */
.country-club-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 400;
  line-height: 0.95;
  color: var(--dark);
}

.escudo-img {
  height: 90px;
  width: auto;
}

.escudo-placeholder {
  width: 90px;
  height: 90px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 2.2rem;
}

/* ─── Amenidades ─── */
.amenidad-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  background: #1a2e28;
  cursor: pointer;
}
.amenidad-card.amenidad-large { min-height: 300px; }

.amenidad-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.amenidad-card:hover img { transform: scale(1.05); }

.amenidad-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,30,23,0.8) 0%, transparent 60%);
  z-index: 1;
}

.amenidad-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(200,169,110,0.35);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  border: 1px dashed rgba(200,169,110,0.2);
  z-index: 0;
}

.amenidad-label {
  position: absolute;
  bottom: 0.9rem;
  left: 1rem;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}

.amenidades-count {
  min-height: 210px;
  background: rgba(0,30,23,0.05);
  border: 1px solid rgba(0,30,23,0.12);
  padding: 2rem;
}

.count-number {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 400;
  color: var(--dark);
  line-height: 1;
}
.count-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #666;
}
.count-plus {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--gold);
  opacity: 0.7;
}

/* ─── Placeholder genérico ─── */
.placeholder-box {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--beige);
  border: 1px dashed rgba(0,30,23,0.2);
  color: rgba(0,30,23,0.35);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-align: center;
  text-transform: uppercase;
}
.placeholder-box.dark {
  background: rgba(255,255,255,0.05);
  border-color: rgba(200,169,110,0.25);
  color: rgba(200,169,110,0.4);
}

/* ─── Master Plan ─── */
.section-masterplan {
  position: relative;
  background-color: var(--dark);
}

.masterplan-bg-img {
  position: absolute;
  inset: 0;
  background: url('img/masterplan-wide.png') center center / cover no-repeat;
  opacity: 0.9;
}

.masterplan-spacer { height: 600px; }

@media (max-width: 767px) {
  .masterplan-bg-img { display: none; }
}


.legend-item {
  font-size: 0.78rem;
  color: var(--muted-light);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--c, var(--gold));
  flex-shrink: 0;
}

.stat-box {
  padding: 1.25rem;
  border: 1px solid rgba(200,169,110,0.2);
}
.stat-number {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--muted-light);
  display: block;
  margin-top: 0.3rem;
}

/* ─── Video membresía ─── */
.ratio-9x16 { --bs-aspect-ratio: 177.78%; }

.video-wrapper { overflow: hidden; }

.membresia-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.audio-toggle {
  /* Anular el position:absolute top:0 left:0 width:100% height:100% de Bootstrap .ratio > * */
  position: absolute !important;
  top: 0.75rem !important;
  right: 1.5rem !important;
  left: auto !important;
  bottom: auto !important;
  width: 38px !important;
  height: 38px !important;
  z-index: 10;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
  transition: transform 0.15s, opacity 0.2s;
}

.audio-toggle:hover {
  transform: scale(1.15);
  opacity: 0.85;
}

/* ─── Membresía ─── */
.membresia-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.membresia-list li {
  color: #555;
  font-size: 0.9rem;
}

/* ─── Teléfono con código de país ─── */
.phone-group {
  display: flex;
  align-items: center;
  padding: 0 !important;
  overflow: hidden;
}

.phone-code {
  flex-shrink: 0;
  width: 82px;
  border: none;
  background: transparent;
  color: var(--dark);
  font-size: 0.85rem;
  padding: 0.45rem 0.25rem 0.45rem 0.6rem;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone-divider {
  width: 1px;
  height: 1.25rem;
  background: rgba(0,30,23,0.2);
  flex-shrink: 0;
}

.phone-number {
  flex: 1;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0.45rem 0.75rem;
  font-size: 0.88rem;
  color: var(--dark);
  min-width: 0;
}
.phone-number:focus { outline: none; }

.phone-group:focus-within {
  border-color: var(--gold) !important;
}

/* ─── Formulario ─── */
.rc-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
}

.rc-input {
  background: #fff;
  border: 1px solid rgba(0,30,23,0.2);
  border-radius: 0;
  color: var(--dark);
  font-size: 0.88rem;
  transition: border-color 0.2s;
}
.rc-input:focus {
  border-color: var(--gold);
  box-shadow: none;
  color: var(--dark);
}
.rc-input::placeholder { color: #aaa; }

/* ─── Footer ─── */
.footer-links { display: flex; flex-direction: column; gap: 0.45rem; }
.footer-links a {
  color: var(--muted-light);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }

.social-icon {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(200,169,110,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-light);
  text-decoration: none;
  font-size: 0.85rem;
  transition: border-color 0.2s, color 0.2s;
}
.social-icon:hover { border-color: var(--gold); color: var(--gold); }

/* ─── Toast de notificación ─── */
.rc-toast {
  display: none;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.25rem;
  background: var(--dark);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-left: 3px solid var(--gold);
  border-radius: 2px;
  animation: toastIn 0.35s ease forwards;
}

.rc-toast.show { display: flex; }

.rc-toast.toast-error { border-left-color: #c0392b; }

.rc-toast-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Scroll reveal ─── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* ─── Responsive ─── */
@media (max-width: 991px) {
  .historia-img-col { min-height: 320px; }
  .mc-item { flex: 0 0 calc(50% - 0.375rem); }
}

@media (max-width: 767px) {
  .py-6 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .navbar-logo { width: 110px; }
  #mainNav.scrolled .navbar-logo { width: 90px; }
  .footer-logo { width: 130px; }
  .historia-img-col { min-height: 260px; }
  .historia-content { padding: 2.5rem 1.5rem !important; max-width: 100%; }
  .mc-item { flex: 0 0 80%; }
  .amenidad-card { min-height: 170px; }
  .amenidad-card.amenidad-large { min-height: 220px; }
  .country-club-title { font-size: 3.5rem; }
}
