/* --- Variables --- */
:root {
  --color-bg: #fbf7f0;
  --color-surface: #ffffff;
  --color-text: #1f1c18;
  --color-muted: #6c6258;
  --color-muted-2: #8a8075;
  --color-terracotta: #c45c3e;
  --color-terracotta-hover: #d96d4f;
  --color-amber: #b8860b;
  --color-amber-hover: #d4a017;
  --color-border: rgba(31, 28, 24, 0.12);
  --color-shadow: rgba(23, 18, 13, 0.12);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Outfit", system-ui, sans-serif;
  --radius: 16px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Layout --- */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Contenedor para alinear todo */
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0 0.6rem;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  z-index: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(251, 247, 240, 0.8) 0%, rgba(251, 247, 240, 0.8) 50%, rgba(251, 247, 240, 0.8) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1.15rem;
  align-items: center;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  justify-self: start;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--color-terracotta);
  background: rgba(196, 92, 62, 0.10);
  border: 1px solid rgba(196, 92, 62, 0.20);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}

.brand-sub {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.hero-content {
  text-align: center;
  justify-self: center;
}

.hero-tagline {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6.5vw, 4.1rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.15s forwards;
}

.hero-subtitle {
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--color-muted-2);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}

.scroll-hint {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--color-muted);
  opacity: 0.8;
  animation: fadeUp 0.8s ease 0.5s forwards;
}

.scroll-arrow {
  animation: bounce 2s ease-in-out infinite;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* --- Cards (choices) --- */
.choices {
  flex: 1;
  padding: 0 0 3.5rem;
}

.choices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.choices-intro {
  grid-column: 1 / -1;
  font-size: 0.9375rem;
  color: var(--color-muted);
  text-align: center;
  margin: 0 0 0.25rem;
  line-height: 1.45;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
  overflow: hidden;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
  min-height: 220px;
}

.card-pension {
  animation-delay: 0.2s;
}

.card-pension::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-terracotta), var(--color-amber));
  opacity: 0.8;
}

.card-hostal {
  animation-delay: 0.35s;
}

.card-hostal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-amber), var(--color-terracotta));
  opacity: 0.8;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(31, 28, 24, 0.18);
  box-shadow: 0 18px 40px var(--color-shadow);
  background: rgba(255, 255, 255, 0.96);
  outline: none;
}

.card-pension:hover .card-cta {
  color: var(--color-terracotta-hover);
}

.card-hostal:hover .card-cta {
  color: var(--color-amber-hover);
}

.card-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.card-desc {
  font-size: 0.9375rem;
  color: var(--color-muted-2);
  margin-bottom: 1.5rem;
  flex: 1;
}

.card-cta {
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition);
}

.card-pension .card-cta {
  color: var(--color-terracotta);
}

.card-hostal .card-cta {
  color: var(--color-amber);
}

/* --- Footer --- */
.footer {
  padding: 1.5rem 1.5rem 1.75rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
}


/* --- Responsive --- */
@media (max-width: 700px) {
  .hero {
    min-height: 48vh;
    padding-bottom: 0.6rem;
  }

  .container {
    padding: 0 1rem;
  }

  .hero-inner {
    gap: 1.5rem;
  }

  .brand {
    justify-self: center;
    text-align: center;
  }

  .choices-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card {
    padding: 1.5rem;
  }

  .card-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 400px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-tagline {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
  }
}
