/* ============================================
   CG Medina Seguros — Estilos Principales
   ============================================ */

/* ── RESET & VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --azul:        #1a3a5c;
  --azul-med:    #2563a8;
  --azul-claro:  #e8f2fb;
  --dorado:      #c8920a;
  --dorado-clr:  #f0b429;
  --blanco:      #ffffff;
  --gris-claro:  #f5f6f8;
  --gris-texto:  #5a6475;
  --texto:       #1a1f2e;
  --borde:       rgba(26,58,92,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--texto);
  background: var(--blanco);
  font-size: 16px;
  line-height: 1.65;
}

/* ── NAVBAR ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--azul);
  border-bottom: 2px solid var(--dorado);
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--blanco);
  text-decoration: none;
}

.nav-brand span { color: var(--dorado-clr); }

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--dorado-clr); }

.nav-cta {
  background: var(--dorado) !important;
  color: var(--blanco) !important;
  padding: 7px 18px;
  border-radius: 4px;
  font-weight: 500 !important;
}

.nav-cta:hover { background: var(--dorado-clr) !important; color: var(--azul) !important; }

/* ── BOTONES ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-gold { background: var(--dorado); color: var(--blanco); }
.btn-gold:hover { background: var(--dorado-clr); color: var(--azul); }

.btn-outline {
  background: transparent;
  color: var(--blanco);
  border: 1px solid rgba(255,255,255,0.35);
}

.btn-outline:hover { border-color: var(--dorado-clr); color: var(--dorado-clr); }

.btn-outline-dark {
  background: transparent;
  color: var(--azul);
  border: 1px solid var(--borde);
}

.btn-outline-dark:hover { border-color: var(--azul); background: var(--azul-claro); }

.btn-wa { background: #25d366; color: var(--blanco); }
.btn-wa:hover { background: #1ebe5d; }

/* ── HERO ── */
.hero {
  background: var(--azul);
  padding: 80px 24px 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  border: 70px solid rgba(200,146,10,0.07);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 50px solid rgba(255,255,255,0.03);
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 56px;
}

.hero-text { flex: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(200,146,10,0.15);
  border: 1px solid rgba(240,180,41,0.3);
  color: var(--dorado-clr);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--blanco);
  line-height: 1.15;
  margin-bottom: 12px;
  font-weight: 500;
}

.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
  font-weight: 300;
}

.hero-lema {
  font-family: 'Playfair Display', serif;
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.9);
  font-style: italic;
  border-left: 3px solid var(--dorado);
  padding-left: 16px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.hero-tagline {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 32px;
  font-weight: 300;
}

.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-foto {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid var(--dorado);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 10px rgba(200,146,10,0.12);
}

/* ── CREDENCIALES ── */
.credenciales {
  background: #0f2236;
  border-top: 1px solid rgba(240,180,41,0.2);
}

.credenciales-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.cred-item { text-align: center; padding: 16px 24px; }

.cred-num {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  color: var(--dorado-clr);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 4px;
}

.cred-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── SECCIONES GENERALES ── */
section { padding: 72px 24px; }
.container { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 8px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3vw, 34px);
  color: var(--azul);
  margin-bottom: 12px;
  font-weight: 500;
  line-height: 1.25;
}

.section-desc {
  font-size: 16px;
  color: var(--gris-texto);
  max-width: 600px;
  margin-bottom: 48px;
  font-weight: 300;
  line-height: 1.7;
}

/* ── A QUIÉN AYUDO ── */
#ayudo { background: var(--gris-claro); }

.nichos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.nicho-card {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 8px;
  padding: 28px 24px;
  border-top: 3px solid var(--dorado);
  transition: transform 0.2s, box-shadow 0.2s;
}

.nicho-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(26,58,92,0.1);
}

.nicho-icon { font-size: 28px; margin-bottom: 14px; }

.nicho-card h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--azul);
  margin-bottom: 8px;
}

.nicho-card p {
  font-size: 14px;
  color: var(--gris-texto);
  font-weight: 300;
  line-height: 1.6;
}

