/* MyDeon — hoja de estilos principal */

:root {
  --orange: #d9701c;
  --orange-dark: #b35a12;
  --orange-soft: #f4a24c;
  --ochre: #c08a3e;
  --ochre-dark: #8c5a1e;
  --cream: #fdf6ec;
  --cream-2: #fbeedd;
  --line: #efdcc2;
  --ink: #2b2119;
  --ink-2: #5d4c3d;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(60, 35, 10, .06), 0 8px 24px rgba(60, 35, 10, .07);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--orange-dark); }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--orange-soft); outline-offset: 2px; border-radius: 4px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.4em;
  border: 2px solid var(--orange); border-radius: 999px;
  background: var(--orange); color: #fff;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(217, 112, 28, .3); }
.btn-ghost { background: transparent; color: var(--orange-dark); }
.btn-ghost:hover { background: var(--cream-2); color: var(--orange-dark); box-shadow: none; }
.btn-sm { padding: .5em 1.1em; font-size: .95rem; }

.eyebrow {
  display: inline-block; margin-bottom: .8em;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ochre-dark);
}
.accent { color: var(--orange); }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 2px 12px rgba(60, 35, 10, .05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: .6em; text-decoration: none; color: var(--ink); }
.brand-mark { width: 38px; height: 38px; }
.brand-name { font-size: 1.45rem; font-weight: 500; letter-spacing: -.02em; }
.brand-name b { font-weight: 800; color: var(--orange); }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav a:not(.btn):hover { color: var(--orange-dark); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 500px at 85% -10%, var(--cream-2), transparent 60%),
    linear-gradient(var(--white), var(--cream));
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.8em 0 1.6em; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5em 1.4em; color: var(--ink-2); font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: .45em; }
.hero-points li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.hero-art svg { width: 100%; height: auto; }
.hero-art .float { animation: bob 6s ease-in-out infinite; }
.hero-art .f2 { animation-delay: -2s; }
.hero-art .f3 { animation-delay: -4s; }
@keyframes bob { 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art .float { animation: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Franja ---------- */
.strip { background: var(--ink); color: #f6e9d8; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-grid > div { padding: 26px 20px; border-left: 1px solid rgba(255, 255, 255, .08); }
.strip-grid > div:first-child { border-left: 0; padding-left: 0; }
.strip strong { display: block; color: var(--orange-soft); font-size: 1.1rem; }
.strip span { font-size: .92rem; color: #cdbba6; }

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section.alt { background: var(--cream); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p:last-child { color: var(--ink-2); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative;
  padding: 28px 26px 24px;
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card::after {
  content: ""; position: absolute; left: 26px; right: 26px; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--ochre));
  border-radius: 0 0 3px 3px; transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #e9c89c; }
.card:hover::after { transform: scaleX(1); }
.card p { color: var(--ink-2); font-size: .97rem; margin: 0; }

.ico {
  width: 52px; height: 52px; margin-bottom: 18px;
  display: grid; place-items: center;
  border-radius: 12px; background: var(--cream-2);
}
.ico svg { width: 26px; height: 26px; fill: none; stroke: var(--orange-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.note { margin-top: 32px; color: var(--ink-2); }

.two-col { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.two-col > div:first-child p { color: var(--ink-2); }

.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.features li {
  padding: 22px 22px 18px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  border-left: 4px solid var(--ochre);
}
.features p { margin: 0; color: var(--ink-2); font-size: .95rem; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.chips li {
  padding: .7em 1.25em; border-radius: 999px;
  background: var(--cream); border: 1px solid var(--line);
  font-weight: 600; color: var(--ink-2);
  transition: background .2s, color .2s, border-color .2s;
}
.chips li:hover { background: var(--orange); border-color: var(--orange); color: #fff; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 26px 22px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.steps p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.steps .n {
  display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px;
  border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; font-size: 1.1rem;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 47px; right: -21px; width: 22px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--ochre) 0 4px, transparent 4px 8px);
}

/* ---------- Contacto ---------- */
.contact { background: linear-gradient(180deg, var(--white), var(--cream)); }
.contact-box {
  margin: 28px 0 12px; padding: 20px 22px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-label { display: block; font-size: .85rem; color: var(--ink-2); margin-bottom: 2px; }
.mail { font-size: clamp(1.2rem, 2.6vw, 1.5rem); font-weight: 800; text-decoration: none; word-break: break-all; }
.mail:hover { text-decoration: underline; }
.small { font-size: .88rem; color: var(--ink-2); }

.quote {
  padding: 28px; background: var(--white);
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
}
.quote .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote label { display: block; margin-bottom: 16px; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.quote input, .quote select, .quote textarea {
  display: block; width: 100%; margin-top: 6px;
  padding: .75em .9em; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--cream); border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .2s, background .2s;
}
.quote textarea { resize: vertical; }
.quote input:focus, .quote select:focus, .quote textarea:focus { outline: none; border-color: var(--orange); background: var(--white); }
.quote .btn { width: 100%; margin-top: 4px; }
.form-hint { margin: 12px 0 0; text-align: center; }
.form-error { margin: 10px 0 0; color: #b3261e; font-weight: 600; text-align: center; }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: #cdbba6; padding: 56px 0 24px; font-size: .95rem; }
.site-footer a { color: #f1dfc6; text-decoration: none; }
.site-footer a:hover { color: var(--orange-soft); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-grid nav { display: flex; flex-direction: column; gap: 8px; }
.footer-grid h4 { color: #fff; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.brand-footer { margin-bottom: 14px; }
.brand-footer .brand-name { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem;
}

/* ---------- Páginas legales ---------- */
.legal { padding: 56px 0 88px; }
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal p, .legal li { color: var(--ink-2); }
.pending { background: #fff3cd; padding: 0 .3em; border-radius: 4px; color: #7a5200; }

/* ---------- Animación de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; margin-inline: auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li::after { display: none; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-grid > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; border: 0; background: none; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 20px; background: var(--white);
    border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(60, 35, 10, .08);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .cards, .features, .steps, .quote .row { grid-template-columns: 1fr; }
  .quote .row { gap: 0; }
  .strip-grid { grid-template-columns: 1fr; }
  .strip-grid > div { border-left: 0; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
  .strip-grid > div:first-child { border-top: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .quote { padding: 20px; }
}
