:root {
  --bg: #0f172a;
  --panel: #111827;
  --panel-soft: #1f2937;
  --text: #e5e7eb;
  --muted: #cbd5e1;
  --primary: #38bdf8;
  --border: rgba(148, 163, 184, 0.25);
  --success: #22c55e;
  --danger: #ef4444;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, var(--bg), #020617 60%);
  color: var(--text);
}

.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

/* HERO NUEVO EN 2 COLUMNAS */
.hero {
  background: linear-gradient(180deg, #081226 0%, #09162b 100%);
  padding: 72px 0 56px;
  color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 680px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
}

.badge:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

h1, h2, h3 { margin-top: 0; }

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  margin: 18px 0 18px;
  letter-spacing: -0.02em;
}

h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.subtitle,
p,
li,
label,
input,
button {
  font-size: 1rem;
  line-height: 1.6;
}

.subtitle {
  max-width: 60ch;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.hero-actions,
.field-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  width: 100%;
  max-width: 620px;
  height: auto;
  display: block;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.section {
  padding: 4rem 0;
}

.section.alt {
  background: rgba(17, 24, 39, 0.55);
}

.grid-two {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 2rem;
}

.card {
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.note ul {
  padding-left: 1.2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
}

.button.primary {
  background: var(--primary);
  color: #082f49;
}

.button.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.section-heading {
  margin-bottom: 1.5rem;
}

.form-card {
  max-width: 780px;
}

.field {
  margin-bottom: 1rem;
}

.field-grid .field {
  flex: 1 1 280px;
}

label {
  display: block;
  margin-bottom: 0.35rem;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.6);
  color: var(--text);
}

.checkbox-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 1rem 0 1.5rem;
}

.form-message {
  min-height: 1.5rem;
  margin-top: 1rem;
}

.form-message.success {
  color: var(--success);
}

.form-message.error {
  color: var(--danger);
}

/* FOOTER */
.footer {
  background: #0b1a2b;
  color: #cbd5e1;
  padding: 50px 20px 20px;
  margin-top: 60px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.footer-col h4 {
  color: #ffffff;
  margin-bottom: 15px;
  font-size: 16px;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-col a {
  color: #38bdf8;
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-logo {
  width: 140px;
  margin-bottom: 15px;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  color: #94a3b8;
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-image {
    max-width: 100%;
  }
}

@media (max-width: 800px) {
  .grid-two {
    grid-template-columns: 1fr;
  }
  .whatsapp-float {
    right: 18px;
    bottom: 18px;
  }

  .whatsapp-float a {
    width: 58px;
    height: 58px;
  }

  .whatsapp-float img {
    width: 30px;
    height: 30px;
  }
}

/* WhatsApp flotante */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
}

.whatsapp-float a {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.whatsapp-float a:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.42);
}

.whatsapp-float img {
  width: 34px;
  height: 34px;
  display: block;
}
.whatsapp-label {
  position: absolute;
  right: 76px;
  background: #111827;
  color: #fff;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.whatsapp-float a:hover .whatsapp-label {
  opacity: 1;
}

.hero-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.badge.institutional {
  max-width: 360px;
  height: 52px;
  padding: 8px 16px;
  gap: 10px;
}

.badge.institutional img {
  width: 44px !important;
  height: 32px !important;
  max-width: 44px !important;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  padding: 3px;
}

.badge.institutional span {
  font-size: 0.9rem;
  white-space: nowrap;
}
