/* Fester Valle de Toluca — estilos del blog */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --azul-profundo: #001845;
  --azul: #003087;
  --azul-medio: #1a4fa0;
  --azul-claro: #dce8f8;
  --azul-suave: #f0f5fc;
  --acento: #D0021B;
  --acento-dark: #a80016;
  --gris-texto: #1e2535;
  --gris-medio: #4a5568;
  --gris-suave: #f5f7fa;
  --gris-borde: #dde3ed;
  --verde: #1a7a30;
  --verde-suave: #edfaf3;
  --ambar-suave: #fff7e6;
  --ambar: #9a5b00;
  --sombra-sm: 0 2px 8px rgba(0,24,69,0.08);
  --sombra-md: 0 4px 20px rgba(0,24,69,0.11);
}
html { scroll-behavior: smooth; }
body { font-family: 'Barlow', system-ui, sans-serif; color: var(--gris-texto); background: #fff; font-size: 17px; line-height: 1.7; }
img { max-width: 100%; height: auto; }
a { color: var(--azul); }

/* NAV */
nav { background: var(--azul-profundo); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,0.22); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo img { height: 44px; width: auto; display: block; }
.nav-links { display: flex; gap: 2px; list-style: none; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 14px; font-weight: 500; padding: 7px 12px; border-radius: 6px; }
.nav-links a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nav-cta { background: var(--acento) !important; color: #fff !important; font-weight: 600 !important; }
@media (max-width: 640px) { .nav-links li:not(:last-child) { display: none; } }

/* LAYOUT */
.wrap { max-width: 780px; margin: 0 auto; padding: 0 20px; }
.migas { font-size: 13px; color: var(--gris-medio); padding: 18px 0 0; }
.migas a { color: var(--gris-medio); text-decoration: none; }
.migas a:hover { color: var(--azul); text-decoration: underline; }
.migas span { margin: 0 6px; opacity: .6; }

/* CABECERA ARTÍCULO */
.art-head { padding: 22px 0 8px; }
.art-cat { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--acento); margin-bottom: 8px; }
h1 { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: clamp(32px, 5vw, 48px); line-height: 1.05; color: var(--azul-profundo); text-transform: uppercase; margin-bottom: 14px; }
.art-meta { font-size: 13.5px; color: var(--gris-medio); display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* CONTENIDO */
article h2 { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: clamp(26px, 3.6vw, 34px); line-height: 1.1; color: var(--azul-profundo); text-transform: uppercase; margin: 44px 0 14px; }
article h3 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 22px; color: var(--azul); margin: 26px 0 8px; }
article p { margin-bottom: 14px; }
article ul, article ol { margin: 0 0 16px 22px; }
article li { margin-bottom: 6px; }
article strong { color: var(--azul-profundo); }

.respuesta { background: var(--azul-suave); border-left: 5px solid var(--azul); border-radius: 10px; padding: 18px 22px; margin: 18px 0 8px; }
.respuesta .tag { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--azul); display: block; margin-bottom: 6px; }
.respuesta p:last-child { margin-bottom: 0; }

