/* =================================================================
   Hípica El Molino — hoja de estilos
   Misma estética que Restaurante La Hípica:
   Cormorant Garamond · paleta crema, marrón y dorado
   ================================================================= */

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

:root {
  --cream:     #E6E0D6;   /* fondo principal */
  --paper:     #EFE9DD;   /* fondo alterno */
  --white:     #FAF7F0;   /* tarjetas */
  --ink:       #3F3527;   /* texto principal */
  --ink-soft:  #5E5141;   /* texto secundario */
  --muted:     #8F8068;   /* texto tenue */
  --line:      #C9BEA8;   /* bordes */
  --accent:    #8B7355;   /* marrón cálido */
  --accent-d:  #6E5A40;
  --gold:      #B59673;   /* dorado suave */
  --warm:      #6B5840;   /* marrón tabaco */
  --warm-d:    #4F4334;   /* marrón profundo (footer) */
  --on-warm:   #F2ECDF;
  --on-warm-mut:#D8CDB6;

  --shadow:    0 14px 38px rgba(63,53,39,.10);
  --shadow-sm: 0 4px 14px rgba(63,53,39,.06);
  --radius:    4px;
  --container: 1180px;

  /* aliases de compatibilidad con el HTML existente */
  --bg: var(--cream);
  --ember: var(--accent);
  --ember-dk: var(--accent-d);
  --wood: var(--warm);
  --wood-dark: var(--warm-d);
  --green: var(--warm);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Cormorant Garamond', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Cormorant Garamond', 'EB Garamond', Garamond, Georgia, serif;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-d); }

h1, h2, h3, h4, h5 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500; color: var(--ink);
  letter-spacing: .005em; line-height: 1.15; margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5vw + 1rem, 4.6rem); letter-spacing: .015em; }
h2 { font-size: clamp(1.9rem, 3vw + .8rem, 3rem); }
h3 { font-size: clamp(1.4rem, 1.5vw + .8rem, 1.9rem); }
h4 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(var(--container), 92%); margin: 0 auto; }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--paper { background: var(--paper); }
.section--wood, .section--dark { background: var(--warm); color: var(--on-warm); }
.section--wood h2, .section--wood h3, .section--dark h2, .section--dark h3 { color: var(--on-warm); }
.text-center { text-align: center; }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 62ch; }

.eyebrow {
  display: inline-block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: .9rem; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .8rem;
}
.eyebrow::before { content: "— "; color: var(--gold); }
.eyebrow::after  { content: " —"; color: var(--gold); }
.section--wood .eyebrow, .section--dark .eyebrow, .cta-strip .eyebrow { color: var(--gold); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--white);
  border-radius: var(--radius);
  transition: all .25s ease; cursor: pointer;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--white); transform: translateY(-1px); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-d); border-color: var(--accent-d); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--light:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(230,224,214,.94);
  backdrop-filter: saturate(120%) blur(10px);
  -webkit-backdrop-filter: saturate(120%) blur(10px);
  border-bottom: 1px solid rgba(63,53,39,.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; width: min(1340px, 92%); margin: 0 auto; }
.brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.55rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); line-height: 1.1; display: flex; flex-direction: column; flex-shrink: 0;
}
.brand small { font-size: .62rem; font-weight: 500; letter-spacing: .35em; color: var(--accent); text-transform: uppercase; margin-top: 3px; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  font-size: .92rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); position: relative; padding: 6px 0; transition: color .2s ease; white-space: nowrap;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); }
.nav-links a[aria-current="page"]:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--accent); }
.nav-cta { padding: 10px 20px !important; font-size: .85rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; background: var(--accent); color: var(--white) !important; border-radius: var(--radius); }
.nav-cta:hover { background: var(--accent-d); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; flex-shrink: 0; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); transition: .25s; }
.nav-toggle span { top: 50%; } .nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }

