/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', 'Roboto', sans-serif;
  color: #1a202c;
  background: #fff;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== TOP BANNER ===== */
.top-banner {
  background: #FFF8DC;
  border-bottom: 3px solid #f59e0b;
  padding: 0.65rem 1.25rem;
  text-align: center;
}
.top-banner p {
  font-size: 0.82rem;
  color: #78350f;
  font-weight: 500;
  line-height: 1.55;
  max-width: 960px;
  margin: 0 auto;
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #0057B7;
  box-shadow: 0 2px 10px rgba(0,87,183,0.3);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  gap: 1rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  white-space: nowrap;
}
.nav-logo svg { flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
}
.nav-links a {
  color: rgba(255,255,255,0.88);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { background: rgba(255,255,255,0.18); color: #fff; }

/* hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.22s, opacity 0.22s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 58px;
    left: 0; right: 0;
    background: #004fa3;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.6rem 0.75rem; font-size: 0.95rem; }
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #0057B7 0%, #003d82 100%);
  color: #fff;
  padding: 4rem 1.25rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-icon { font-size: 3.5rem; display: block; margin-bottom: 1rem; }
.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.9rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.hero p {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: rgba(255,255,255,0.88);
  max-width: 640px;
  margin: 0 auto 1.75rem;
}
.hero-badges {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  flex-wrap: wrap;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff;
  padding: 0.4rem 0.95rem;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, #0057B7 0%, #003d82 100%);
  color: #fff;
  padding: 3rem 1.25rem;
  text-align: center;
}
.page-hero .hero-icon { font-size: 2.8rem; margin-bottom: 0.75rem; }
.page-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.65rem;
}
.page-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  max-width: 580px;
  margin: 0 auto;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== SECTION ===== */
section { padding: 4rem 0; }
.section-alt { background: #F5F5F5; }

.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-tag {
  display: inline-block;
  background: #e6effe;
  color: #0057B7;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.85rem;
  border-radius: 99px;
  margin-bottom: 0.65rem;
}
.section-header h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 0.55rem;
}
.section-header p {
  color: #4a5568;
  font-size: 0.97rem;
  max-width: 540px;
  margin: 0 auto;
}

/* ===== CARDS GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.4rem;
}
.card {
  background: #fff;
  border-radius: 14px;
  padding: 1.65rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,87,183,0.07);
  border: 1px solid #dde8f8;
  transition: transform 0.18s, box-shadow 0.18s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,87,183,0.16);
}
.card-icon {
  width: 50px;
  height: 50px;
  background: #e6effe;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  font-size: 1.4rem;
}
.card h3 { font-size: 1.05rem; font-weight: 700; color: #1a202c; margin-bottom: 0.4rem; }
.card p { color: #4a5568; font-size: 0.88rem; line-height: 1.65; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #0057B7;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.75rem;
}

/* ===== STEPS ===== */
.steps-list {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  background: #fff;
  border-radius: 12px;
  padding: 1.35rem 1.5rem;
  border: 1px solid #dde8f8;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.step-num {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #0057B7;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-content h4 { font-size: 0.97rem; font-weight: 700; color: #1a202c; margin-bottom: 0.2rem; }
.step-content p { color: #4a5568; font-size: 0.88rem; line-height: 1.62; }

/* ===== TIPS / ALERT BOXES ===== */
.tip-box {
  background: #e6effe;
  border-left: 4px solid #0057B7;
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.25rem;
  margin-bottom: 0.85rem;
}
.tip-box p { color: #1a3a6e; font-size: 0.9rem; line-height: 1.6; }
.warning-box {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.25rem;
  margin-bottom: 0.85rem;
}
.warning-box p { color: #78350f; font-size: 0.9rem; line-height: 1.6; }
.success-box {
  background: #f0fdf4;
  border-left: 4px solid #22c55e;
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.25rem;
  margin-bottom: 0.85rem;
}
.success-box p { color: #14532d; font-size: 0.9rem; line-height: 1.6; }

/* ===== FAQ ACCORDION ===== */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.faq-item {
  border: 1px solid #dde8f8;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 1.05rem 1.25rem;
  text-align: left;
  font-family: inherit;
  font-size: 0.93rem;
  font-weight: 600;
  color: #1a202c;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background 0.15s;
}
.faq-q:hover { background: #f5f8ff; }
.faq-chevron {
  width: 24px; height: 24px;
  background: #e6effe;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #0057B7;
  font-size: 0.7rem;
  transition: transform 0.22s;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding: 0 1.25rem 1.1rem;
  color: #4a5568;
  font-size: 0.9rem;
  line-height: 1.72;
  border-top: 1px solid #e6effe;
}
.faq-item.open .faq-a { display: block; }

/* ===== GLOSARIO ===== */
.glosario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}
.glosario-item {
  background: #fff;
  border: 1px solid #dde8f8;
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
}
.glosario-item dt {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0057B7;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.glosario-item dd {
  color: #4a5568;
  font-size: 0.87rem;
  line-height: 1.65;
}

/* ===== PROSE (legal / privacy pages) ===== */
.prose {
  max-width: 780px;
  margin: 0 auto;
}
.prose h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0057B7;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid #e6effe;
}
.prose h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a202c;
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
}
.prose p {
  color: #374151;
  font-size: 0.93rem;
  line-height: 1.78;
  margin-bottom: 0.85rem;
}
.prose ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 0.85rem;
}
.prose ul li {
  color: #374151;
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 0.3rem;
}
.prose .last-updated {
  display: inline-block;
  background: #e6effe;
  color: #0057B7;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  margin-bottom: 1.5rem;
}

/* ===== CONTACT ===== */
.contact-box {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  padding: 2.5rem;
  text-align: center;
  border: 1px solid #dde8f8;
  box-shadow: 0 4px 24px rgba(0,87,183,0.1);
}
.contact-box .big-icon { font-size: 3rem; display: block; margin-bottom: 0.75rem; }
.contact-box h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; }
.contact-box p { color: #4a5568; font-size: 0.9rem; margin-bottom: 1.25rem; line-height: 1.7; }
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #e6effe;
  color: #0057B7;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.97rem;
  transition: background 0.15s;
}
.contact-email:hover { background: #ccddf9; }

/* ===== TWO-COL LAYOUT ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }

/* ===== ICON LIST ===== */
.icon-list { display: flex; flex-direction: column; gap: 0.65rem; }
.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #374151;
  font-size: 0.9rem;
  line-height: 1.6;
}
.icon-list li .li-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* ===== ACERCA DE BOX ===== */
.about-box {
  background: #fff;
  border-radius: 14px;
  padding: 1.75rem;
  border: 1px solid #dde8f8;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  text-align: center;
}
.about-box .big-icon { font-size: 2.5rem; display: block; margin-bottom: 0.75rem; }
.about-box h3 { font-size: 1.05rem; font-weight: 700; color: #1a202c; margin-bottom: 0.4rem; }
.about-box p { color: #4a5568; font-size: 0.88rem; line-height: 1.65; }

/* ===== FOOTER ===== */
footer {
  background: #0f1b2d;
  color: rgba(255,255,255,0.6);
  padding: 2.75rem 1.25rem;
}
.footer-inner { max-width: 1180px; margin: 0 auto; text-align: center; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.85rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.footer-nav a {
  color: rgba(255,255,255,0.58);
  font-size: 0.82rem;
  transition: color 0.15s;
}
.footer-nav a:hover { color: #fff; }
.footer-sep {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 1.25rem 0;
}
.footer-disclaimer {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.3); }

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.mt-xs { margin-top: 0.5rem; }
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 1.75rem; }
.mb-md { margin-bottom: 1.75rem; }
.highlight { color: #0057B7; font-weight: 700; }

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  section { padding: 2.75rem 0; }
  .hero { padding: 3rem 1rem 3.5rem; }
  .page-hero { padding: 2.25rem 1rem; }
  .step { flex-direction: column; gap: 0.65rem; }
  .contact-box { padding: 1.75rem 1.25rem; }
  .prose { padding: 0 0.25rem; }
}
