/* ===== RESET Y BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #ffffff;
  color: #101010;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TIPOGRAFÍA ===== */
h1, h2, h3, h4 {
  color: #1C3080;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.8rem;
  line-height: 1.2;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.2rem;
  color: #101010;
  font-weight: 400;
}

.subtitle {
  color: #4CB4D4;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.kicker {
  display: inline-block;
  background: #4CB4D4;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

/* ===== HEADER ===== */
.site-header {
  background: #1C3080;
  padding: 8px 0;
  border-bottom: 6px solid #4CB4D4;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ===== LOGO ===== */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;           /* separación entre elementos */
  text-decoration: none;
  padding: 8px 0;
  transition: transform 0.3s ease;
}

.brand-logo:hover {
  transform: scale(1.02);
}

.brand-logo img {
  height: 50px;        /* altura base, se puede sobrescribir con el atributo height en el HTML */
  width: auto;
  display: block;
}

.slogan {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: #000000;
  /* Borde blanco con text-shadow (4 direcciones) */
  text-shadow: 
    -1px -1px 0 #ffffff,
     1px -1px 0 #ffffff,
    -1px  1px 0 #ffffff,
     1px  1px 0 #ffffff;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ===== NAV ===== */
.nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.nav a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.nav a:hover,
.nav a.active {
  color: #ffffff;
  border-bottom-color: #4CB4D4;
}

/* ===== HERO ===== */
.hero {
  padding: 60px 0 40px;
  background: linear-gradient(135deg, #f9fcff 0%, #D8ECF8 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  color: #1C3080;
  margin-bottom: 1.2rem;
}

.hero .lead {
  color: #101010;
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

.actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
}

.btn-primary {
  background: #6438A8;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(100, 56, 168, 0.3);
}

.btn-primary:hover {
  background: #4f2d86;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(100, 56, 168, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #1C3080;
  border: 2px solid #1C3080;
}

.btn-secondary:hover {
  background: #1C3080;
  color: #ffffff;
}

/* ===== ESTADÍSTICAS ===== */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(4px);
  padding: 20px 24px;
  border-radius: 16px;
  border: 1px solid #C8CCD8;
}

.stat {
  flex: 1 0 120px;
}

.stat strong {
  display: block;
  font-size: 1.8rem;
  color: #1C8CBC;
}

.stat span {
  font-size: 0.9rem;
  color: #101010;
}

/* ===== TARJETA DESTACADA ===== */
.hero-card {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px -12px rgba(28,48,128,0.15);
  border: 1px solid #D8ECF8;
}

.hero-card .media {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.hero-card .content {
  padding: 24px;
}

.hero-card .content h3 {
  color: #1C3080;
}

.hero-card .content p {
  color: #101010;
}

/* ===== PAGE HERO (internas) ===== */
.page-hero {
  background: #1C3080;
  color: #ffffff;
  padding: 40px 0 30px;
  border-bottom: 6px solid #4CB4D4;
}

.page-hero .breadcrumb {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.page-hero .breadcrumb a {
  color: #4CB4D4;
  text-decoration: none;
}

.page-hero .breadcrumb a:hover {
  text-decoration: underline;
}

.page-hero h1 {
  color: #ffffff;
  font-size: 2.6rem;
  margin-bottom: 0.25rem;
}

.page-hero .lead {
  color: #D8ECF8;
  font-size: 1.15rem;
}

/* ===== SECCIONES ===== */
.section {
  padding: 60px 0;
}

.section-soft {
  background: #D8ECF8;
}

.section h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* ===== PANELES / TARJETAS ===== */
.panel {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #C8CCD8;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  padding: 28px;
  transition: box-shadow 0.2s;
}

.panel:hover {
  box-shadow: 0 8px 24px rgba(28,48,128,0.08);
}

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 24px;
  border: 1px solid #D8ECF8;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  transition: all 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(28,48,128,0.08);
}

.card .icon {
  font-size: 2rem;
  font-weight: 700;
  color: #4CB4D4;
  margin-bottom: 0.5rem;
}

.card h3 {
  color: #1C3080;
}

.card p {
  color: #101010;
}

/* ===== BADGE ===== */
.badge {
  display: inline-block;
  background: #6438A8;
  color: #ffffff;
  padding: 6px 18px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: 12px;
}

/* ===== LISTAS ===== */
.list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 1rem;
}

.list .tick {
  color: #4CB4D4;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.4;
}

/* ===== FORMULARIO ===== */
.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form input,
.form textarea {
  padding: 14px 18px;
  border: 1px solid #C8CCD8;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: #4CB4D4;
  box-shadow: 0 0 0 4px rgba(76,180,212,0.2);
}

.form .btn {
  align-self: flex-start;
}

/* ===== FOOTER ===== */
.footer {
  background: #1C3080;
  color: rgba(255,255,255,0.7);
  padding: 24px 0;
  text-align: center;
  font-size: 0.9rem;
  border-top: 4px solid #4CB4D4;
}

/* ===== GRIDS ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .nav {
    justify-content: center;
    gap: 12px 16px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .two-col,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 2.2rem;
  }
  .page-hero h1 {
    font-size: 2rem;
  }
  .stats {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .brand-logo img {
    height: 35px;
  }
  .slogan {
    font-size: 0.7rem;
  }
}