/* ========================================
   A Derrasa, Ourense — Premium Landing
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --cream: #FAF8F5;
  --dark: #1a1a1a;
  --gold: #B8860B;
  --gold-light: #d4a84b;
  --grey-light: #e8e4df;
  --grey-mid: #999;
  --white: #ffffff;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* --- Utility --- */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.animate {
  opacity: 0;
  transform: translateY(30px);
}

.reveal.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 1.5rem;
}

/* --- CTA Button --- */
.cta-btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.35s ease;
}

.cta-btn--primary {
  background: var(--gold);
  color: var(--white);
}

.cta-btn--primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(184, 134, 11, 0.3);
}

.cta-btn--outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.cta-btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

/* ========================================
   1. HERO
   ======================================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url('img/hero.jpg') center/cover no-repeat;
  z-index: 0;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(13,13,13,0.7) 0%, rgba(26,26,26,0.5) 40%, rgba(42,37,32,0.6) 100%);
}

.hero__price {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #B8860B;
  margin-top: 0.75rem;
  letter-spacing: 0.02em;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem;
  max-width: 700px;
}

.hero__location {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero__divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 1.5rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero__title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.35), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ========================================
   2. SPECS
   ======================================== */
.specs {
  padding: 5rem 1.5rem;
  background: var(--white);
}

.specs__inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.specs__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1rem;
  margin-top: 2rem;
}

.spec-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.spec-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--gold);
}

.spec-card__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
}

.spec-card__value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

.spec-card__label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-mid);
}

/* ========================================
   3. GALERIA
   ======================================== */
.gallery {
  padding: 5rem 1.5rem;
  background: var(--cream);
}

.gallery__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.gallery__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #d4cfc8 0%, #b8b0a5 100%);
  transition: transform 0.4s ease;
}

.gallery__item:hover {
  transform: scale(1.02);
}

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0);
  transition: background 0.3s ease;
}

.gallery__item:hover::after {
  background: rgba(26, 26, 26, 0.1);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(26, 26, 26, 0.25);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox__content {
  position: relative;
  width: 90%;
  max-width: 900px;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #d4cfc8 0%, #b8b0a5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.9);
  transition: transform 0.35s ease;
}

.lightbox.active .lightbox__content {
  transform: scale(1);
}

.lightbox__label {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.lightbox__close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3s;
}

.lightbox__close:hover {
  color: var(--white);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem;
  transition: color 0.3s;
}

.lightbox__nav:hover {
  color: var(--white);
}

.lightbox__nav--prev {
  left: -3.5rem;
}

.lightbox__nav--next {
  right: -3.5rem;
}

.lightbox__counter {
  position: absolute;
  bottom: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

/* ========================================
   4. TOUR 360
   ======================================== */
.tour {
  padding: 5rem 1.5rem;
  background: var(--white);
}

.tour__inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.tour__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2520 100%);
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tour__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.3);
}

.tour__placeholder svg {
  width: 48px;
  height: 48px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1;
  opacity: 0.6;
}

.tour__placeholder span {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ========================================
   5. DESCRIPCION
   ======================================== */
.description {
  padding: 5rem 1.5rem;
  background: var(--cream);
}

.description__inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.description__text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.9;
  color: #444;
  font-weight: 400;
}

.description__text em {
  font-style: italic;
  color: var(--dark);
}

.description__separator {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 2.5rem auto;
}

.description__details {
  font-size: 0.85rem;
  line-height: 2;
  color: var(--grey-mid);
}

/* ========================================
   6. FORMULARIO
   ======================================== */
.form-section {
  padding: 5rem 1.5rem;
  background: var(--dark);
  color: var(--white);
}

.form-section__inner {
  max-width: 550px;
  margin: 0 auto;
}

.form-section__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.form-section .section-title {
  color: var(--white);
}

.form-section__subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

.form__group {
  margin-bottom: 1.25rem;
}

.form__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.5rem;
}

.form__input,
.form__select {
  width: 100%;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.3s ease, background 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

.form__input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.form__input:focus,
.form__select:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.09);
}

.form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form__select option {
  background: var(--dark);
  color: var(--white);
}

.form__submit {
  width: 100%;
  margin-top: 1.5rem;
}

.form__success {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
}

.form__success.visible {
  display: block;
}

.form__success-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--gold);
}

.form__success-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.form__success-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

/* ========================================
   7. FOOTER
   ======================================== */
.footer {
  padding: 2.5rem 1.5rem;
  background: #111;
  text-align: center;
}

.footer__text {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
}

.footer__brand {
  color: var(--gold);
}

/* ========================================
   RESPONSIVE — Tablet
   ======================================== */
@media (min-width: 640px) {
  .hero__title {
    font-size: 3.2rem;
  }

  .hero__ctas {
    flex-direction: row;
    justify-content: center;
  }

  .specs__grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .section-title {
    font-size: 2.4rem;
  }
}

/* ========================================
   RESPONSIVE — Desktop
   ======================================== */
@media (min-width: 1024px) {
  .hero__title {
    font-size: 3.8rem;
  }

  .hero__subtitle {
    font-size: 1.1rem;
  }

  .specs__grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
  }

  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .gallery__item:first-child {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
  }

  .section-title {
    font-size: 2.8rem;
  }

  .description__text {
    font-size: 1.3rem;
  }

  .lightbox__nav--prev {
    left: -5rem;
  }

  .lightbox__nav--next {
    right: -5rem;
  }
}

/* ── Location ── */
.location {
  padding: 5rem 1.5rem;
  background: var(--cream);
}

.location__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.location__subtitle {
  color: #666;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.location__map {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
