/* ===========================
   SF TAMBO — Stylesheet
   Fase 1: catálogo institucional
   =========================== */

:root {
  --blue: #1535CC;
  --blue-dark: #0D25A8;
  --blue-light: #2547E8;
  --blue-pale: #EBF0FF;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-400: #9CA3AF;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --green: #16A34A;
  --red: #DC2626;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.12);
  --transition: 0.2s ease;
  --container: 1200px;
  --gutter: 16px;
  --nav-h: 76px;
}
@media (min-width: 768px) { :root { --nav-h: 92px; } }

/* ===========================
   RESET
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }
ul { list-style: none; }

/* ===========================
   LAYOUT
   =========================== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: 4rem 0; }

/* ===========================
   TYPOGRAPHY
   =========================== */
h1 { font-size: clamp(1.875rem, 5vw, 3rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.375rem); font-weight: 600; line-height: 1.3; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.section-title { margin-bottom: 1rem; }
.section-lead {
  color: var(--gray-600);
  font-size: 1.0625rem;
  max-width: 560px;
  margin-bottom: 2.5rem;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-secondary { background: var(--white); color: var(--blue); border: 2px solid var(--blue); }
.btn-secondary:hover { background: var(--blue-pale); }
.btn-white { background: var(--white); color: var(--blue); }
.btn-white:hover { background: var(--blue-pale); }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.5); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); }
.btn-whatsapp { background: #25D366; color: var(--white); }
.btn-whatsapp:hover { background: #1EBF5A; transform: translateY(-1px); }
.btn-lg { padding: 1rem 2rem; font-size: 1.0625rem; }
.btn-sm { padding: 0.625rem 1.25rem; font-size: 0.875rem; }

/* ===========================
   NAVIGATION
   =========================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  position: relative;
}
.nav-logo img { height: 56px; width: auto; display: block; }
@media (min-width: 768px) { .nav-logo img { height: 72px; } }
.nav-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: var(--nav-h);
  left: calc(-1 * var(--gutter));
  right: calc(-1 * var(--gutter));
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0.75rem 0;
  box-shadow: var(--shadow-md);
}
.nav-menu.open { display: flex; }
.nav-link {
  display: block;
  padding: 0.75rem var(--gutter);
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--blue); }
.nav-cta { display: none; }
.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all var(--transition);
}

@media (min-width: 960px) {
  .nav-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    position: static;
    padding: 0;
    border: none;
    box-shadow: none;
    width: auto;
  }
  .nav-link { padding: 0.5rem 0.75rem; border-radius: var(--radius); white-space: nowrap; }
  .nav-cta { display: inline-flex; }
  .nav-hamburger { display: none; }
}

/* ===========================
   HERO
   =========================== */
.hero {
  background: linear-gradient(140deg, #0a1d8a 0%, var(--blue) 55%, var(--blue-light) 100%);
  color: var(--white);
  padding: 4rem 0 5rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  padding: 0.375rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero h1 { margin-bottom: 1.25rem; max-width: 700px; }
.hero-sub {
  font-size: 1.125rem;
  opacity: 0.88;
  max-width: 580px;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero-stat strong {
  display: block;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.375rem;
}
.hero-stat > span { font-size: 0.8125rem; opacity: 0.78; }
.hero-counter { font-size: inherit !important; opacity: 1 !important; font-weight: inherit; }
.stat-pulse { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1; }

/* Mobile hero stats — 2 columns */
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}
@media (min-width: 640px) {
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
}

/* Mobile live counter */
.live-counter-bar {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.625rem;
}
.live-counter-value { font-size: 1.75rem; }
@media (min-width: 640px) {
  .live-counter-bar { flex-direction: row; align-items: center; }
  .live-counter-value { font-size: 1.25rem; }
}

/* ===========================
   PAGE HEADER
   =========================== */
.page-header {
  background: linear-gradient(140deg, #0a1d8a 0%, var(--blue) 100%);
  color: var(--white);
  padding: 2.5rem 0 3rem;
}
.breadcrumb {
  font-size: 0.8125rem;
  opacity: 0.7;
  margin-bottom: 0.75rem;
}
.breadcrumb a { opacity: 0.8; }
.breadcrumb a:hover { opacity: 1; }
/* Foto de fondo en los encabezados (se mantiene el azul de marca como velo) */
.page-header.has-photo {
  background: linear-gradient(100deg, rgba(10,29,138,0.96) 0%, rgba(21,53,204,0.9) 50%, rgba(21,53,204,0.55) 100%), var(--ph) center / cover no-repeat;
}
.ph-protocolos { --ph: url('../img/header/protocolos.webp'); }
.ph-pre-sellado { --ph: url('../img/header/pre-sellado.webp'); }
.ph-sellado-barrera { --ph: url('../img/header/sellado-barrera.webp'); }
.ph-programa-integral { --ph: url('../img/header/programa-integral.webp'); }
.ph-nosotros { --ph: url('../img/header/nosotros.webp'); }
.ph-contacto { --ph: url('../img/header/contacto.webp'); }
.ph-catalogo { --ph: url('../img/header/catalogo.webp'); }
.ph-informe { --ph: url('../img/header/informe.webp'); }
.ph-actualidad { --ph: url('../img/header/actualidad.webp'); }
.page-header h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.page-header .lead {
  opacity: 0.88;
  max-width: 560px;
  margin-top: 0.875rem;
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* ===========================
   PROBLEMA / INDICATORS
   =========================== */
.bg-gray { background: var(--gray-50); }

.problema-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.problema-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border-top: 3px solid var(--blue);
}
.problema-card .value {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.problema-card .label { font-size: 0.875rem; color: var(--gray-600); font-weight: 500; }
.info-box {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--blue-pale);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--gray-700);
}
.info-box a { color: var(--blue); text-decoration: underline; }

/* ===========================
   PROTOCOL CARDS
   =========================== */
.protocolos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.protocolo-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.protocolo-card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 32px rgba(21,53,204,0.12);
  transform: translateY(-2px);
}
.protocolo-card.featured { border: 2px solid var(--blue); }
.protocolo-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.protocolo-icon.accent { background: var(--blue); }
.protocolo-card ul.features {
  color: var(--gray-600);
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding-left: 1rem;
  list-style: disc;
}
.protocolo-card .btn { align-self: flex-start; margin-top: auto; }

/* ===========================
   EVIDENCIA (blue bg)
   =========================== */
.evidencia-section {
  background: linear-gradient(140deg, #0a1d8a 0%, var(--blue) 100%);
  color: var(--white);
}
.evidencia-section .section-label { color: rgba(255,255,255,0.7); }
.evidencia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.evidencia-item { text-align: center; }
.evidencia-item .pct {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: var(--white);
}
.evidencia-item p { font-size: 0.9375rem; opacity: 0.82; }

/* ===========================
   ROI COMPARISON
   =========================== */
.roi-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (max-width: 600px) { .roi-comparison { grid-template-columns: 1fr; } }
.roi-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
}
.roi-card.bad { background: #FEF2F2; border: 2px solid #FECACA; }
.roi-card.good { background: #F0FDF4; border: 2px solid #BBF7D0; }
.roi-card .amount { font-size: 2.5rem; font-weight: 800; margin: 0.75rem 0; line-height: 1; }
.roi-card.bad .amount { color: var(--red); }
.roi-card.good .amount { color: var(--green); }
.roi-card .desc { font-size: 0.9rem; color: var(--gray-600); }

/* ===========================
   PLACEHOLDER SECTIONS
   =========================== */
.placeholder-box {
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--gray-400);
  background: var(--gray-50);
}
.placeholder-box .placeholder-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

/* ===========================
   CIERRE CTA
   =========================== */
.cierre-section {
  background: linear-gradient(140deg, #0a1d8a 0%, var(--blue-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 5rem 0;
}
.cierre-section h2 { margin-bottom: 1rem; color: var(--white); }
.cierre-section p { opacity: 0.85; font-size: 1.0625rem; margin-bottom: 2rem; }
.cierre-ctas { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ===========================
   PROTOCOL TAB PAGES
   =========================== */
.protocol-tabs-wrapper {
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.protocol-tabs {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.protocol-tabs::-webkit-scrollbar { display: none; }
.protocol-tab-btn {
  flex-shrink: 0;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gray-600);
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--font);
}
.protocol-tab-btn:hover { color: var(--blue); }
.protocol-tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); }
.protocol-tab-panel { display: none; padding: 3rem 0; }
.protocol-tab-panel.active { display: block; }
.protocol-content { max-width: 760px; }
.protocol-content h3 { margin-bottom: 1rem; color: var(--gray-900); }
.protocol-content p { color: var(--gray-600); margin-bottom: 1rem; font-size: 1rem; }
.protocol-content ul {
  color: var(--gray-600);
  padding-left: 1.25rem;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.highlight-box {
  background: var(--blue-pale);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.highlight-box strong { color: var(--blue); }

/* ===========================
   FICHA TÉCNICA
   =========================== */
.ficha-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.875rem;
  margin-top: 1.5rem;
}
.ficha-item {
  padding: 1rem 1.25rem;
  background: var(--gray-50);
  border-radius: var(--radius);
  border-left: 3px solid var(--blue);
}
.ficha-key {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gray-400);
  margin-bottom: 0.25rem;
}
.ficha-val { font-size: 0.9375rem; color: var(--gray-900); font-weight: 500; }

/* ===========================
   ACOMPAÑAMIENTO LIST
   =========================== */
.acompan-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: 1.5rem;
}
.acompan-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.125rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}
.acompan-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}
.acompan-item h4 { font-size: 0.9375rem; margin-bottom: 0.125rem; }
.acompan-item p { font-size: 0.875rem; color: var(--gray-600); }

/* ===========================
   CALCULATOR
   =========================== */
.calculator-wrap {
  background: var(--gray-50);
  min-height: calc(100vh - var(--nav-h));
  padding: 3rem 0;
}
.calc-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto;
}
.calc-header {
  background: var(--blue);
  color: var(--white);
  padding: 2rem;
}
.calc-header h2 { color: var(--white); font-size: 1.5rem; margin-bottom: 0.5rem; }
.calc-header p { opacity: 0.85; font-size: 0.9375rem; }
.calc-body { padding: 2rem; }
.calc-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.calc-input-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}
.calc-input-group .sublabel {
  font-size: 0.8125rem;
  color: var(--gray-400);
  font-weight: 400;
  margin-top: 0.375rem;
}
.num-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--blue);
  font-family: var(--font);
  text-align: center;
  -webkit-appearance: none;
  -moz-appearance: textfield;
}
.num-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21,53,204,0.1);
}
.num-input::-webkit-outer-spin-button,
.num-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.range-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.625rem;
}
.range-row input[type="range"] {
  flex: 1;
  accent-color: var(--blue);
  cursor: pointer;
  height: 6px;
}
.range-val {
  min-width: 46px;
  text-align: right;
  font-weight: 700;
  color: var(--blue);
  font-size: 1.0625rem;
}
.calc-submit {
  width: 100%;
  padding: 1rem;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 1.0625rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: background var(--transition);
}
.calc-submit:hover { background: var(--blue-dark); }
.calc-results {
  display: none;
  border-top: 1px solid var(--gray-100);
  padding-top: 2rem;
  margin-top: 2rem;
}
.calc-results.show { display: block; }
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.result-card {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  text-align: center;
}
.result-card .r-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.5rem;
}
.result-card .r-value { font-size: 1.875rem; font-weight: 800; line-height: 1; }
.result-card .r-prefix { font-size: 1rem; font-weight: 700; }
.result-card .r-sub { font-size: 0.8125rem; margin-top: 0.375rem; opacity: 0.75; }
.result-card.loss { background: #FEF2F2; color: #DC2626; }
.result-card.gain { background: #F0FDF4; color: #16A34A; }
.result-card.info { background: var(--blue-pale); color: var(--blue); }
.bar-chart { margin: 1.5rem 0; }
.bar-chart h4 { font-size: 0.875rem; font-weight: 700; color: var(--gray-600); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.bar-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 0.875rem;
}
.bar-label { font-size: 0.8125rem; font-weight: 600; width: 120px; flex-shrink: 0; color: var(--gray-700); }
.bar-track { flex: 1; height: 36px; background: var(--gray-100); border-radius: 6px; overflow: hidden; }
.bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  align-items: center;
  padding-left: 0.75rem;
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 700;
  width: 0;
  white-space: nowrap;
  overflow: hidden;
}
.bar-fill.bad { background: linear-gradient(90deg, #DC2626, #EF4444); }
.bar-fill.good { background: linear-gradient(90deg, #16A34A, #22C55E); }
.calc-cta-box {
  background: var(--blue-pale);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  margin-top: 1.5rem;
}
.calc-cta-box p { color: var(--gray-700); margin-bottom: 1rem; font-size: 0.9375rem; }

/* ===========================
   DUAL FORM
   =========================== */
.form-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--gray-200); margin-bottom: 2rem; overflow-x: auto; scrollbar-width: none; }
.form-tabs::-webkit-scrollbar { display: none; }
.contacto-layout > * { min-width: 0; }
.form-tab {
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--gray-600);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all var(--transition);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--font);
  white-space: nowrap;
}
.form-tab:hover { color: var(--blue); }
.form-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
@media (max-width: 560px) { .form-tab { flex: 1 1 0; padding: 0.875rem 0.5rem; text-align: center; font-size: 0.875rem; white-space: normal; line-height: 1.25; } }
.form-panel { display: none; }
.form-panel.active { display: block; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color var(--transition);
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21,53,204,0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.form-or {
  text-align: center;
  color: var(--gray-400);
  font-size: 0.875rem;
  padding: 0.25rem 0;
}

/* ===========================
   CONTACT PAGE
   =========================== */
.contacto-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 2.5rem;
}
@media (min-width: 768px) { .contacto-layout { grid-template-columns: 3fr 2fr; } }
.contacto-sidebar h3 { font-size: 1.125rem; margin-bottom: 1.25rem; }
.info-cards { display: flex; flex-direction: column; gap: 0.875rem; }
.info-card {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}
.info-card .icon {
  width: 40px;
  height: 40px;
  background: var(--blue-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}
.info-card .info-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-400);
  margin-bottom: 0.125rem;
}
.info-card .info-val { font-size: 0.9375rem; color: var(--gray-900); font-weight: 500; }

