/* ============================================================
   Extintores Valencia — CSS principal
   Sin dependencias externas · Optimizado para velocidad y SEO
   ============================================================ */

:root {
  --red: #C0392B;
  --red-dark: #922B21;
  --red-light: #E74C3C;
  --orange: #E67E22;
  --dark: #1C1C2E;
  --text: #2C3E50;
  --text-light: #5D6D7E;
  --bg: #FFFFFF;
  --bg-alt: #F4F6F9;
  --border: #DDE1E7;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --max-w: 1200px;
  --nav-h: 68px;
}
.hero-badges {color:white}]
.stats-inner {color:white!important}]
/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }

/* ── Accesibilidad ── */
.skip-link { position: absolute; top: -40px; left: 0; background: var(--red); color: #fff; padding: .5rem 1rem; z-index: 9999; text-decoration: none; font-size: .9rem; }
.skip-link:focus { top: 0; }

/* ── Navegación ── */
.site-nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--dark);
  height: var(--nav-h);
  display: flex; align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 1.5rem; width: 100%;
  display: flex; align-items: center; gap: 1.5rem;
}
.nav-logo {
  font-weight: 800; font-size: 1.15rem;
  color: #fff; text-decoration: none;
  white-space: nowrap; flex-shrink: 0; letter-spacing: -.01em;
}
.nav-logo span { color: var(--red-light); }
.nav-menu { display: flex; list-style: none; margin-left: auto; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: flex; align-items: center; gap: .25rem;
  color: rgba(255,255,255,.82); text-decoration: none;
  font-size: .85rem; font-weight: 500;
  padding: 0 .9rem; height: var(--nav-h);
  transition: color .2s, background .2s; white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li:hover > a { color: #fff; background: rgba(255,255,255,.07); }

/* Dropdown */
.nav-dropdown {
  display: none; position: absolute;
  top: calc(var(--nav-h) - 2px); left: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg); min-width: 220px;
  list-style: none; z-index: 300;
}
.nav-menu > li:hover .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block; padding: .65rem 1.2rem;
  color: var(--text); text-decoration: none;
  font-size: .85rem; border-bottom: 1px solid var(--border);
  transition: background .15s, color .15s;
}
.nav-dropdown li:last-child a { border-bottom: none; }
.nav-dropdown a:hover { background: var(--bg-alt); color: var(--red); }

/* CTA nav */
.nav-cta {
  background: var(--red) !important; color: #fff !important;
  border-radius: var(--radius) !important; padding: .5rem 1.1rem !important;
  height: auto !important; font-weight: 700 !important;
  font-size: .85rem !important; margin-left: .5rem;
  transition: background .2s !important; white-space: nowrap;
}
.nav-cta:hover { background: var(--red-dark) !important; }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none;
  padding: .5rem; margin-left: auto;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; transition: transform .3s; }

/* ── Hero ── */
.hero {
  background: var(--dark); padding: 5rem 1.5rem 4rem;
  text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(192,57,43,.18) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner { max-width: 860px; margin: 0 auto; position: relative; }
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3.2rem); font-weight: 900;
  color: #fff; line-height: 1.1; margin-bottom: 1.1rem; letter-spacing: -.02em;
}
.hero h1 em { font-style: normal; color: var(--red-light); }
.hero p {
  font-size: 1.1rem; color: rgba(255,255,255,.75);
  max-width: 640px; margin: 0 auto 2rem; line-height: 1.7;
}
.hero-compact { padding: 2.8rem 1.5rem 2.2rem; }
.hero-compact h1 { font-size: clamp(1.45rem, 3vw, 2.3rem); }
.hero-compact p { font-size: 1rem; margin-bottom: 0; }

