/* ==========================================================================
   LibreCargo - Hoja de estilos principal
   ========================================================================== */

/* Fuentes */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

/* Variables */
:root {
  /* Colores de marca (extraídos del logo) */
  --c-primary: #0E5A78;          /* Azul oscuro principal */
  --c-primary-dark: #0A4258;
  --c-primary-darker: #062E3F;
  --c-accent: #E0B040;            /* Dorado/amarillo */
  --c-accent-hover: #C8993A;
  --c-light-blue: #50B0D0;
  --c-light-blue-soft: #E8F4F9;

  /* Neutrales */
  --c-bg: #FFFFFF;
  --c-bg-soft: #F7FAFC;
  --c-bg-muted: #EDF2F7;
  --c-text: #1A2B36;
  --c-text-muted: #4A5A66;
  --c-text-light: #7A8A96;
  --c-border: #E2E8F0;

  /* Estados */
  --c-success: #2F855A;
  --c-error: #C53030;
  --c-warn: #D69E2E;

  /* Tipografía */
  --f-display: 'Sora', system-ui, sans-serif;
  --f-body: 'DM Sans', system-ui, sans-serif;

  /* Espaciado */
  --container: 1180px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(14, 90, 120, 0.05);
  --shadow: 0 4px 16px rgba(14, 90, 120, 0.08);
  --shadow-lg: 0 12px 40px rgba(14, 90, 120, 0.12);

  /* Transiciones */
  --t: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--c-accent); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-text);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   HEADER / NAVEGACIÓN
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 24px;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-menu a {
  display: inline-block;
  padding: 8px 14px;
  color: var(--c-text);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all var(--t);
}

.nav-menu a:hover { background: var(--c-bg-soft); color: var(--c-primary); }
.nav-menu a.active { color: var(--c-primary); font-weight: 600; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all var(--t);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--c-accent);
  color: var(--c-primary-darker);
}
.btn-primary:hover {
  background: var(--c-accent-hover);
  color: var(--c-primary-darker);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--c-primary);
  color: white;
}
.btn-secondary:hover {
  background: var(--c-primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-primary);
}
.btn-outline:hover {
  background: var(--c-primary);
  color: white;
}

.btn-whatsapp {
  background: #25D366;
  color: white;
}
.btn-whatsapp:hover {
  background: #1EB456;
  color: white;
  transform: translateY(-1px);
}

.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Menú móvil */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--c-primary);
}

.nav-toggle:hover { background: var(--c-bg-soft); }

@media (max-width: 968px) {
  .nav-menu, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-logo img { height: 40px; }
  .nav { height: 68px; }

  .nav-menu.open {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: white;
    padding: 16px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--c-border);
  }
  .nav-menu.open a { padding: 14px 16px; font-size: 1rem; }
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  padding: 80px 0 100px;
  background: linear-gradient(135deg, #062E3F 0%, #0E5A78 60%, #1B7A9E 100%);
  color: white;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(224, 176, 64, 0.18) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(80, 176, 208, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 968px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

.hero h1 {
  color: white;
  margin-bottom: 20px;
  letter-spacing: -0.025em;
}

.hero h1 .accent {
  color: var(--c-accent);
  position: relative;
}

.hero p.subhead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat strong {
  display: block;
  font-family: var(--f-display);
  font-size: 1.6rem;
  color: var(--c-accent);
  font-weight: 700;
}
.hero-stat span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Hero visual: caja flotante con info */
.hero-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}

.hero-card-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--c-accent);
  color: var(--c-primary-darker);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-card h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.hero-card-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-card-step:last-child { border-bottom: none; }

.hero-card-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-primary-darker);
  font-weight: 700;
  font-family: var(--f-display);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.hero-card-step-content { flex: 1; }
.hero-card-step strong {
  display: block;
  color: white;
  font-size: 0.98rem;
  margin-bottom: 2px;
}
.hero-card-step span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
}

/* ==========================================================================
   SECCIONES GENERALES
   ========================================================================== */

.section { padding: 88px 0; }
.section-soft { background: var(--c-bg-soft); }
.section-dark {
  background: linear-gradient(135deg, var(--c-primary-darker) 0%, var(--c-primary) 100%);
  color: white;
}
.section-dark h2, .section-dark h3 { color: white; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--f-display);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--c-primary);
  margin-bottom: 12px;
  padding: 6px 14px;
  background: var(--c-light-blue-soft);
  border-radius: 100px;
}

.section-dark .eyebrow {
  background: rgba(224, 176, 64, 0.15);
  color: var(--c-accent);
}

.section-head h2 { margin-bottom: 16px; }
.section-head p {
  color: var(--c-text-muted);
  font-size: 1.1rem;
}
.section-dark .section-head p { color: rgba(255, 255, 255, 0.85); }