/* ===========================
   RECURSOS TÉCNICOS
   =========================== */
.recursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.recurso-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.recurso-card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 32px rgba(21,53,204,0.1);
  transform: translateY(-2px);
}
.recurso-img {
  aspect-ratio: 16/9;
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.recurso-body { padding: 1.5rem; }
.recurso-tag {
  display: inline-block;
  background: var(--blue-pale);
  color: var(--blue);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}
.recurso-body h3 { font-size: 1.0625rem; margin-bottom: 0.5rem; }
.recurso-body p { font-size: 0.9rem; color: var(--gray-600); margin-bottom: 1rem; }

/* ===========================
   CATÁLOGO
   =========================== */
.catalogo-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}
@media (min-width: 768px) { .catalogo-layout { grid-template-columns: 5fr 3fr; } }
.pdf-card {
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
}
.pdf-icon { font-size: 4rem; margin-bottom: 1rem; }
.pdf-card h3 { margin-bottom: 0.5rem; }
.pdf-card p { color: var(--gray-600); font-size: 0.9375rem; margin-bottom: 1.5rem; }
.pdf-note {
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-top: 0.75rem;
}

/* ===========================
   NOSOTROS
   =========================== */
.nosotros-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 2.5rem;
}
@media (min-width: 768px) { .nosotros-layout { grid-template-columns: 1fr 1fr; } }
.nosotros-text h2 { margin-bottom: 1rem; }
.nosotros-text p { color: var(--gray-600); margin-bottom: 1rem; }
.valores-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.valor-item { display: flex; gap: 0.875rem; align-items: flex-start; }
.valor-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}
.valor-item h4 { font-size: 0.9375rem; margin-bottom: 0.125rem; }
.valor-item p { font-size: 0.875rem; color: var(--gray-600); }
.nosotros-img-placeholder {
  background: var(--blue-pale);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  text-align: center;
  color: var(--blue);
  gap: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border: 2px dashed rgba(21,53,204,0.2);
}
.nosotros-img-placeholder .big-icon { font-size: 3rem; }

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--gray-900);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand p { font-size: 0.875rem; color: var(--gray-400); line-height: 1.6; margin-top: 1rem; }
.footer-col h4 {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}

