/*
   Alojamientos Rurales — Landing Page Afiliados Booking.com
   Estilos: paleta Slow Travel, tarjetas de alojamiento, FAQ accordion
*/

/* ── Paleta Slow Travel ── */
:root {
  --al-cream: #FAF8F5;
  --al-stone: #E8E3DD;
  --al-wood: #5C4A3A;
  --al-wood-light: #8B7355;
  --al-forest: #2D5A45;
  --al-forest-light: rgba(45, 90, 69, 0.08);
  --al-cta: #003580;
  --al-cta-hover: #00264D;
  --al-cta-glow: rgba(0, 53, 128, 0.2);
  --al-border: #E5E0DB;
  --al-rating: #003580;
  --al-free-cancel: #16A34A;
  --al-section-alt: #F0EDE8;
  --al-legal: #9CA3AF;
}

/* ── Hero Section ── */
.al-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.al-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.al-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.al-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(92, 74, 58, 0.7) 0%,
    rgba(92, 74, 58, 0.5) 50%,
    rgba(92, 74, 58, 0.8) 100%
  );
}

.al-hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  padding: 2rem;
}

.al-hero__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: #FFFFFF;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.al-hero__subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.88);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 1.5rem;
}

.al-hero__disclaimer {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ── Back Link ── */
.al-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.3s, gap 0.3s;
}

.al-back:hover {
  color: #FFFFFF;
  gap: 10px;
}

.al-back .material-symbols-outlined {
  font-size: 18px;
}

/* ── Section Layout ── */
.al-section {
  padding: 5rem 1.5rem;
}

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

.al-section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.al-section__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--al-forest-light);
  color: var(--al-forest);
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.al-section__badge .material-symbols-outlined {
  font-size: 16px;
}

.al-section__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--al-wood);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.al-section__desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--al-wood-light);
  line-height: 1.7;
}

/* ── Grid ── */
.al-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.al-grid--4 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 1024px) {
  .al-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .al-grid,
  .al-grid--4 {
    grid-template-columns: 1fr;
  }
}

/* ── Card ── */
.al-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid var(--al-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.al-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(92, 74, 58, 0.12);
}

.al-card__img {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
}

.al-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.al-card:hover .al-card__img img {
  transform: scale(1.05);
}

.al-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.al-card__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--al-wood);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.al-card__location {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--al-wood-light);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 0.75rem;
}

.al-card__location .material-symbols-outlined {
  font-size: 16px;
  color: var(--al-forest);
}

/* Trust Row */
.al-card__trust {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.al-card__rating {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--al-rating);
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.al-card__cancel {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--al-free-cancel);
  white-space: nowrap;
}

/* Tags Row */
.al-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0.75rem;
}

.al-card__tags span {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--al-wood-light);
  background: var(--al-forest-light);
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

/* Description */
.al-card__desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--al-wood-light);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

/* CTA Button */
.al-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  background: var(--al-cta);
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
  margin-top: auto;
}

.al-card__cta:hover {
  background: var(--al-cta-hover);
  box-shadow: 0 6px 24px var(--al-cta-glow);
  transform: translateY(-1px);
}

.al-card__cta .material-symbols-outlined {
  font-size: 18px;
}

/* ── Map Placeholder ── */
.al-map {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem;
  background: linear-gradient(135deg, #E8E3DD 0%, #F0EDE8 100%);
  border-radius: 20px;
  border: 2px dashed var(--al-border);
  text-align: center;
}

.al-map__icon {
  font-size: 48px;
  color: var(--al-wood-light);
  margin-bottom: 1rem;
}

.al-map__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--al-wood);
  margin-bottom: 0.75rem;
}

.al-map__text {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--al-wood-light);
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
}

/* ── FAQ Accordion ── */
.al-faq {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.al-faq__item {
  background: #FFFFFF;
  border-radius: 14px;
  border: 1px solid var(--al-border);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.al-faq__item:hover {
  box-shadow: 0 4px 20px rgba(92, 74, 58, 0.08);
}

.al-faq__item.active {
  border-color: var(--al-forest);
  box-shadow: 0 4px 20px rgba(45, 90, 69, 0.1);
}

.al-faq__question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--al-wood);
  text-align: left;
}

.al-faq__question .material-symbols-outlined {
  font-size: 22px;
  color: var(--al-wood-light);
  transition: transform 0.3s ease, color 0.3s;
  flex-shrink: 0;
}

.al-faq__item.active .al-faq__question .material-symbols-outlined {
  transform: rotate(180deg);
  color: var(--al-forest);
}

.al-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.al-faq__item.active .al-faq__answer {
  max-height: 400px;
}

.al-faq__answer-inner {
  padding: 0 1.5rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--al-wood-light);
  line-height: 1.7;
}

/* ── Divider ── */
.al-divider {
  width: 50px;
  height: 3px;
  background: var(--al-forest);
  border-radius: 3px;
  margin: 0 auto 1.5rem;
}

/* ── Scroll to Top ── */
.al-scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--al-wood);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s, transform 0.4s, background 0.3s;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(92, 74, 58, 0.2);
}

.al-scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.al-scroll-top:hover {
  background: var(--al-forest);
}

/* ── Responsive padding ── */
@media (max-width: 768px) {
  .al-section {
    padding: 3rem 1rem;
  }
  .al-map {
    padding: 2rem 1.5rem;
  }
}