@media (max-width: 1024px) {
  .site-header { background: var(--cream) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; box-shadow: 0 2px 8px rgba(63,53,39,.06); }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-top: 1px solid var(--line);
    padding: 14px 24px 22px; display: none; box-shadow: 0 24px 60px rgba(63,53,39,.22);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.05rem; padding: 14px 4px; border-bottom: 1px solid var(--line); width: 100%; }
  .nav-links a[aria-current="page"]:not(.nav-cta)::after { display: none; }
  .nav-cta { margin-top: 16px; text-align: center; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: clamp(560px, 84vh, 860px);
  display: flex; align-items: center; color: var(--on-warm);
  overflow: hidden; isolation: isolate;
  background: var(--warm-d); background-size: cover; background-position: center;
}
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.34); }
.hero .container { position: relative; z-index: 2; text-align: center; max-width: 880px; }
.hero .eyebrow { color: var(--gold) !important; }
.hero h1 { color: var(--white); font-style: italic; font-weight: 500; max-width: 18ch; margin: 0 auto 18px; text-shadow: 0 2px 30px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.4); }
.hero p { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: clamp(1.1rem, 1.5vw, 1.4rem); color: var(--white); max-width: 620px; margin: 0 auto 32px; text-shadow: 0 1px 14px rgba(0,0,0,.55); }
.hero .btn-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- Banner interior ---------- */
.page-banner {
  position: relative; text-align: center; color: var(--on-warm);
  padding: clamp(110px, 14vw, 180px) 0 clamp(50px, 7vw, 90px);
  background: var(--warm) center/cover; overflow: hidden;
}
.page-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.5) 100%); }
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { color: var(--white); font-style: italic; text-shadow: 0 2px 22px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.4); }
.page-banner p { color: var(--white); max-width: 640px; margin: 0 auto; text-shadow: 0 1px 12px rgba(0,0,0,.55); }
.breadcrumb { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.breadcrumb a { color: var(--on-warm-mut); } .breadcrumb a:hover { color: var(--gold); } .breadcrumb span { margin: 0 8px; opacity: .5; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (max-width: 620px) { .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s ease, box-shadow .35s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-body { padding: 28px 26px 32px; }
.card-body h3 { margin-bottom: .4em; }
.card-body p { color: var(--ink-soft); }

/* tarjeta de servicio (icono) */
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; transition: transform .25s ease, box-shadow .25s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.feature .icon { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--white); display: grid; place-items: center; margin-bottom: 16px; }
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { margin-bottom: 8px; font-weight: 600; }
.feature p { color: var(--ink-soft); font-size: 1rem; }

/* ---------- Bloque texto/imagen ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split + .split { margin-top: clamp(48px, 7vw, 90px); }
.split.reverse .split-media { order: 2; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 30px; } .split.reverse .split-media { order: 0; } }
.split-media img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.split-text h2 { margin-bottom: 14px; font-style: italic; }
.split-text p { color: var(--ink-soft); margin-bottom: 14px; }

/* ---------- Lista con check ---------- */
.checklist { list-style: none; margin: 14px 0 0; padding: 0; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--ink-soft); }
.checklist li::before { content: "→"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 600; }

/* ---------- Precios ---------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }
.price-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 30px; text-align: center; transition: transform .25s ease, box-shadow .25s ease; }
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.price-card.feature-tier { border-color: var(--accent); border-width: 2px; }
.price-card .tier { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.5rem; font-weight: 600; margin-bottom: 6px; }
.price-card .amount { font-size: 2rem; font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; color: var(--accent); }
.price-card .amount small { font-size: .9rem; color: var(--ink-soft); font-style: normal; }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 26px; text-align: left; }
.price-card ul li { padding: 9px 0 9px 24px; position: relative; border-bottom: 1px dashed var(--line); color: var(--ink-soft); font-size: 1rem; }
.price-card ul li::before { content: "›"; position: absolute; left: 4px; color: var(--accent); }

/* ---------- Placeholder ---------- */
.ph { background: linear-gradient(135deg, #6B5840, #4F4334); color: rgba(242,236,223,.65); display: grid; place-items: center; text-align: center; font-style: italic; font-size: 1rem; padding: 16px; border-radius: var(--radius); }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery img, .gallery .ph { aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius); }

/* ---------- Franja CTA ---------- */
.cta-strip { background: linear-gradient(135deg, var(--warm), var(--warm-d)); color: var(--on-warm); text-align: center; padding: clamp(56px, 8vw, 100px) 0; position: relative; overflow: hidden; }
.cta-strip::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(181,150,115,.16), transparent 65%); }
.cta-strip .container { position: relative; z-index: 1; }
.cta-strip h2 { color: var(--white); font-style: italic; margin-bottom: 12px; }
.cta-strip p { color: var(--on-warm-mut); max-width: 56ch; margin: 0 auto 28px; }

/* ---------- Info / horarios ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; text-align: center; }
.info-card .icon { width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 50%; background: var(--accent); color: var(--white); display: grid; place-items: center; }
.info-card .icon svg { width: 18px; height: 18px; }
.info-card h4 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.4rem; font-weight: 600; margin-bottom: 8px; }
.info-card p, .info-card a { color: var(--ink-soft); font-size: 1rem; }
.info-card a:hover { color: var(--accent); }
.hours-list { list-style: none; padding: 0; font-size: 1rem; }
.hours-list li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); gap: 12px; color: var(--ink-soft); }
.hours-list li.closed { color: var(--muted); }
.hours-list .day { font-weight: 600; color: var(--ink); }

/* ---------- Formulario ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea { font-family: inherit; font-size: 1.05rem; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); color: var(--ink); }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }

/* ---------- Mapa ---------- */
.map-embed { border: 0; width: 100%; height: 100%; min-height: 340px; border-radius: var(--radius); }

/* ---------- Footer ---------- */
.site-footer { background: var(--warm-d); color: var(--on-warm-mut); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.site-footer .brand { color: var(--white); }
.site-footer .brand small { color: var(--gold); }
.site-footer p { color: var(--on-warm-mut); font-size: 1rem; line-height: 1.65; }
.site-footer h5 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: .88rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; line-height: 1.55; }
.site-footer a { color: var(--on-warm-mut); }
.site-footer a:hover { color: var(--white); }
.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border: 1px solid rgba(250,247,240,.18); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: all .2s ease; }
.socials a:hover { background: var(--accent); border-color: var(--accent); }
.socials svg { width: 16px; height: 16px; color: var(--white); }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(250,247,240,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: .85rem; color: rgba(216,205,182,.75); }
.footer-bottom a { color: rgba(216,205,182,.85); }
.footer-bottom a:hover { color: var(--white); }

/* ---------- WhatsApp flotante ---------- */
.fab-wa { position: fixed; right: 18px; bottom: 18px; z-index: 70; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(37,211,102,.35); transition: transform .2s ease; }
.fab-wa:hover { transform: scale(1.05); color: #fff; }
.fab-wa svg { width: 26px; height: 26px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Utilidades ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.note { background: rgba(181,150,115,.14); border-left: 3px solid var(--gold); padding: 16px 20px; border-radius: var(--radius); font-size: 1rem; color: var(--ink-soft); }

@media (max-width: 720px) { body { font-size: 18px; } .hero .btn-row, .cta-strip .btn { } }
@media (max-width: 480px) { body { font-size: 17px; } .brand { font-size: 1.35rem; } }