/* ===========================
   FLOATING WHATSAPP
   =========================== */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  background: #25D366;
  color: var(--white);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: all var(--transition);
  text-decoration: none;
}
.wa-float:hover {
  background: #1EBF5A;
  transform: scale(1.06);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
}
.wa-float svg { width: 30px; height: 30px; }

/* ===========================
   HERO SPLIT LAYOUT + IMAGE
   =========================== */
.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.hero-img-wrap { display: none; }
@media (min-width: 800px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 3.5rem;
  }
  .hero-text { flex: 1 1 auto; min-width: 0; }
  .hero-img-wrap {
    display: block;
    flex: 0 0 360px;
  }
}
.hero-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.4);
}

/* ===========================
   LIVE COUNTER BAR
   =========================== */
.live-counter-bar {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff5252;
  flex-shrink: 0;
  animation: blink-dot 1.4s ease-in-out infinite;
}
@keyframes blink-dot { 0%,100%{opacity:1} 50%{opacity:0.3} }
.live-counter-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.9);
}
.live-sub-text { font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.live-counter-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.stat-pulse {
  display: inline-block;
  animation: stat-fade-in 1.2s ease 0.6s both;
}
@keyframes stat-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* ===========================
   PROCESO GRID (Cómo trabaja SF Tambo)
   =========================== */
.proceso-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.proceso-step {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.proceso-step:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.paso-img-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.paso-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.proceso-step:hover .paso-img { transform: scale(1.04); }
.paso-body { padding: 1.25rem 1.5rem 1.5rem; }
.paso-num {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.proceso-step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}
.proceso-step p {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.55;
}
@media (max-width: 640px) {
  .proceso-grid { grid-template-columns: 1fr; }
}

/* ===========================
   RODEG CATALOG CARDS
   =========================== */
.rodeg-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin: 2.5rem 0 1rem;
}
.rodeg-section-label:first-child { margin-top: 0; }
.rodeg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}
.rodeg-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.rodeg-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.rodeg-img-slot {
  aspect-ratio: 4/3;
  background: var(--gray-50);
  border-bottom: 2px dashed var(--gray-200);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--gray-400);
  font-size: 0.8125rem;
  cursor: default;
}
.rodeg-img-slot svg { width: 28px; height: 28px; opacity: 0.35; }
.rodeg-card-body { padding: 1.125rem 1.25rem 1.375rem; }
.rodeg-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 0.4rem;
}
.rodeg-card-body h3 { font-size: 0.9375rem; font-weight: 700; margin-bottom: 0.375rem; }
.rodeg-card-body p { font-size: 0.8375rem; color: var(--gray-600); line-height: 1.5; margin-bottom: 0.875rem; }
.rodeg-card-body a { font-size: 0.8125rem; }

