/* EspañaMail: hoja de estilos del sitio corporativo. Autocontenida, sin recursos
   externos ni fuentes remotas. Paleta granate, oro cálido y crema. */

:root {
  --bg: #fbf5e9;          /* crema cálida */
  --surface: #ffffff;
  --surface-2: #f4ead6;
  --ink: #2a201d;
  --muted: #5f524a;       /* gris cálido con contraste AA sobre crema */
  --border: #e8dcc6;
  --garnet: #7a1c28;
  --garnet-dark: #5f141d;
  --garnet-soft: #f6e3e5;
  --gold: #a97c1c;
  --gold-dark: #6f5010;
  --gold-soft: #f7ecd3;
  --success: #2f6b34;
  --shadow: 0 1px 2px rgba(42,32,29,.06), 0 10px 30px rgba(42,32,29,.08);
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.15; margin: 0 0 .5rem; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: var(--garnet-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin: .3rem 0; }

/* accesibilidad: enlace para saltar al contenido + foco visible */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--garnet); color: #fff;
  padding: .6rem 1rem; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

/* ---- marca / logo ---- */
.logo { display: block; }
.logo .frame { fill: none; stroke: currentColor; stroke-width: 2.4; }
.logo .flap { fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--serif); font-weight: 700; font-size: 1.3rem;
  color: var(--garnet-dark); letter-spacing: .01em;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 26px; height: 26px; color: var(--garnet); }

/* ---- botones ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .6rem 1.1rem; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: background .12s ease, border-color .12s ease, transform .02s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--garnet); color: #fff; }
.btn-primary:hover { background: var(--garnet-dark); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-lg { padding: .8rem 1.5rem; font-size: 1.05rem; border-radius: 12px; }

/* ---- cabecera ---- */
.site-header {
  background: rgba(251,245,233,.9); backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20;
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; }
.nav-toggle { display: none; }
.nav-btn {
  display: none; background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: .45rem .6rem; cursor: pointer; font: inherit; color: var(--ink);
}
.main-nav { display: flex; align-items: center; gap: 1.35rem; }
.main-nav a.navlink { color: var(--ink); font-weight: 600; font-size: .95rem; }
.main-nav a.navlink:hover { color: var(--garnet-dark); text-decoration: none; }
.main-nav a.navlink[aria-current="page"] { color: var(--garnet-dark); border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.nav-actions { display: flex; align-items: center; gap: .6rem; }

/* ---- secciones ---- */
main { display: block; }
.section { padding: 3.5rem 0; }
.section-tight { padding: 2.25rem 0; }
.eyebrow {
  font-family: var(--serif); font-style: italic; color: var(--gold-dark);
  font-size: 1.05rem; margin: 0 0 .6rem;
}
.lede { font-size: 1.2rem; color: var(--muted); max-width: 46ch; }

/* portada */
.hero { padding: 4rem 0 2.5rem; }
.hero .lede { margin-bottom: 1.75rem; }
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-note { margin-top: 1rem; color: var(--muted); font-size: .92rem; }

/* rejillas de tarjetas */
.grid { display: grid; gap: 1.1rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem 1.4rem; box-shadow: var(--shadow);
}
.card h3 { margin-top: .2rem; }
.card .ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; margin-bottom: .7rem;
  background: var(--garnet-soft); color: var(--garnet-dark);
}
.card .ico svg { width: 22px; height: 22px; }

/* pasos */
.steps { counter-reset: step; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--serif); font-weight: 700; color: #fff; background: var(--garnet);
  width: 34px; height: 34px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; margin-bottom: .6rem;
}

/* banda de llamada a la accion */
.cta-band { background: var(--garnet); color: #fff; border-radius: var(--radius); padding: 2.25rem; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #f6e3e5; max-width: 52ch; margin: 0 auto 1.25rem; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.12); }
.cta-band .btn-gold { background: var(--gold-soft); color: var(--garnet-dark); }
.cta-band .btn-gold:hover { background: #fff; }

/* precios */
.pricing { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.plan.featured { border-color: var(--garnet); border-width: 2px; }
.plan .tag { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--gold-dark); background: var(--gold-soft); padding: .15rem .55rem; border-radius: 999px; margin-bottom: .6rem; }
.plan .price { font-family: var(--serif); font-size: 2.2rem; color: var(--ink); }
.plan .price small { font-size: 1rem; color: var(--muted); font-family: var(--font); }
.plan ul { list-style: none; padding: 0; margin: 1rem 0 1.4rem; }
.plan ul li { display: flex; gap: .5rem; align-items: flex-start; margin: .5rem 0; }
.plan ul li::before { content: "✓"; color: var(--success); font-weight: 700; flex: none; }
.plan .avail { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }

/* contenido de prosa (privacidad, condiciones, sobre nosotros) */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.4rem; }
.prose .updated { color: var(--muted); font-size: .9rem; }
.callout { background: var(--gold-soft); border: 1px solid #ecd9ac; border-radius: 12px; padding: 1rem 1.2rem; margin: 1.25rem 0; }

/* faq */
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: .5rem 1rem; margin: .6rem 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: .6rem 0; }
.faq summary::marker { color: var(--gold-dark); }
.faq details[open] summary { color: var(--garnet-dark); }

/* contacto */
.contact-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* pie */
.site-footer { border-top: 1px solid var(--border); background: var(--surface-2); margin-top: 2rem; }
.footer-grid { display: grid; gap: 1.5rem; grid-template-columns: 1.4fr 1fr 1fr; padding: 2.5rem 0 1.5rem; }
.footer-grid h4 { font-family: var(--serif); font-size: 1rem; margin: 0 0 .6rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: .35rem 0; }
.footer-grid a { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.1rem 0 2rem; color: var(--muted); font-size: .88rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

@media (max-width: 760px) {
  .nav-btn { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: .35rem;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 1rem 1.5rem 1.5rem;
  }
  .nav-toggle:checked ~ .main-nav { display: flex; }
  .main-nav .nav-actions { flex-direction: column; align-items: stretch; width: 100%; margin-top: .5rem; }
  .main-nav .nav-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}
