/* =========================================================
   PorflitD — Hoja de estilos
   Paleta: azul financiero corporativo + dorado/ámbar (WhatsApp verde)
   ========================================================= */
:root {
  --navy-900: #0a1832;
  --navy-800: #0d1f3c;
  --navy-700: #122a52;
  --navy-600: #1b3a6b;
  --navy-500: #244c86;
  --blue-accent: #3b82f6;
  --gold: #f2b418;
  --gold-soft: #f6c84c;
  --wa-green: #25d366;
  --wa-green-dark: #1da851;
  --text: #eaf1fb;
  --text-dim: #a9bbd6;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.10);
  --radius: 16px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--navy-900);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===================== BOTONES ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-wa {
  background: linear-gradient(135deg, var(--wa-green), var(--wa-green-dark));
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.32);
}
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(37, 211, 102, 0.45); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--card-border);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }

.btn-lg { padding: 16px 30px; font-size: 1.05rem; }

/* Icono de WhatsApp (imagen) dentro de botones y enlaces */
.wa-icon {
  width: 1.35em;
  height: 1.35em;
  object-fit: contain;
  display: inline-block;
  flex-shrink: 0;
}
.wa-icon-sm {
  width: 1.15em;
  height: 1.15em;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

/* ===================== NAVBAR ===================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 24, 50, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--card-border);
  transition: background 0.3s ease;
}
.navbar.scrolled { background: rgba(8, 18, 38, 0.97); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 18px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(242, 180, 24, 0.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.15rem; letter-spacing: 0.3px; }
.brand-text small { font-size: 0.68rem; color: var(--text-dim); }

.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dim);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: flex;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 3px;
}
.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lang-btn.active { background: var(--gold); color: var(--navy-900); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.hamburger span { width: 24px; height: 2.5px; background: var(--text); border-radius: 2px; transition: 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  padding: 110px 0 90px;
  background:
    radial-gradient(1200px 500px at 70% -10%, rgba(59, 130, 246, 0.25), transparent),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(10, 24, 50, 0.6), rgba(10, 24, 50, 0.85)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 59h60M59 0v60' stroke='%231b3a6b' stroke-width='0.5' fill='none'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}
.hero-content { position: relative; max-width: 820px; }

.badge {
  display: inline-block;
  background: rgba(242, 180, 24, 0.14);
  color: var(--gold-soft);
  border: 1px solid rgba(242, 180, 24, 0.4);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  background: linear-gradient(120deg, #fff 30%, var(--gold-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-dim);
  max-width: 640px;
  margin-bottom: 34px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.9rem; color: var(--gold-soft); font-weight: 800; }
.hero-stats span { font-size: 0.85rem; color: var(--text-dim); }

/* ===================== SECCIONES ===================== */
.section { padding: 84px 0; }
.section-alt { background: var(--navy-800); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 14px;
}
.section-head p { color: var(--text-dim); font-size: 1.05rem; }

.kicker {
  display: inline-block;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ===================== TARJETAS ===================== */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.feature-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(242, 180, 24, 0.5);
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  font-size: 1.6rem;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 14px;
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-dim); font-size: 0.95rem; }

/* Tarjetas de módulos (catálogo) */
.module-card {
  background: linear-gradient(160deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.module-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: var(--shadow);
}
.module-card .mod-icon {
  font-size: 1.8rem;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: rgba(242, 180, 24, 0.12);
  border-radius: 12px;
}
.module-card h3 { font-size: 1.15rem; }
.module-card p { color: var(--text-dim); font-size: 0.9rem; flex-grow: 1; }
.module-card .mod-btn {
  margin-top: 6px;
  font-size: 0.88rem;
  padding: 10px 16px;
  align-self: flex-start;
}

/* ===================== NOSOTROS ===================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-text h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 18px; }
.about-text > p { color: var(--text-dim); margin-bottom: 22px; }

.check-list { list-style: none; margin-bottom: 28px; display: grid; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 34px;
  color: var(--text);
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 0;
  width: 22px; height: 22px;
  background: var(--wa-green);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
}

.about-quote {
  background: linear-gradient(160deg, var(--navy-700), var(--navy-600));
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 36px 30px;
}
.about-quote blockquote { font-size: 1.4rem; font-weight: 600; font-style: italic; margin-bottom: 14px; }
.about-author { color: var(--gold-soft); font-weight: 600; }

/* ===================== CTA FINAL / CONTACTO ===================== */
.cta-final {
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(37, 211, 102, 0.12), transparent),
    var(--navy-900);
}
.cta-box {
  max-width: 680px;
  text-align: center;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 50px 36px;
  box-shadow: var(--shadow);
}
.cta-box .fire { font-size: 2.4rem; display: block; margin-bottom: 10px; }
.cta-box h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 14px; }
.cta-box > p { color: var(--text-dim); margin-bottom: 30px; }

.wa-form { display: grid; gap: 14px; margin-bottom: 28px; text-align: left; }
.wa-form input, .wa-form textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.98rem;
  resize: vertical;
  transition: border-color 0.2s ease;
}
.wa-form input:focus, .wa-form textarea:focus {
  outline: none;
  border-color: var(--wa-green);
}
.wa-form input::placeholder, .wa-form textarea::placeholder { color: var(--text-dim); }
.wa-form .btn { width: 100%; }

.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.98rem;
  transition: color 0.2s ease;
}
.contact-item:hover { color: var(--gold-soft); }
.contact-item strong { color: var(--text); }

/* ===================== FOOTER ===================== */
.footer {
  background: var(--navy-800);
  border-top: 1px solid var(--card-border);
  padding: 36px 0;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.footer-copy { color: var(--text-dim); font-size: 0.9rem; }
.footer-tag { color: var(--gold-soft); font-style: italic; font-size: 0.92rem; }

/* ===================== BOTÓN FLOTANTE WHATSAPP ===================== */
.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wa-green), var(--wa-green-dark));
  display: grid; place-items: center;
  font-size: 1.7rem;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
  z-index: 90;
  animation: pulse 2.2s infinite;
}
.wa-float img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===================== REVEAL ANIMATION ===================== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 940px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav-links {
    position: fixed;
    top: 70px; right: 0;
    width: 75%;
    max-width: 320px;
    height: calc(100vh - 70px);
    flex-direction: column;
    background: var(--navy-800);
    border-left: 1px solid var(--card-border);
    padding: 30px 26px;
    gap: 8px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 12px 0; font-size: 1.05rem; border-bottom: 1px solid var(--card-border); }
  .hamburger { display: flex; }
  .nav-cta { display: none; }
}
@media (max-width: 620px) {
  .cards-3, .cards-4 { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .hero-stats strong { font-size: 1.5rem; }
  .cta-box { padding: 36px 22px; }
  .brand-text small { display: none; }
}