/* ===========================
   UTILITIES
   =========================== */
.text-center { text-align: center; }
.text-blue { color: var(--blue); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.nosotros-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--gray-100); box-shadow: var(--shadow); }
.nosotros-photo img { width: 100%; height: auto; aspect-ratio: 9 / 7; object-fit: cover; display: block; }
.nosotros-photo figcaption { padding: 0.75rem 1rem; font-size: 0.8125rem; color: var(--gray-600); line-height: 1.5; background: var(--white); }

.fundador { display: flex; align-items: center; gap: 0.875rem; margin-bottom: 1.25rem; }
.fundador img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid var(--blue-pale); box-shadow: var(--shadow); }
.fundador p { display: grid; line-height: 1.3; }
.fundador strong { font-size: 1rem; }
.fundador span { color: var(--gray-600); font-size: 0.875rem; }

.ph-row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.ph-text { min-width: 0; }
.ph-founder { display: none; margin: 0; text-align: center; flex: none; }
.ph-founder img { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(255,255,255,0.85); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.ph-founder figcaption { margin-top: 0.5rem; display: grid; line-height: 1.3; font-size: 0.9375rem; }
.ph-founder figcaption span { opacity: 0.85; font-size: 0.8125rem; }
@media (min-width: 900px) { .ph-founder { display: block; } .fundador-m { display: none; } }