.aviso { background: var(--ambar-suave); border-left: 5px solid #e0a100; border-radius: 10px; padding: 16px 20px; margin: 20px 0; }
.aviso strong { color: var(--ambar); }
.ok { background: var(--verde-suave); border-left: 5px solid var(--verde); border-radius: 10px; padding: 16px 20px; margin: 20px 0; }

.sintomas { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 16px 0 10px; list-style: none; padding: 0; margin-left: 0 !important; }
.sintomas li { background: var(--gris-suave); border: 1px solid var(--gris-borde); border-radius: 10px; padding: 14px 16px; margin: 0; font-size: 15.5px; line-height: 1.5; }
.sintomas li b { display: block; color: var(--azul-profundo); margin-bottom: 2px; }

.tabla-wrap { overflow-x: auto; margin: 16px 0 20px; border: 1px solid var(--gris-borde); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
th { background: var(--azul-profundo); color: #fff; text-align: left; font-weight: 600; padding: 10px 12px; font-size: 14px; }
td { padding: 10px 12px; border-top: 1px solid var(--gris-borde); vertical-align: top; }
tr:nth-child(even) td { background: var(--gris-suave); }
.nota-tabla { font-size: 13px; color: var(--gris-medio); margin-top: -10px; }

.pasos { list-style: none; counter-reset: paso; margin-left: 0 !important; }
.pasos > li { counter-increment: paso; position: relative; padding: 0 0 18px 54px; margin: 0; }
.pasos > li::before { content: counter(paso); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--acento); color: #fff; font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.pasos > li b { display: block; color: var(--azul-profundo); font-size: 18px; }

/* CALCULADORA */
.calc { background: var(--azul-profundo); color: #fff; border-radius: 14px; padding: 24px; margin: 22px 0; box-shadow: var(--sombra-md); }
.calc h3 { color: #fff; margin-top: 0; font-size: 24px; }
.calc p.sub { color: rgba(255,255,255,0.7); font-size: 14.5px; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 14px 0 18px; }
.calc label { display: block; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.8); margin-bottom: 5px; }
.calc input, .calc select { width: 100%; padding: 11px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.25); background: #fff; color: var(--gris-texto); font-size: 16px; font-family: inherit; }
.calc-res { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 10px; padding: 16px 18px; }
.calc-res .grande { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 30px; line-height: 1.1; color: #fff; }
.calc-res ul { margin: 10px 0 0 18px; font-size: 15px; color: rgba(255,255,255,0.88); }
.calc-res small { display: block; margin-top: 10px; font-size: 12.5px; color: rgba(255,255,255,0.6); }
.calc .btn-wa { margin-top: 14px; }

/* BOTONES */
.btn-rojo, .btn-wa { display: inline-flex; align-items: center; gap: 8px; font-family: 'Barlow Condensed', sans-serif; font-size: 17px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 14px 26px; border-radius: 8px; text-decoration: none; color: #fff; }
.btn-rojo { background: var(--acento); box-shadow: 0 4px 18px rgba(208,2,27,0.28); }
.btn-rojo:hover { background: var(--acento-dark); }
.btn-wa { background: #1fa855; }
.btn-wa:hover { background: #178a45; }

/* FAQ */
.faq details { border: 1px solid var(--gris-borde); border-radius: 10px; margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 600; color: var(--azul-profundo); list-style: none; position: relative; padding-right: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 10px; font-size: 22px; color: var(--acento); }
.faq details[open] summary::after { content: '\2212'; }
.faq details > div { padding: 0 18px 14px; }
.faq details > div p:last-child { margin-bottom: 0; }

/* CTA + SUCURSALES */
.cta-art { background: linear-gradient(135deg, var(--azul-profundo), var(--azul)); color: #fff; border-radius: 14px; padding: 28px 24px; margin: 40px 0 20px; text-align: center; }
.cta-art h2 { color: #fff; margin-top: 0; }
.cta-art p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 18px; }
.suc-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 20px; text-align: left; }
.suc-mini a { display: block; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 10px; padding: 12px 14px; color: #fff; text-decoration: none; font-size: 14px; line-height: 1.4; }
.suc-mini a:hover { background: rgba(255,255,255,0.16); }
.suc-mini b { display: block; font-size: 15px; }

.relacionados { margin: 30px 0 50px; }
.relacionados h2 { font-size: 26px; }
.rel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.rel-grid a, .rel-grid div { display: block; border: 1px solid var(--gris-borde); border-radius: 10px; padding: 14px 16px; text-decoration: none; color: var(--gris-texto); font-size: 15px; line-height: 1.45; background: #fff; }
.rel-grid a:hover { border-color: var(--azul-medio); box-shadow: var(--sombra-sm); }
.rel-grid b { display: block; color: var(--azul-profundo); margin-bottom: 4px; }
.rel-grid .pronto { opacity: .6; }

/* PORTADA BLOG */
.blog-hero { background: var(--azul-profundo); color: #fff; padding: 46px 0 40px; }
.blog-hero h1 { color: #fff; }
.blog-hero p { color: rgba(255,255,255,0.8); max-width: 640px; }
.blog-hero .art-cat { color: #ff8a96; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; padding: 34px 0 56px; }
.blog-card { border: 1px solid var(--gris-borde); border-radius: 12px; padding: 20px; background: #fff; display: flex; flex-direction: column; box-shadow: var(--sombra-sm); }
.blog-card .art-cat { margin-bottom: 6px; }
.blog-card h2 { font-family: 'Barlow Condensed', sans-serif; font-size: 23px; line-height: 1.15; color: var(--azul-profundo); margin-bottom: 8px; }
.blog-card h2 a { color: inherit; text-decoration: none; }
.blog-card h2 a:hover { color: var(--azul-medio); }
.blog-card p { font-size: 15px; color: var(--gris-medio); flex: 1; margin-bottom: 14px; line-height: 1.55; }
.blog-card .leer { font-weight: 700; color: var(--acento); text-decoration: none; font-size: 15px; }
.blog-card.pronto { background: var(--gris-suave); box-shadow: none; }
.blog-card.pronto .leer { color: var(--gris-medio); }

/* FOOTER */
footer { background: #000d2e; color: rgba(255,255,255,0.55); padding: 28px 24px 20px; font-size: 13px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
footer a:hover { color: #fff; }
.footer-legal { width: 100%; font-size: 11.5px; color: rgba(255,255,255,0.38); border-top: 1px solid rgba(255,255,255,0.07); padding-top: 12px; }

/* WHATSAPP FLOTANTE */
.wa-float { position: fixed; bottom: 22px; right: 22px; background: #25D366; width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 300; box-shadow: 0 4px 22px rgba(37,211,102,0.42); }
