/* ─── About ──────────────────────────────────────────────── */
#about {
  background-color: var(--charcoal);
  position: relative; overflow: hidden; isolation: isolate;
  box-shadow: inset 0 16px 40px -10px rgba(0,0,0,0.12);
}

/* ─── Separador ornamental entre secciones ─── */
#about, #experience, #reservas {
  background-repeat: no-repeat;
  background-position: center top;
  background-size: min(460px, 76%) 2px;
  background-image: linear-gradient(90deg, transparent, rgba(0,0,0,0.45) 50%, transparent);
}
#about::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 65%;
  height: 65%;
  background-image: url('../images/Berenguela%20Logo%20negro.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.14;
  filter: blur(4px);
  pointer-events: none;
}
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.about-text h2 {
  font-family: var(--sans);
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}
.about-text h2 em { font-style: normal; font-weight: 400; }
.about-text p { font-size: 0.9rem; line-height: 1.9; color: var(--text-muted); margin-bottom: 1.2rem; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; }
.stat-item { border-left: 1px solid rgba(0,0,0,0.3); padding-left: 1.2rem; }
.stat-number {
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1;
  transition: color 0.3s;
}
.stat-item:hover .stat-number { color: var(--gold-light); }
.stat-label { font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-muted); margin-top: 0.3rem; }
/* Animación específica para la foto de Nuestra Historia */
.about-image.reveal {
  opacity: 0;
  transform: translateX(48px) scale(0.97);
  transition: opacity 0.95s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.95s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 0.18s;
}
.about-image.reveal.visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.about-image { position: relative; }
.about-img-frame {
  position: relative;
  background: var(--mid);
  aspect-ratio: 3/4;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
}
.about-img-frame::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 14px;
  pointer-events: none;
  z-index: 2;
}
.about-img-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e1c17 0%, #252218 50%, #1a1814 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  width: 100px; height: 100px;
  background: var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--dark);
}
.about-badge span:first-child { font-family: var(--serif); font-size: 1.8rem; font-weight: 500; line-height: 1; }
.about-badge span:last-child  { font-size: 0.5rem; letter-spacing: 0.2em; text-transform: uppercase; }

/* ─── Galería ────────────────────────────────────────────── */
#galeria { background: var(--dark); padding: 0; overflow: hidden; }
.galeria-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  grid-template-rows: 420px;
  gap: 3px;
}
/* Animación cinematográfica de entrada para la galería */
.galeria-item.reveal {
  opacity: 0;
  transform: scale(0.92) translateY(24px);
  transition: opacity 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.galeria-item.reveal.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.galeria-item:nth-child(1).reveal { transition-delay: 0s; }
.galeria-item:nth-child(2).reveal { transition-delay: 0.12s; }
.galeria-item:nth-child(3).reveal { transition-delay: 0.22s; }
.galeria-item:nth-child(4).reveal { transition-delay: 0.32s; }

.galeria-item { position: relative; overflow: hidden; cursor: pointer; }
.galeria-item img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.78) saturate(0.85);
  transition: transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94), filter 0.5s ease;
}
.galeria-item:hover img { transform: scale(1.06); filter: brightness(0.9) saturate(1); }
.galeria-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.80) 0%, rgba(0,0,0,0.15) 50%, transparent 75%);
  opacity: 1; transition: opacity 0.4s ease;
  display: flex; align-items: flex-end; padding: 1.5rem;
}
.galeria-item:hover .galeria-item-overlay { opacity: 1; }
.galeria-item-label { font-family: var(--serif); font-style: italic; font-size: 0.65rem; font-weight: 400; color: #fff; letter-spacing: 0.12em; text-transform: uppercase; text-shadow: 0 1px 6px rgba(0,0,0,0.8); }

/* ─── Lightbox ───────────────────────────────────────────── */
#lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.92); justify-content: center; align-items: center;
  cursor: zoom-out;
}
#lightbox.active { display: flex; }
#lightbox img {
  max-width: 90vw; max-height: 90vh; object-fit: contain;
  border-radius: 4px; box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  animation: lb-in 0.25s ease;
}
@keyframes lb-in { from { opacity:0; transform:scale(0.93); } to { opacity:1; transform:scale(1); } }
#lightbox-close {
  position: absolute; top: 1.2rem; right: 1.5rem;
  font-size: 2rem; color: #fff; background: none; border: none; cursor: pointer; line-height: 1;
}

