/* ==========================================================================
   ILRITORNO — base.css
   Variables, reset, tipografias, helpers
   ========================================================================== */

@font-face {
  font-family: 'Cremona';
  src: url('../fonts/Cremona-Regular.woff2') format('woff2'),
       url('../fonts/Cremona-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  /* Cremona solo para Latin basico — los diacriticos (Á, É, Í, Ó, Ú, Ñ, ñ,
     á, é, í, ó, ú) caen automaticamente al fallback Cormorant SC porque el
     archivo Cremona OTF no incluye esos glifos. */
  unicode-range: U+0020-007E;
}

:root {
  /* Paleta Olive Garden — Manual de Marca */
  --ir-cream: #F0EADB;        /* Primario 1 — fondo principal */
  --ir-sage: #C1C6A9;         /* Primario 2 — verde sage acentos */
  --ir-dark: #2E2F24;         /* Primario 3 — texto principal */
  --ir-beige: #D3C8B1;        /* Secundario 1 — fondos alt */
  --ir-olive: #8B8E78;        /* Secundario 2 — texto secundario */
  --ir-earth: #686150;        /* Secundario 3 — bordes, detalles */

  /* Aplicacion */
  --ir-bg: var(--ir-cream);
  --ir-text: var(--ir-dark);
  --ir-text-soft: var(--ir-olive);
  --ir-line: rgba(46, 47, 36, 0.12);
  --ir-line-strong: rgba(46, 47, 36, 0.4);
  --ir-accent: var(--ir-sage);
  --ir-accent-dark: var(--ir-earth);

  /* Tipografias — Marcellus SC para display (small caps elegante similar a
     Cremona, tiene latin-ext con TODAS las tildes Á É Í Ó Ú Ñ á é í ó ú ñ).
     Cormorant Garamond para body. */
  --ir-font-display: 'Marcellus SC', 'Cormorant SC', Georgia, serif;
  --ir-font-body: 'Cormorant Garamond', Georgia, serif;
  --ir-font-ui: 'Inter', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;

  /* Escala tipografica fluida (clamp) */
  --fs-xs: clamp(0.75rem, 0.7rem + 0.15vw, 0.85rem);
  --fs-sm: clamp(0.875rem, 0.82rem + 0.2vw, 0.95rem);
  --fs-base: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
  --fs-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.35rem);
  --fs-xl: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  --fs-2xl: clamp(2rem, 1.6rem + 1.6vw, 3rem);
  --fs-3xl: clamp(2.5rem, 1.8rem + 2.5vw, 4.5rem);
  --fs-4xl: clamp(3rem, 2rem + 4vw, 6rem);

  /* Espaciado */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-8: 3rem;
  --sp-10: 4rem;
  --sp-12: 6rem;
  --sp-16: 8rem;

  /* Containers */
  --container-max: 1280px;
  --container-pad: clamp(1rem, 4vw, 2.5rem);

  /* Bordes / radios */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  /* Sombras suaves */
  --shadow-sm: 0 1px 2px rgba(46, 47, 36, 0.04), 0 1px 3px rgba(46, 47, 36, 0.06);
  --shadow: 0 4px 12px rgba(46, 47, 36, 0.08);
  --shadow-md: 0 10px 30px rgba(46, 47, 36, 0.12);

  /* Transiciones */
  --t-fast: 150ms ease;
  --t: 250ms ease;
  --t-slow: 450ms ease;

  /* Header */
  --header-h: 130px;
  --header-h-mobile: 90px;
}

/* Reset minimalista */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--ir-bg);
  color: var(--ir-text);
  font-family: var(--ir-font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; transition: color var(--t); }
a:hover { color: var(--ir-earth); }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* Tipografias */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ir-font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--ir-dark);
}
h1 { font-size: var(--fs-3xl); margin-bottom: var(--sp-5); }
h2 { font-size: var(--fs-2xl); margin-bottom: var(--sp-4); }
h3 { font-size: var(--fs-xl); margin-bottom: var(--sp-3); }
h4 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
h5, h6 { font-size: var(--fs-base); margin-bottom: var(--sp-2); }
p { margin-bottom: var(--sp-4); }
small { font-size: var(--fs-sm); }
strong, b { font-weight: 600; }
em, i { font-style: italic; }

/* Helpers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 inline auto;
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.text-center { text-align: center; }
.text-display { font-family: var(--ir-font-display); }
.text-body { font-family: var(--ir-font-body); }
.text-ui { font-family: var(--ir-font-ui); }
.eyebrow {
  font-family: var(--ir-font-ui);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ir-olive);
  margin-bottom: var(--sp-3);
  display: inline-block;
}
.divider {
  width: 60px;
  height: 1px;
  background: var(--ir-olive);
  margin: var(--sp-5) auto;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.85rem 1.75rem;
  font-family: var(--ir-font-ui);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--t);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--ir-dark); color: var(--ir-cream); }
.btn-primary:hover { background: var(--ir-earth); color: var(--ir-cream); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ir-dark); border-color: var(--ir-dark); }
.btn-outline:hover { background: var(--ir-dark); color: var(--ir-cream); }
.btn-sage { background: var(--ir-sage); color: var(--ir-dark); }
.btn-sage:hover { background: var(--ir-olive); color: var(--ir-cream); }
.btn-link { padding: 0; background: none; color: var(--ir-dark); border-bottom: 1px solid currentColor; border-radius: 0; }
.btn-link:hover { color: var(--ir-earth); }

/* Forms */
input[type="text"], input[type="email"], input[type="tel"], input[type="search"],
input[type="password"], input[type="number"], textarea, select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--ir-font-ui);
  font-size: var(--fs-sm);
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--ir-line);
  border-radius: var(--radius);
  color: var(--ir-dark);
  transition: border-color var(--t), background var(--t);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--ir-earth);
  background: #fff;
}
label {
  display: block;
  font-family: var(--ir-font-ui);
  font-size: var(--fs-sm);
  font-weight: 500;
  margin-bottom: var(--sp-2);
  color: var(--ir-dark);
}

/* Selecciones */
::selection { background: var(--ir-sage); color: var(--ir-dark); }
