/* ambientes.css — estilos específicos de la página /ambientes */

/* ───────── AMB-HERO ───────── */
.amb-hero {
  background: var(--dark);
  color: var(--cream);
  padding: 200px 0 120px;
  position: relative;
  overflow: hidden;
}
.amb-hero::after {
  content: ""; position: absolute; right: -10%; top: -20%;
  width: 60%; height: 140%;
  background: radial-gradient(closest-side, rgba(124,140,120,.18), transparent 70%);
  pointer-events: none;
}
.amb-hero .eyebrow { color: var(--wheat); margin-bottom: 32px; }
.amb-hero .h-display { color: var(--cream); max-width: 14ch; }
.amb-hero .h-display em { color: var(--wheat); }
.amb-hero .lede { color: rgba(250,248,243,.72); margin-top: 32px; max-width: 50ch; }

/* Hero 2-col grid (texto izq / foto der) */
.amb-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.amb-hero-photo { aspect-ratio: 4/5; max-height: 480px; overflow: hidden; border-radius: 4px; }
.amb-hero-photo .ph,
.amb-hero-photo picture,
.amb-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .amb-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .amb-hero-photo { max-height: 360px; aspect-ratio: 16/10; }
}

/* ───────── AMBIENTE SECTIONS ───────── */
.ambiente {
  padding: 120px 0;
}
.ambiente.alt { background: var(--linen); }
.amb-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.amb-card.reverse { direction: rtl; }
.amb-card.reverse > * { direction: ltr; }
@media (max-width: 980px) { .amb-card, .amb-card.reverse { grid-template-columns: 1fr; gap: 32px; direction: ltr; } }
.amb-card .ph,
.amb-card .lp-picture { aspect-ratio: 4/3; }
.amb-photo,
.amb-photo .ph,
.amb-photo .lp-picture { aspect-ratio: 4/3; overflow: hidden; }
@media (max-width: 600px) {
  .amb-photo,
  .amb-photo .ph,
  .amb-photo .lp-picture { aspect-ratio: 4/3; }
}

.amb-subcats-preview {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--earth);
  margin: 14px 0 26px;
}

/* ───────── CARRUSEL en el landing ───────── */
.amb-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.amb-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.amb-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}
.amb-carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.amb-carousel-slide .lp-picture,
.amb-carousel-slide picture,
.amb-carousel-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.amb-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex; gap: 8px;
  z-index: 2;
  padding: 6px 12px;
  background: rgba(33,28,24,0.35);
  backdrop-filter: blur(6px);
  border-radius: 100px;
}
.amb-dot {
  width: 7px; height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(250,248,243,0.5);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.amb-dot:hover { background: rgba(250,248,243,0.85); }
.amb-dot.is-active {
  background: var(--cream);
  transform: scale(1.3);
}

/* ───────── ACCESORIOS: header + cards individuales ───────── */
.amb-acc-header {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 56px;
}
.amb-acc-header .eyebrow {
  display: inline-block;
  margin-bottom: 16px;
}
.amb-acc-header .h-section {
  margin: 0 0 18px;
}
.amb-acc-header .lede {
  margin: 0 auto;
  max-width: 50ch;
}

.amb-acc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .amb-acc-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 480px) {
  .amb-acc-grid { grid-template-columns: 1fr; }
}

.amb-acc-card {
  display: block;
  text-decoration: none;
  color: var(--dark);
  background: var(--cream);
  border: 1px solid rgba(33,28,24,0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
}
.ambiente.alt .amb-acc-card {
  background: rgba(255,255,255,0.6);
}
.amb-acc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(33,28,24,0.10);
}
.amb-acc-photo {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--linen);
}
.amb-acc-photo .lp-picture,
.amb-acc-photo picture,
.amb-acc-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.amb-acc-card:hover .amb-acc-photo img { transform: scale(1.04); }
.amb-acc-info {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px;
}
.amb-acc-info h3 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--dark);
}
.amb-acc-arrow {
  font-size: 18px;
  color: var(--earth);
  transition: transform 0.3s ease, color 0.3s ease;
}
.amb-acc-card:hover .amb-acc-arrow {
  color: var(--wheat);
  transform: translateX(3px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .amb-carousel-slide { transition: none; }
  .amb-acc-card, .amb-acc-photo img, .amb-acc-arrow, .amb-dot { transition: none; }
  .amb-acc-card:hover { transform: none; }
}
.amb-text .eyebrow { margin-bottom: 18px; display: block; }
.amb-text h3 {
  font-family: var(--sans); font-weight: 500; font-size: clamp(36px, 4vw, 56px); line-height: 1.04; margin: 0 0 24px;
}
.amb-text h3 em { font-style: italic; color: var(--earth); }
.amb-text p { color: var(--dark); font-size: 16px; line-height: 1.7; margin: 0 0 24px; max-width: 48ch; }
.amb-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin: 24px 0 32px;
}
.amb-tag {
  padding: 6px 12px;
  background: var(--cream);
  border: 1px solid rgba(33,28,24,.1);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--earth);
}
.ambiente.alt .amb-tag { background: var(--cream); }
.amb-meta {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid rgba(33,28,24,.12);
  border-bottom: 1px solid rgba(33,28,24,.12);
  margin-bottom: 28px;
}
.amb-meta dt {
  font-size: 9px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--earth);
  margin-bottom: 6px;
}
.amb-meta dd { font-family: var(--sans); font-size: 18px; margin: 0; color: var(--dark); }

.amb-full {
  margin-top: 80px;
  position: relative;
}
.amb-full .ph,
.amb-full .lp-picture {
  aspect-ratio: 21/9;
}
.amb-full .caption {
  position: absolute;
  left: 0; bottom: -64px;
  background: var(--cream);
  padding: 20px 28px;
  max-width: 460px;
  border-left: 2px solid var(--wheat);
}
.ambiente.alt .amb-full .caption { background: var(--linen); }
.amb-full .caption h4 { font-family: var(--sans); font-weight: 500; font-size: 24px; margin: 0 0 6px; }
.amb-full .caption span { font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--earth); }

/* ───────── Mobile ───────── */
@media (max-width: 720px) {
  .amb-hero { padding-top: 150px; }
  .amb-full .caption { position: relative; left: 0; bottom: 0; max-width: none; }
}