/* ==========================================================================
   CÓMO FUNCIONA - 3 PASOS
   ========================================================================== */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; gap: 24px; }
}

.step-card {
  position: relative;
  background: white;
  padding: 36px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  transition: all var(--t);
}
.step-card:hover {
  border-color: var(--c-light-blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.step-num {
  position: absolute;
  top: -16px;
  left: 28px;
  width: 44px;
  height: 44px;
  background: var(--c-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(14, 90, 120, 0.25);
}

.step-card h3 {
  margin-top: 12px;
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.step-card p {
  color: var(--c-text-muted);
  font-size: 0.98rem;
}

/* ==========================================================================
   DIFERENCIADORES (4 cards)
   ========================================================================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

.feature-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  transition: all var(--t);
}
.feature-card:hover {
  border-color: var(--c-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.feature-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--c-light-blue-soft);
  color: var(--c-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg { width: 26px; height: 26px; }

.feature-content h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.feature-content p {
  color: var(--c-text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ==========================================================================
   PRECIOS - TARJETAS DE PLANES
   ========================================================================== */

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 968px) {
  .plans-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

.plan-card {
  position: relative;
  background: white;
  border: 2px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  transition: all var(--t);
}

.plan-card:hover {
  border-color: var(--c-light-blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.plan-card.featured {
  border-color: var(--c-accent);
  background: linear-gradient(180deg, white 0%, #FFFBF0 100%);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-accent);
  color: var(--c-primary-darker);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 16px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.plan-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--c-primary);
  margin-bottom: 8px;
}

.plan-tagline {
  color: var(--c-text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.plan-price {
  font-family: var(--f-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--c-text);
  line-height: 1;
}
.plan-price-unit {
  font-size: 1rem;
  font-weight: 500;
  color: var(--c-text-muted);
}
.plan-price-detail {
  font-size: 0.85rem;
  color: var(--c-text-light);
  margin-top: 6px;
  margin-bottom: 24px;
}

.plan-features {
  list-style: none;
  flex: 1;
  margin-bottom: 28px;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--c-text);
}
.plan-features li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  background: var(--c-primary);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'></polyline></svg>") no-repeat center;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'></polyline></svg>") no-repeat center;
}

.plan-card.featured .plan-features li::before {
  background: var(--c-accent-hover);
}

.plan-ideal {
  font-size: 0.88rem;
  color: var(--c-text-muted);
  padding: 14px;
  background: var(--c-bg-soft);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}
.plan-ideal strong {
  display: block;
  color: var(--c-text);
  margin-bottom: 4px;
  font-family: var(--f-display);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plan-card.featured .plan-ideal {
  background: rgba(224, 176, 64, 0.12);
}

/* ==========================================================================
   TABLA DE EJEMPLOS
   ========================================================================== */

.examples-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.examples-table th, .examples-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
}

.examples-table th {
  background: var(--c-primary);
  color: white;
  font-family: var(--f-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.examples-table tbody tr:hover { background: var(--c-bg-soft); }
.examples-table tbody tr:last-child td { border-bottom: none; }

.examples-table .price {
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--c-primary);
}

@media (max-width: 768px) {
  .examples-table-wrap { overflow-x: auto; }
  .examples-table { min-width: 540px; }
}

/* ==========================================================================
   B2B SECTION
   ========================================================================== */

.b2b-banner {
  background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-primary) 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.b2b-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(224, 176, 64, 0.15), transparent 70%);
  pointer-events: none;
}

.b2b-banner h2 { color: white; margin-bottom: 12px; }
.b2b-banner p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.b2b-banner .b2b-actions { position: relative; z-index: 2; }

@media (max-width: 768px) {
  .b2b-banner {
    grid-template-columns: 1fr;
    padding: 32px;
  }
}

/* ==========================================================================
   TESTIMONIOS
   ========================================================================== */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 968px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

.testimonial-card {
  background: white;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 4px;
  left: 20px;
  font-family: var(--f-display);
  font-size: 4.5rem;
  color: var(--c-accent);
  opacity: 0.3;
  line-height: 1;
}

.testimonial-text {
  position: relative;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-text);
  margin-bottom: 20px;
  margin-top: 16px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--c-border);
  padding-top: 16px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-weight: 700;
}

.testimonial-author strong {
  display: block;
  color: var(--c-text);
  font-size: 0.95rem;
}
.testimonial-author span {
  color: var(--c-text-light);
  font-size: 0.85rem;
}

/* ==========================================================================
   CTA FINAL
   ========================================================================== */

.cta-final {
  text-align: center;
  padding: 88px 24px;
  background: linear-gradient(135deg, var(--c-primary-darker) 0%, var(--c-primary) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(224, 176, 64, 0.18), transparent 60%);
  pointer-events: none;
}

.cta-final .container { position: relative; }
.cta-final h2 {
  color: white;
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 2.8rem);
}
.cta-final p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 580px;
  margin: 0 auto 32px;
}
.cta-final-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background: var(--c-primary-darker);
  color: rgba(255, 255, 255, 0.85);
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand img {
  height: 56px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

.footer h4 {
  font-family: var(--f-display);
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; font-size: 0.95rem; }
.footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--t);
}
.footer a:hover { color: var(--c-accent); }

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}
.footer-contact-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--c-accent);
}