/* ── Breadcrumbs ── */
.breadcrumbs {
  background: var(--bg-alt); border-bottom: 1px solid var(--border);
  padding: .7rem 1.5rem; font-size: .82rem; color: var(--text-light);
}
.breadcrumbs-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: .25rem; align-items: center;
}
.breadcrumbs a { color: var(--text-light); text-decoration: none; transition: color .15s; }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs .sep { color: #aaa; }

/* ── Botones ── */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .8rem 1.8rem; border-radius: var(--radius);
  font-weight: 700; font-size: .95rem; text-decoration: none;
  cursor: pointer; border: 2px solid transparent;
  transition: all .2s; line-height: 1; white-space: nowrap;
}
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); box-shadow: 0 4px 14px rgba(192,57,43,.3); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(192,57,43,.4); }
.btn-secondary { background: transparent; color: var(--red); border-color: var(--red); }
.btn-secondary:hover { background: var(--red); color: #fff; }
.btn-white { background: #fff; color: var(--red); border-color: #fff; }
.btn-white:hover { background: var(--bg-alt); color: var(--red-dark); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-lg { padding: 1rem 2.2rem; font-size: 1rem; }
.btn-group { display: flex; gap: .9rem; flex-wrap: wrap; justify-content: center; }

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
section { padding: 4rem 1.5rem; }
section.alt-bg { background: var(--bg-alt); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }

/* Títulos de sección */
.section-label { font-size: .73rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: .4rem; display: block; }
h2.section-title { font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 800; color: var(--dark); margin-bottom: .8rem; letter-spacing: -.02em; line-height: 1.2; }
.section-intro { font-size: 1rem; color: var(--text-light); max-width: 620px; line-height: 1.7; margin-bottom: 2.5rem; }

/* ── Grid de cards ── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem; margin-top: 2rem; }
.cards-grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.8rem;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--red); }
.card-icon { font-size: 2.2rem; margin-bottom: .9rem; line-height: 1; }
.card h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: .45rem; line-height: 1.3; }
.card p { font-size: .875rem; color: var(--text-light); line-height: 1.6; }
.card a.card-link { display: inline-flex; align-items: center; gap: .3rem; color: var(--red); font-size: .875rem; font-weight: 600; text-decoration: none; margin-top: .9rem; }
.card a.card-link:hover { text-decoration: underline; }

/* ── Prose (contenido editorial) ── */
.prose h2 { font-size: 1.45rem; font-weight: 800; color: var(--dark); margin: 2.4rem 0 .9rem; padding-bottom: .45rem; border-bottom: 2px solid var(--bg-alt); letter-spacing: -.01em; }
.prose h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin: 1.8rem 0 .6rem; }
.prose p { margin-bottom: 1.1rem; line-height: 1.78; }
.prose ul, .prose ol { padding-left: 1.6rem; margin-bottom: 1.1rem; }
.prose li { margin-bottom: .4rem; line-height: 1.65; }
.prose strong { font-weight: 700; color: var(--dark); }
.prose a { color: var(--red); }
.prose a:hover { color: var(--red-dark); }
.prose table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 1.5rem 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.prose table th { background: var(--dark); color: #fff; padding: .75rem 1rem; text-align: left; font-weight: 600; }
.prose table td { padding: .65rem 1rem; border-bottom: 1px solid var(--border); }
.prose table tr:nth-child(even) td { background: var(--bg-alt); }

/* ── FAQ ── */
.faq-list { margin-top: 1.5rem; }
.faq-list details { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: .7rem; overflow: hidden; }
.faq-list summary {
  padding: 1rem 1.4rem; font-weight: 600; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between;
  align-items: center; background: #fff; transition: background .15s;
  color: var(--dark); font-size: .93rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-size: 1.4rem; font-weight: 300; color: var(--red); flex-shrink: 0; margin-left: 1rem; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details[open] summary { background: var(--bg-alt); }
.faq-answer { padding: .9rem 1.4rem 1.1rem; font-size: .9rem; line-height: 1.75; color: var(--text-light); border-top: 1px solid var(--border); }

/* ── CTA band ── */
.cta-band { background: var(--red); padding: 3.5rem 1.5rem; text-align: center; }
.cta-band-dark { background: var(--dark); }
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: #fff; margin-bottom: .7rem; }
.cta-band p { color: rgba(255,255,255,.85); margin-bottom: 1.8rem; font-size: 1rem; }
.cta-band-inner { max-width: 700px; margin: 0 auto; }

/* ── Stats bar ── */
.stats-bar { background: var(--dark); padding: 2rem 1.5rem; display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num { font-size: 2rem; font-weight: 900; color: var(--red-light); line-height: 1; }
.stat-label { font-size: .78rem; color: rgba(255,255,255,.6); margin-top: .3rem; }

/* ── Two column layout ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.two-col-main { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; align-items: start; }

/* ── Sidebar ── */
.sidebar-card {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.4rem;
  position: sticky; top: calc(var(--nav-h) + 1rem);
}
.sidebar-card h3 { font-size: .95rem; font-weight: 700; color: var(--dark); margin-bottom: .9rem; padding-bottom: .5rem; border-bottom: 2px solid var(--red); }
.sidebar-card ul { list-style: none; }
.sidebar-card li { padding: .38rem 0; border-bottom: 1px solid var(--border); }
.sidebar-card li:last-child { border-bottom: none; }
.sidebar-card a { color: var(--text); text-decoration: none; font-size: .85rem; display: flex; align-items: center; gap: .4rem; transition: color .15s; }
.sidebar-card a:hover { color: var(--red); }
.sidebar-card a::before { content: '›'; color: var(--red); font-weight: 700; }
.contact-card { background: var(--red); border-radius: var(--radius-lg); padding: 1.4rem; text-align: center; margin-top: 1.3rem; }
.contact-card h3 { color: #fff; margin-bottom: .4rem; font-size: .95rem; }
.contact-card p { color: rgba(255,255,255,.85); font-size: .82rem; margin-bottom: 1rem; }
.contact-card .btn { width: 100%; justify-content: center; font-size: .88rem; padding: .7rem 1rem; }

/* ── Related pages ── */
.related-pages { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 2.5rem 1.5rem; }
.related-pages h2 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 1.3rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .85rem; max-width: var(--max-w); margin: 0 auto; }
.related-link {
  display: flex; align-items: center; gap: .5rem;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: .8rem 1rem;
  text-decoration: none; color: var(--text);
  font-size: .85rem; font-weight: 500;
  transition: border-color .2s, color .2s, box-shadow .2s;
}
.related-link:hover { border-color: var(--red); color: var(--red); box-shadow: var(--shadow); }
.related-link::before { content: '→'; color: var(--red); flex-shrink: 0; font-weight: 700; }

/* ── Highlight / Alerta ── */
.highlight-box { background: rgba(192,57,43,.06); border-left: 4px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.1rem 1.4rem; margin: 1.5rem 0; }
.highlight-box p { margin: 0; font-size: .93rem; }
.info-box { background: rgba(52,152,219,.07); border-left: 4px solid #3498db; border-radius: 0 var(--radius) var(--radius) 0; padding: 1.1rem 1.4rem; margin: 1.5rem 0; }
.info-box p { margin: 0; font-size: .93rem; }

/* ── Checklist ── */
.checklist { list-style: none; padding: 0; }
.checklist li { display: flex; align-items: flex-start; gap: .6rem; padding: .4rem 0; font-size: .93rem; }
.checklist li::before { content: '✓'; color: var(--red); font-weight: 900; flex-shrink: 0; margin-top: .05rem; }

/* ── Tabla de servicios ── */
.service-table { width: 100%; }
.service-table td:first-child { font-weight: 700; color: var(--dark); width: 35%; }

/* ── Footer ── */
.site-footer { background: var(--dark); color: rgba(255,255,255,.72); padding: 3.5rem 1.5rem 1.5rem; }
.footer-grid { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand .footer-logo { font-size: 1.15rem; font-weight: 800; color: #fff; text-decoration: none; display: block; margin-bottom: .9rem; letter-spacing: -.01em; }
.footer-brand .footer-logo span { color: var(--red-light); }
.footer-brand p { font-size: .83rem; line-height: 1.65; margin-bottom: 1rem; }
.footer-phone { display: inline-flex; align-items: center; gap: .4rem; color: #fff; font-weight: 700; font-size: 1.05rem; text-decoration: none; transition: color .15s; }
.footer-phone:hover { color: var(--red-light); }
.footer-col h4 { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: .9rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .45rem; }
.footer-col a { color: rgba(255,255,255,.68); text-decoration: none; font-size: .83rem; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { max-width: var(--max-w); margin: 0 auto; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; align-items: center; font-size: .78rem; flex-wrap: wrap; gap: .5rem; color: rgba(255,255,255,.45); }

/* ── Hero homepage específico ── */
.hero-home { padding: 6rem 1.5rem 5rem; }
.hero-home h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
.hero-badges { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1.5rem; }
.hero-badge { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.9); font-size: .78rem; font-weight: 600; padding: .3rem .9rem; border-radius: 100px; }

/* ── Breadcrumb schema helper (oculto visualmente pero presente en DOM) ── */
.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; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .two-col-main { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
}
@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .nav-menu { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--dark); padding: .5rem 0 1rem; border-top: 1px solid rgba(255,255,255,.1); max-height: calc(100vh - var(--nav-h)); overflow-y: auto; }
  .nav-menu.open { display: flex; }
  .nav-menu > li > a { height: auto; padding: .85rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav-dropdown { display: none !important; }
  .nav-cta { margin: .7rem 1.5rem 0; height: auto !important; padding: .65rem 1.2rem !important; text-align: center; justify-content: center; }
  .nav-toggle { display: flex; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .stats-bar { gap: 2rem; padding: 1.8rem 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; }
  section { padding: 2.8rem 1.2rem; }
  .hero { padding: 3rem 1.2rem 2.5rem; }
  .hero-home { padding: 4rem 1.2rem 3rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; align-items: center; }
}

/* ── Formulario de contacto ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}
.contact-form-wrap h2 { margin-bottom: .5rem; }
.contact-form-wrap > p { color: var(--text-light); margin-bottom: 2rem; }
.form-group { margin-bottom: 1.4rem; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: .4rem;
  font-size: .95rem;
}
.form-group .required { color: var(--red); }
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}
.form-check input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--red);
  cursor: pointer;
}
.form-check label { font-weight: 400; cursor: pointer; }
.btn-full { width: 100%; justify-content: center; }
.contact-info-aside { display: flex; flex-direction: column; gap: 1.5rem; }
.footer-cta { display: inline-block; margin-top: .75rem; }

/* ── Páginas legales ── */
.legal-prose h2 { margin: 2rem 0 .75rem; font-size: 1.2rem; color: var(--dark); }
.legal-prose p, .legal-prose li { margin-bottom: .75rem; color: var(--text); }
.legal-prose ul { padding-left: 1.4rem; }
.legal-prose em { color: var(--text-light); font-size: .9rem; }

@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* ── Print ── */
@media print {
  .site-nav, .cta-band, .related-pages, .site-footer { display: none; }
  .hero { padding: 1rem 0; background: #fff; }
  .hero h1, .hero p { color: var(--dark); }
}
