/* ERYS · paleta tomada del logotipo */
:root {
  --blue: #065FAD;        /* azul "ERYS" (muestreado) */
  --blue-ring: #137EB7;   /* azul del anillo y texto circular (muestreado) */
  --gold: #826736;        /* dorado/bronce del martillo DTH (muestreado) */
  --gold-light: #B9A076;  /* brillo del dorado (muestreado) */
  --navy: #0B1F3A;        /* azul marino para la franja superior */
  --navy-2: #102A4C;
  --ink: #1C2733;
  --muted: #5A6675;
  --line: #E1E6EC;
  --light: #F4F6F9;
  --white: #FFFFFF;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(11, 31, 58, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85em 1.5em; border-radius: 999px; font-weight: 700;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  font-family: inherit; font-size: 1rem; transition: background .2s, color .2s, transform .1s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: #054C8A; }
.btn-gold { background: var(--gold-light); color: var(--navy); }
.btn-gold:hover { background: #CBB48C; }
.btn-ghost { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-sm { padding: .55em 1.1em; font-size: .92rem; }
.btn-lg { width: 100%; padding: 1em 1.5em; font-size: 1.1rem; }
.hero-actions .btn { font-size: 1.28rem; padding: 1.05em 1.95em; }
.site-header .btn-sm { font-size: 1.18rem; padding: .75em 1.5em; }
.btn:disabled { opacity: .6; cursor: progress; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.2rem; letter-spacing: .08em; color: var(--blue); }
.brand-text small { font-size: .72rem; color: var(--muted); letter-spacing: .02em; }

/* Hero */
.hero {
  background:
    radial-gradient(900px 400px at 15% 0%, rgba(19,126,183,.28), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
  padding: clamp(48px, 8vw, 96px) 0;
  border-bottom: 4px solid var(--gold-light);
}
.hero-inner { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-logo {
  width: clamp(170px, 24vw, 260px); height: auto; border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(255,255,255,.08), 0 20px 50px rgba(0,0,0,.35);
}
.hero h1 { color: var(--white); max-width: 18ch; }
.h1-acr { color: var(--gold-light); }
.industries {
  list-style: none; padding: 0; margin: 0 0 1.1em; display: flex; flex-wrap: wrap; gap: 8px;
}
.industries li {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-light); border: 1px solid rgba(185,160,118,.5); border-radius: 999px;
  padding: .35em .9em; background: rgba(185,160,118,.08);
}
.lead { font-size: 1.12rem; color: #D5DEEA; max-width: 52ch; text-align: justify; hyphens: auto; }
.card p, .reasons p, .privacy-short { text-align: justify; hyphens: auto; }
.legal p:not(.updated) { text-align: justify; hyphens: auto; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.4em; }

/* Secciones */
.section { padding: clamp(56px, 8vw, 88px) 0; }
.section-alt { background: var(--light); }
.section-tag {
  color: var(--gold); font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; font-size: .8rem; margin-bottom: .5em;
}
.section-tag::before { content: ""; display: inline-block; width: 24px; height: 2px; background: var(--gold-light); vertical-align: middle; margin-right: 10px; }

/* Tarjetas */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); border-top: 4px solid var(--blue);
}
.card p { color: var(--muted); margin: 0; }
.icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(6,95,173,.08); color: var(--blue); margin-bottom: 18px;
}
.icon svg { width: 30px; height: 30px; }

/* Por qué */
.reasons { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.reasons li {
  background: var(--white); border-radius: var(--radius); padding: 26px 22px;
  border: 1px solid var(--line); border-bottom: 3px solid var(--gold-light);
}
.reasons h3 { margin: 0 0 .4em; font-size: 1.05rem; }
.reasons p { margin: 0; color: var(--muted); font-size: .95rem; }
.r-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(130,103,54,.12); color: var(--gold); margin-bottom: 16px; }
.r-icon svg { width: 24px; height: 24px; }

/* Contacto */
.contact-inner { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; }
.contact-head { text-align: center; margin-bottom: 28px; }
.contact-head h2 { margin-bottom: .35em; }
.contact-head > p:last-child { color: var(--muted); margin: 0; text-align: center; }

.quote-form {
  width: 100%; background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow); display: grid; gap: 18px;
}
.quote-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote-form label, .choice legend { display: grid; gap: 6px; font-weight: 600; font-size: 1rem; color: var(--navy); }
.quote-form input[type=text], .quote-form input[type=tel], .quote-form input[type=email], .quote-form textarea {
  font: inherit; font-weight: 400; color: var(--ink); font-size: 1.02rem;
  padding: .85em 1em; border: 1.5px solid #CBD3DC; border-radius: 10px; background: var(--white); width: 100%;
}
.quote-form textarea { resize: vertical; min-height: 130px; }
.quote-form input:focus, .quote-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(6,95,173,.18); }
.quote-form input::placeholder, .quote-form textarea::placeholder { color: #98A3B0; }
.choice { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice legend { padding: 0; margin-bottom: 6px; }
.choice-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice-opts label { position: relative; display: block; }
.choice-opts input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice-opts span {
  display: block; text-align: center; padding: .8em .5em; border: 1.5px solid #CBD3DC; border-radius: 10px;
  font-weight: 600; color: var(--muted); transition: all .15s;
}
.choice-opts input:checked + span { border-color: var(--blue); background: rgba(6,95,173,.08); color: var(--blue); }
.choice-opts input:focus-visible + span { box-shadow: 0 0 0 3px rgba(6,95,173,.18); }
.quote-form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .95rem; color: var(--ink); }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.consent a, .privacy-short a { color: var(--blue); }
.privacy-short { margin: 0; font-size: .78rem; line-height: 1.5; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.privacy-short strong { color: var(--navy); }
.nowrap { white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 0; min-height: 0; font-weight: 600; text-align: center; color: var(--muted); }
.form-status:empty { display: none; }
.form-status.ok { color: #1E7B3A; }
.form-status.err { color: #B42318; }

/* Footer */
.site-footer { background: var(--navy); color: #B8C4D3; padding: 36px 0; font-size: .9rem; }
.footer-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px 32px;
}
.footer-inner p { margin: 0; }
.footer-legal { justify-self: start; display: grid; gap: 8px; font-size: .84rem; }
.footer-legal nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-legal a { color: #D5DEEA; text-decoration: none; }
.footer-legal a:hover { color: var(--gold-light); text-decoration: underline; }
.footer-logo { justify-self: center; }
.footer-logo img { width: 76px; height: 76px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,255,255,.12); }
.footer-social { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; justify-self: end; }
.footer-social a {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: #D5DEEA; text-decoration: none; font-size: .78rem; font-weight: 600; text-align: center;
  max-width: 120px; line-height: 1.25;
}
.f-icon {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  color: var(--white); border: 1.5px solid rgba(255,255,255,.35); transition: all .2s;
}
.f-icon svg { width: 26px; height: 26px; }
.footer-social a:hover { color: var(--gold-light); }
.footer-social a:hover .f-icon { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy); }

/* Páginas legales */
.legal { padding: clamp(40px, 6vw, 72px) 0; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.legal h2 { font-size: 1.2rem; margin-top: 2em; padding-top: .2em; }
.legal p, .legal li { color: #34404D; }
.legal ul, .legal ol { padding-left: 1.3em; margin: 0 0 1em; }
.legal li { margin-bottom: .35em; }
.legal a { color: var(--blue); }
.legal .updated { color: var(--muted); font-size: .9rem; }
.legal .box { background: var(--light); border-left: 3px solid var(--gold-light); border-radius: 8px; padding: 16px 20px; margin: 1.2em 0; }
.legal .box p:last-child { margin: 0; }
.back-link { display: inline-block; margin-bottom: 1.5em; color: var(--blue); font-weight: 600; text-decoration: none; }

/* Responsive */
@media (max-width: 1000px) {
  .reasons { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .hero h1 { margin-inline: auto; }
  .industries { justify-content: center; }
  .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .quote-form .row { grid-template-columns: 1fr; }
  .footer-inner { display: flex; flex-direction: column; text-align: center; }
  .footer-logo { order: 1; }
  .footer-social { order: 2; justify-content: center; }
  .footer-legal { order: 3; justify-self: center; justify-items: center; max-width: none; }
  .footer-legal nav { justify-content: center; }
}
@media (max-width: 560px) {
  .reasons { grid-template-columns: 1fr; }
  .choice-opts { gap: 8px; }
  .choice-opts span { font-size: .9rem; padding: .7em .2em; }
}
@media (max-width: 480px) {
  .brand-text small { display: none; }
  .site-header .btn-sm { padding: .65em 1.15em; font-size: 1.05rem; }
  .hero-actions .btn { width: 100%; }
  .industries { gap: 6px; }
  .industries li { font-size: .64rem; letter-spacing: .06em; padding: .35em .65em; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