.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  transition: all var(--t);
}
.footer-social a:hover {
  background: var(--c-accent);
  transform: translateY(-2px);
}
.footer-social svg { width: 18px; height: 18px; color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
}

/* ==========================================================================
   FORMULARIO Y CALCULADORA
   ========================================================================== */

.form-wrap {
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

@media (max-width: 600px) {
  .form-wrap { padding: 28px 20px; }
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--f-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 8px;
}

.form-group label .required { color: var(--c-error); }

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--f-body);
  font-size: 1rem;
  color: var(--c-text);
  background: white;
  border: 2px solid var(--c-border);
  border-radius: var(--radius-sm);
  transition: all var(--t);
}

.form-control:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(14, 90, 120, 0.12);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E5A78' stroke-width='2'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
}

textarea.form-control { resize: vertical; min-height: 120px; }

.form-help {
  font-size: 0.85rem;
  color: var(--c-text-light);
  margin-top: 6px;
}

/* Calculadora resultado */
.calc-result {
  margin-top: 28px;
  padding: 24px;
  background: linear-gradient(135deg, var(--c-light-blue-soft) 0%, white 100%);
  border: 2px solid var(--c-light-blue);
  border-radius: var(--radius);
  display: none;
}

.calc-result.show { display: block; }
.calc-result.error {
  background: #FFF5F5;
  border-color: var(--c-error);
}

.calc-result-label {
  font-family: var(--f-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-primary);
  margin-bottom: 8px;
}
.calc-result.error .calc-result-label { color: var(--c-error); }

.calc-result-amount {
  font-family: var(--f-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--c-primary-darker);
  line-height: 1;
  margin-bottom: 8px;
}
.calc-result.error .calc-result-amount {
  font-size: 1.1rem;
  color: var(--c-error);
}

.calc-result-breakdown {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(14, 90, 120, 0.15);
  font-size: 0.92rem;
  color: var(--c-text-muted);
}

.calc-result-breakdown div {
  display: flex;
  justify-content: space-between;
}
.calc-result-breakdown strong { color: var(--c-text); }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all var(--t);
}

.faq-item:hover { border-color: var(--c-light-blue); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--c-text);
  background: white;
  cursor: pointer;
}

.faq-question:hover { color: var(--c-primary); }

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--c-primary);
  transition: transform var(--t);
}

.faq-item.open .faq-icon { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--c-text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}
.faq-answer-inner { padding: 0 24px 22px; }

.faq-answer p { margin-bottom: 12px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul { padding-left: 20px; margin: 8px 0; }
.faq-answer li { margin-bottom: 6px; }
.faq-answer strong { color: var(--c-text); }

.faq-item.open .faq-answer { max-height: 1000px; }

/* ==========================================================================
   PÁGINA INTERIOR (header subhero)
   ========================================================================== */

.page-header {
  background: linear-gradient(135deg, var(--c-primary-darker) 0%, var(--c-primary) 100%);
  color: white;
  padding: 64px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(224, 176, 64, 0.15), transparent 60%);
  pointer-events: none;
}

.page-header h1 { color: white; margin-bottom: 12px; }
.page-header p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255, 255, 255, 0.85); }
.breadcrumb a:hover { color: var(--c-accent); }

/* ==========================================================================
   IFRAME EMBEDS
   ========================================================================== */

.embed-wrap {
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: var(--shadow);
  max-width: 820px;
  margin: 0 auto;
}

.embed-wrap iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   UTILIDADES
   ========================================================================== */

.text-center { text-align: center; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-3 { margin-bottom: 24px; }

.alert {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  margin: 16px 0;
}
.alert-info {
  background: var(--c-light-blue-soft);
  color: var(--c-primary-darker);
  border-left: 4px solid var(--c-primary);
}

.disclaimer {
  font-size: 0.85rem;
  color: var(--c-text-light);
  font-style: italic;
  text-align: center;
  margin-top: 16px;
}

/* Helper: dos columnas info */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

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

/* Botón flotante WhatsApp */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 50;
  transition: all var(--t);
}

.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

.wa-float svg { width: 32px; height: 32px; color: white; }
