/* Escudo Financiero — Educación financiera y protección contra fraude */

:root {
  --navy: #1a365d;
  --navy-dark: #0f2744;
  --navy-light: #2c5282;
  --gold: #c9a227;
  --gold-light: #e8c84a;
  --emerald: #2d6a4f;
  --emerald-light: #40916c;
  --cream: #f8f6f2;
  --white: #ffffff;
  --gray-100: #f1f3f5;
  --gray-300: #ced4da;
  --gray-500: #868e96;
  --gray-700: #495057;
  --ink: #1e293b;
  --danger: #c0392b;
  --shadow: 0 14px 48px rgba(26, 54, 93, 0.1);
  --shadow-lg: 0 28px 72px rgba(26, 54, 93, 0.14);
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --ease: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.65rem;
}

.section-label::before {
  content: "";
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--emerald-light));
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 0.85rem;
}

.section-lead {
  color: var(--gray-700);
  max-width: 58ch;
  font-size: 1.05rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(248, 246, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.site-header.scrolled {
  border-color: rgba(26, 54, 93, 0.08);
  box-shadow: 0 4px 24px rgba(26, 54, 93, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy);
}

.logo-text span {
  font-size: 0.72rem;
  color: var(--gray-500);
  letter-spacing: 0.04em;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-desktop a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: color var(--ease);
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--navy);
}

.header-cta {
  display: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 0 1.5rem;
  border-top: 1px solid rgba(26, 54, 93, 0.08);
}

.mobile-nav a {
  font-weight: 500;
  padding: 0.5rem 0;
  color: var(--gray-700);
}

.mobile-nav.open {
  display: flex;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  box-shadow: 0 8px 24px rgba(26, 54, 93, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(26, 54, 93, 0.32);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-dark);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: rgba(26, 54, 93, 0.25);
}

.btn-secondary:hover {
  background: rgba(26, 54, 93, 0.05);
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    115deg,
    rgba(15, 39, 68, 0.92) 0%,
    rgba(26, 54, 93, 0.78) 45%,
    rgba(26, 54, 93, 0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 0 5rem;
  color: var(--white);
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(201, 162, 39, 0.2);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 999px;
  color: var(--gold-light);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.15;
  max-width: 14ch;
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.15rem;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--gold-light);
}

.hero-stat span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header .section-lead {
  margin-inline: auto;
}

/* Value cards */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.value-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(26, 54, 93, 0.06);
  transition: transform var(--ease), box-shadow var(--ease);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.value-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(26, 54, 93, 0.08), rgba(201, 162, 39, 0.12));
  display: grid;
  place-items: center;
}

.value-icon img {
  width: 28px;
  height: 28px;
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.65rem;
}

.value-card p {
  color: var(--gray-700);
  font-size: 0.95rem;
}

/* Scam alerts */
.scam-section {
  background: var(--white);
}

.scam-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.scam-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem;
  background: var(--cream);
  border-radius: var(--radius);
  border-left: 4px solid var(--danger);
}

.scam-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.scam-card p {
  font-size: 0.92rem;
  color: var(--gray-700);
}

.scam-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--danger);
  margin-bottom: 0.35rem;
}

/* Trust */
.trust-section {
  background: linear-gradient(180deg, var(--cream) 0%, var(--gray-100) 100%);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.trust-item {
  padding: 1.5rem;
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.trust-item span {
  font-size: 0.88rem;
  color: var(--gray-700);
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--white);
  text-align: center;
  padding: 4.5rem 0;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}

.cta-band p {
  max-width: 50ch;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Page hero (inner pages) */
.page-hero {
  padding: 8rem 0 3rem;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--white);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

/* Content blocks */
.content-section {
  padding: 4rem 0;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.content-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.content-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.content-card-body {
  padding: 1.75rem;
}

.content-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.65rem;
}

.content-card p {
  font-size: 0.92rem;
  color: var(--gray-700);
  margin-bottom: 1rem;
}

.content-card a {
  font-weight: 600;
  color: var(--emerald);
  font-size: 0.9rem;
}

.content-card a:hover {
  color: var(--navy);
}

/* Checklist */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.checklist li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(26, 54, 93, 0.06);
}

.checklist li::before {
  content: "✓";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: rgba(45, 106, 79, 0.12);
  color: var(--emerald);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Legal */
.legal-content {
  max-width: 760px;
  padding: 3rem 0 5rem;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
}

.legal-content p,
.legal-content li {
  color: var(--gray-700);
  margin-bottom: 1rem;
}

.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.contact-detail {
  margin-bottom: 1.25rem;
}

.contact-detail strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  margin-bottom: 0.25rem;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--cream);
  transition: border-color var(--ease);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--navy-light);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-success {
  padding: 1rem 1.25rem;
  background: rgba(45, 106, 79, 0.1);
  border: 1px solid rgba(45, 106, 79, 0.25);
  border-radius: var(--radius);
  color: var(--emerald);
  font-weight: 500;
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.92rem;
  margin-top: 1rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.6rem;
  transition: color var(--ease);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-legal a:hover {
  color: var(--white);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--white);
  border-top: 1px solid rgba(26, 54, 93, 0.1);
  box-shadow: 0 -8px 32px rgba(26, 54, 93, 0.1);
  padding: 1.25rem 0;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cookie-inner p {
  flex: 1;
  min-width: 260px;
  font-size: 0.9rem;
  color: var(--gray-700);
}

.cookie-inner a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
}

.cookie-actions .btn {
  padding: 0.65rem 1.25rem;
  font-size: 0.88rem;
}

.btn-ghost {
  background: transparent;
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

/* Responsive */
@media (max-width: 960px) {
  .nav-desktop,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .value-grid,
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .value-grid,
  .scam-grid,
  .content-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 1.25rem;
  }
}