/* ─── Experience ─────────────────────────────────────────── */
#experience {
  background-color: var(--charcoal);
  text-align: center; position: relative; isolation: isolate;
  box-shadow: inset 0 16px 40px -10px rgba(0,0,0,0.12);
}
#experience::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
}
/* Video Experiencia - bucle atmosférico */
.exp-scroll-wrapper {
  position: relative;
  height: 480px;
  margin-bottom: 0;
  border-radius: 24px;
  overflow: hidden;
}
.exp-scroll-sticky {
  width: 100%;
  height: 100%;
}
.exp-scroll-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.75) saturate(0.85);
  display: block;
}
#experience h2 { font-family: var(--sans); font-size: clamp(1.1rem, 2.5vw, 1.7rem); font-weight: 300; letter-spacing: 0.22em; text-transform: uppercase; color: var(--white); margin-bottom: 1rem; }
#experience > .container > p { max-width: 560px; margin: 0 auto 4rem; color: var(--text-muted); font-size: 0.88rem; }
.exp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 2rem;
}
/* Animación de entrada impactante para las tarjetas de experiencia */
.exp-card.reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.97);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.exp-card.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.exp-grid .exp-card:nth-child(1).reveal { transition-delay: 0s; }
.exp-grid .exp-card:nth-child(2).reveal { transition-delay: 0.08s; }
.exp-grid .exp-card:nth-child(3).reveal { transition-delay: 0.16s; }

.exp-card {
  background: var(--mid);
  padding: 3rem 2.5rem;
  text-align: left;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}
.exp-card:hover { background: #2c2a25; }
.exp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--gold);
  transition: height 0.4s ease;
}
.exp-card:hover::before { height: 100%; }
.exp-icon { width: 40px; height: 40px; margin-bottom: 1.5rem; opacity: 0.7; color: var(--white); transition: opacity 0.3s, color 0.3s; }
.exp-card:hover .exp-icon { opacity: 1; color: #f0ece4; }
.exp-card h3 { font-family: var(--sans); font-size: 0.7rem; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; color: var(--white); margin-bottom: 0.8rem; transition: color 0.3s; }
.exp-card:hover h3 { color: #f0ece4; }
.exp-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.8; transition: color 0.3s; }
.exp-card:hover p { color: #b8b0a0; }

/* ─── Quote Strip ────────────────────────────────────────── */
#quote { background: var(--gold); padding: 5rem 5%; text-align: center; box-shadow: inset 0 14px 30px rgba(0,0,0,0.18), inset 0 -10px 24px rgba(0,0,0,0.12); }
#quote blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 300;
  color: var(--dark);
  max-width: 700px;
  margin: 0 auto 1rem;
  line-height: 1.5;
  transition: transform 0.4s ease;
}
#quote:hover blockquote { transform: translateY(-2px); }
#quote cite { font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-dark); }

/* ─── Reservas ───────────────────────────────────────────── */
#reservas {
  background-color: var(--dark);
  position: relative; overflow: hidden; isolation: isolate;
  box-shadow: inset 0 16px 40px -10px rgba(0,0,0,0.12);
}
#reservas::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
}
#reservas::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0,0,0,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.reservas-header { text-align: center; margin-bottom: 3.5rem; }
.reservas-header h2 { font-family: var(--sans); font-size: clamp(1.1rem, 2.5vw, 1.7rem); font-weight: 300; letter-spacing: 0.22em; text-transform: uppercase; color: var(--white); }
.reservas-header p { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.8rem; }
.reservas-form { max-width: 700px; margin: 0 auto; background: var(--charcoal); border: 1px solid rgba(0,0,0,0.1); padding: 3rem; }
.covermanager-wrap { max-width: 780px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--dark);
  border: 1px solid rgba(0,0,0,0.15);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 300;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.3s;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group select option { background: var(--dark); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); opacity: 0.6; }
