/* ============================================
   BASE.CSS — Variables, Reset, Tipografía
   claudianassisi.com
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

/* --- VARIABLES --- */
:root {
  /* Paleta */
  --warm-taupe:   #C4A98A;
  --taupe-dark:   #9A8062;
  --off-white:    #F5F0EB;
  --linen:        #DDD5C8;
  --sage:         #9AA89A;
  --deep-sage:    #4F5A52;
  --dark:         #2A2E2B;
  --white:        #FFFFFF;

  /* Tipografía */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', sans-serif;

  /* Escala tipo */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.375rem;
  --text-2xl:  1.75rem;
  --text-3xl:  2.25rem;
  --text-4xl:  3rem;
  --text-5xl:  4rem;
  --text-hero: clamp(3.5rem, 8vw, 6.5rem);

  /* Espaciado */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  3rem;
  --space-xl:  4.5rem;
  --space-2xl: 7rem;

  /* Layout */
  --max-width: 1280px;
  --gutter:    clamp(1.5rem, 5vw, 4rem);

  /* Transiciones */
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  /* Sombras */
  --shadow-sm: 0 2px 12px rgba(79, 90, 82, 0.08);
  --shadow-md: 0 8px 32px rgba(79, 90, 82, 0.12);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-base);
  color: var(--dark);
  background-color: var(--off-white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* --- TIPOGRAFÍA BASE --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

/* Acentos italic en titulares — taupe oscuro legible */
h1 em, h2 em, h3 em, h4 em {
  color: var(--taupe-dark);
  font-style: italic;
  font-weight: 300;
}

p { max-width: 65ch; }

/* Eyebrow — etiqueta pequeña sobre títulos */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--taupe-dark);
  display: block;
  margin-bottom: var(--space-sm);
}

/* --- LAYOUT HELPERS --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

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

.section--dark {
  background-color: var(--deep-sage);
  color: var(--off-white);
}

/* Textura sutil — da profundidad sin ser plano */
.section--alt {
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(196,169,138,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(154,168,154,0.06) 0%, transparent 50%);
}

/* --- MOTION --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
