/* ==========================================================================
   BASE.CSS
   Reset, variables de diseño (design tokens) y estilos tipográficos base.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS DE DISEÑO
   Paleta "Costa & Campo": mar profundo + tierra cálida.
   Cada propiedad recibe además un acento propio (ver sección 1.1) para que
   las 4 casas se sientan distintas dentro del mismo sistema visual.
   -------------------------------------------------------------------------- */
:root {
  /* Color base de marca */
  --color-ocean-deep:   #0F3D3E;
  --color-ocean-mid:    #1B5C56;
  --color-ocean-mist:   #DCEAE6;
  --color-sand:         #F2E8D5;
  --color-sand-dark:    #E4D3B0;
  --color-coral:        #E8724C;
  --color-coral-dark:   #C85A38;
  --color-ink:          #17231F;
  --color-cream:        #FBF8F2;
  --color-white:        #FFFFFF;

  /* 1.1 Acentos por propiedad (signature de cada casa) */
  --accent-mare:    #1B5C56; /* Casa Mare — teal océano */
  --accent-terra:   #8A6A3B; /* Casa Terra — tierra / madera */
  --accent-mykonos: #2C6E9B; /* Mykonos Beach House — azul Egeo */
  --accent-refugio: #3E5C3A; /* El Refugio Casa Campestre — verde bosque */

  /* WhatsApp */
  --color-whatsapp: #25D366;

  /* Tipografía */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Sora", "Helvetica Neue", Arial, sans-serif;

  /* Escala tipográfica fluida */
  --fs-hero:    clamp(2.4rem, 5.6vw, 5rem);
  --fs-h2:      clamp(1.9rem, 3.6vw, 3.1rem);
  --fs-h3:      clamp(1.25rem, 2vw, 1.7rem);
  --fs-body:    clamp(1rem, 1.1vw, 1.1rem);
  --fs-caption: 0.78rem;

  /* Espaciado */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6.5rem;

  /* Layout */
  --max-width: 1280px;
  --radius-md: 6px;
  --radius-lg: 18px;

  /* Transiciones */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-ink);
  background-color: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--color-ocean-deep);
}

:focus-visible {
  outline: 2px solid var(--color-coral);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   3. UTILIDADES GENERALES
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - 3rem, var(--max-width));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-caption);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-coral-dark);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.eyebrow--on-dark {
  color: var(--color-sand);
}

.section {
  padding-block: var(--space-xl);
}

.section--sand {
  background-color: var(--color-sand);
}

.section--deep {
  background-color: var(--color-ocean-deep);
  color: var(--color-sand);
}

.section--deep h2,
.section--deep h3 {
  color: var(--color-cream);
}

.section-heading {
  max-width: 62ch;
}

.section-heading--center {
  max-width: 46ch;
  margin-inline: auto;
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.25s var(--ease-standard), background-color 0.25s var(--ease-standard);
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn--primary:hover {
  background-color: var(--color-coral-dark);
}

.btn--ghost {
  /*background-color: transparent;*/
  background-color: #d0b98c;
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