.form-submit {
  width: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  padding: 0.75rem 2.5rem;
  background: var(--gold);
  color: var(--dark);
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 0.5rem;
}
.form-submit:hover:not(:disabled) { background: var(--gold-light); }
.form-submit:disabled { background: rgba(0,0,0,0.08); color: var(--text-muted); cursor: not-allowed; letter-spacing: 0.15em; }
.rgpd-label { display: flex; align-items: flex-start; gap: 0.6rem; cursor: pointer; text-transform: none; letter-spacing: 0; }
.rgpd-check { position: absolute; opacity: 0; width: 0; height: 0; }
.rgpd-box { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 16px; height: 16px; margin-top: 1px; border: 1.5px solid #1a1a1a; background: transparent; transition: background 0.2s, border-color 0.2s; }
.rgpd-check:checked + .rgpd-box { background: #1a1a1a; border-color: #1a1a1a; }
.rgpd-check:checked + .rgpd-box::after { content: ''; display: block; width: 9px; height: 6px; border-left: 1.5px solid #ffffff; border-bottom: 1.5px solid #ffffff; transform: rotate(-45deg) translateY(-1px); }
.rgpd-text { font-family: var(--sans); font-size: 0.72rem; font-weight: 300; color: var(--text-muted); line-height: 1.5; text-transform: lowercase; }
.rgpd-text a { color: var(--text-muted); text-decoration: underline; }
.form-success { display: none; text-align: center; padding: 2rem; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--gold); }
#mensaje-error { color: #c0392b; }
.reservas-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 700px; margin: 3rem auto 0; text-align: center; }
.rinfo-item .rinfo-label { font-family: var(--sans); font-size: 0.58rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.4rem; }
.rinfo-item .rinfo-val { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text); }
.rinfo-item .rinfo-val a { color: inherit; text-decoration: none; transition: color 0.2s; }
.rinfo-item .rinfo-val a:hover { color: var(--gold); }

/* ─── Mapa ───────────────────────────────────────────────── */
.mapa-wrapper { margin-top: 3.5rem; position: relative; }
.mapa-label { font-size: 0.58rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; display: block; }
.mapa-frame { position: relative; border: 1px solid rgba(0,0,0,0.12); overflow: hidden; }
.mapa-frame iframe { display: block; width: 100%; height: 340px; border: none; pointer-events: none; }
.mapa-overlay-info {
  position: absolute;
  top: 1.2rem; left: 1.2rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,0.18);
  padding: 1rem 1.4rem;
  pointer-events: all;
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}
.mapa-overlay-info:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.18); transform: translateY(-1px); }
.mapa-overlay-info .moi-name { font-family: var(--serif); font-size: 1rem; color: var(--white); margin-bottom: 0.2rem; }
.mapa-overlay-info .moi-address { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.05em; }
.mapa-overlay-info .moi-gmaps { font-size: 0.62rem; color: var(--gold); letter-spacing: 0.08em; margin-top: 0.5rem; opacity: 0.85; }

/* Logo difuminado: menos opacidad en escritorio */
@media (min-width: 901px) {
  #about::before { opacity: 0.07; }
}

/* ─── Responsive index ───────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-image { display: block; order: -1; }
  .about-img-frame { aspect-ratio: 16/9; max-height: 280px; }
  .exp-grid { grid-template-columns: 1fr; margin-top: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .reservas-info { grid-template-columns: 1fr; }
  .galeria-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px; }
}
@media (max-width: 600px) {
  .about-stats { grid-template-columns: 1fr 1fr; }
  .reservas-form { padding: 2rem 1.5rem; }
  .galeria-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 160px 160px; gap: 2px; }
  .mdia-web-grid { grid-template-columns: 1fr; }
}