/* ── SOLUCIONES ── */
#soluciones { background: var(--blanco); }

.soluciones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.solucion-card {
  background: var(--azul-claro);
  border-radius: 8px;
  padding: 24px 20px;
  border-left: 4px solid var(--azul-med);
  transition: background 0.2s;
}

.solucion-card:hover { background: #d4e8f7; }

.solucion-pregunta {
  font-size: 14px;
  color: var(--gris-texto);
  font-style: italic;
  margin-bottom: 8px;
  font-weight: 300;
}

.solucion-card h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--azul);
}

/* ── POR QUÉ YO ── */
#porque { background: var(--gris-claro); }

.porque-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.porque-texto p {
  font-size: 15px;
  color: var(--gris-texto);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 16px;
}

.destacado {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--azul);
  font-style: italic;
  border-left: 3px solid var(--dorado);
  padding-left: 16px;
  margin: 28px 0;
  line-height: 1.5;
}

.diferenciadores { display: flex; flex-direction: column; gap: 16px; }

.dif-item {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 8px;
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.dif-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--azul);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.dif-item h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--azul);
  margin-bottom: 4px;
}

.dif-item p {
  font-size: 13px;
  color: var(--gris-texto);
  font-weight: 300;
  line-height: 1.6;
}

/* ── CÓMO TRABAJO ── */
#como { background: var(--azul); }
#como .section-title { color: var(--blanco); }
#como .section-desc { color: rgba(255,255,255,0.6); }
#como .section-label { color: var(--dorado-clr); }

.pasos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.paso-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 28px 24px;
}

.paso-num {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  color: rgba(240,180,41,0.25);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 12px;
}

.paso-card h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--blanco);
  margin-bottom: 8px;
}

.paso-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  font-weight: 300;
  line-height: 1.6;
}

/* ── CONTACTO ── */
#contacto { background: var(--blanco); }
#contacto .section-title { color: var(--azul); }
#contacto .section-desc { color: var(--gris-texto); }
#contacto .section-label { color: var(--dorado); }

.atiende-banner {
  background: var(--azul-claro);
  border: 1px solid var(--borde);
  border-left: 4px solid var(--azul-med);
  border-radius: 8px;
  padding: 16px 24px;
  font-size: 14px;
  color: var(--gris-texto);
  margin-bottom: 32px;
  font-weight: 300;
}

.atiende-banner strong { color: var(--azul); font-weight: 500; }

.contacto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.contacto-item {
  background: var(--gris-claro);
  border: 1px solid var(--borde);
  border-radius: 8px;
  padding: 20px 24px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.contacto-item:hover {
  background: var(--azul-claro);
  border-color: var(--azul-med);
}

.ci-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dorado);
  margin-bottom: 4px;
  font-weight: 500;
}

.ci-val {
  font-size: 15px;
  color: var(--azul);
  font-weight: 400;
}

.contacto-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── FOOTER ── */
footer {
  background: #0f2236;
  padding: 24px;
  border-top: 2px solid var(--dorado);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

footer p { font-size: 13px; color: rgba(255,255,255,0.4); }

footer a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover { color: var(--dorado-clr); }

.footer-redes {
  display: flex;
  gap: 8px;
  align-items: center;
}

.red-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.5) !important;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  font-size: 0;
}

.red-social:hover {
  background: var(--dorado);
  color: var(--blanco) !important;
  transform: translateY(-2px);
}

/* ── ANIMACIONES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-text { animation: fadeUp 0.7s ease both; }
.hero-foto { animation: fadeUp 0.7s ease 0.15s both; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero-inner { flex-direction: column-reverse; text-align: center; }
  .hero-btns { justify-content: center; }
  .hero-lema { text-align: left; }
  .porque-inner { grid-template-columns: 1fr; gap: 32px; }
  nav { flex-wrap: wrap; height: auto; padding: 12px 16px; gap: 10px; }
  .nav-links { gap: 14px; flex-wrap: wrap; justify-content: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-redes { justify-content: center; }
  .credenciales-inner { justify-content: center; }
}
