/* =============================================
   SENTIR DOLORENSE — Estilos principales
   Paleta: logo (azul marino, azul medio, verde, amarillo)
   ============================================= */

/* --- Variables --- */
:root {
  --azul-marino:  #1B3A6B;
  --azul-medio:   #1E7BC4;
  --azul-claro:   #E8F4FD;
  --verde:        #2E9E3A;
  --verde-claro:  #E8F6EA;
  --amarillo:     #F5B800;
  --amarillo-claro: #FEF8E1;
  --blanco:       #FFFFFF;
  --gris-fondo:   #F5F7FA;
  --gris-texto:   #4A5568;
  --gris-suave:   #718096;
  --negro:        #1A1A2E;

  --radio:        12px;
  --radio-sm:     8px;
  --sombra:       0 4px 24px rgba(27, 58, 107, 0.10);
  --sombra-hover: 0 8px 32px rgba(27, 58, 107, 0.18);
  --transicion:   all 0.25s ease;

  --fuente: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--fuente);
  color: var(--negro);
  background: var(--blanco);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Contenedor --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   BOTONES
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transicion);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--amarillo);
  color: var(--azul-marino);
  border-color: var(--amarillo);
}
.btn-primary:hover {
  background: #e0a800;
  border-color: #e0a800;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,184,0,0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--blanco);
  border-color: rgba(255,255,255,0.6);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--blanco);
}
.btn-outline {
  background: transparent;
  color: var(--azul-marino);
  border-color: var(--azul-marino);
}
.btn-outline:hover {
  background: var(--azul-marino);
  color: var(--blanco);
}
/* =============================================
   HEADER
   ============================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transicion);
}
.header.scrolled {
  background: var(--blanco);
  padding: 10px 0;
  box-shadow: var(--sombra);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo-link { display: flex; align-items: center; }
.logo-img {
  height: 68px;
  width: auto;
  transition: var(--transicion);
}
.header.scrolled .logo-img { height: 52px; }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  color: var(--blanco);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 6px 12px;
  border-radius: 6px;
  transition: var(--transicion);
}
.header.scrolled .nav-link { color: var(--gris-texto); }
.nav-link:hover { color: var(--amarillo); }
.header.scrolled .nav-link:hover { color: var(--azul-marino); background: var(--gris-fondo); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blanco);
  border-radius: 2px;
  transition: var(--transicion);
}
.header.scrolled .hamburger span { background: var(--azul-marino); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--azul-marino) 0%, #164d9a 50%, var(--azul-medio) 100%);
}
.hero-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  background: var(--blanco);
}
.shape-1 { width: 600px; height: 600px; top: -200px; right: -200px; }
.shape-2 { width: 300px; height: 300px; bottom: -100px; left: -100px; background: var(--amarillo); opacity: 0.12; }
.shape-3 { width: 180px; height: 180px; top: 30%; right: 15%; background: var(--verde); opacity: 0.15; }

.hero-logo-row {
  position: relative;
  z-index: 1;
  padding: 150px 24px 0;
}
.hero-logo-card {
  display: inline-flex;
  background: var(--blanco);
  border-radius: var(--radio);
  padding: 20px 32px;
  box-shadow: var(--sombra-hover);
}
.hero-logo {
  height: 170px;
  width: auto;
  display: block;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 32px 24px 100px;
}
.hero-tagline {
  color: var(--amarillo);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-title {
  color: var(--blanco);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
}
.hero-desc {
  color: rgba(255,255,255,0.82);
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
/* Basílica en el hero */
.hero-basilica {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 100%;
  width: auto;
  max-width: 55%;
  object-fit: contain;
  object-position: right bottom;
  opacity: 0.25;
  mix-blend-mode: luminosity;
  pointer-events: none;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s ease-in-out infinite;
  opacity: 0.6;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* =============================================
   SECCIONES
   ============================================= */
.section { padding: 96px 0; }
.section-alt { background: var(--gris-fondo); }

.section-label {
  display: inline-block;
  color: var(--azul-medio);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}
.section-header h2 { margin-bottom: 14px; }
.section-header p {
  color: var(--gris-texto);
  font-size: 1.05rem;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--azul-marino);
  line-height: 1.2;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--azul-marino);
  margin-bottom: 10px;
}
p { color: var(--gris-texto); margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }
strong { color: var(--azul-marino); }

/* =============================================
   QUIÉNES SOMOS
   ============================================= */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.col-text .section-label { margin-bottom: 16px; }
.col-text h2 { margin-bottom: 24px; }
.col-text p { margin-bottom: 20px; }
.col-text .btn { margin-top: 8px; }

.visual-card {
  background: var(--azul-marino);
  border-radius: var(--radio);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--sombra-hover);
}
.visual-logo { margin-bottom: 28px; }
.visual-logo-img {
  height: 120px;
  width: auto;
  margin: 0 auto;
}
.visual-stats {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 24px;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--amarillo);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.visual-quote {
  color: rgba(255,255,255,0.85);
  font-style: italic;
  font-size: 0.95rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  margin: 0;
}

/* Foto vecinos */
.foto-vecinos-wrap {
  position: relative;
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra-hover);
}
.foto-vecinos {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.foto-vecinos-badge {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(27,58,107,0.92) 0%, transparent 100%);
  padding: 32px 24px 20px;
}
.foto-vecinos-badge span {
  color: var(--blanco);
  font-style: italic;
  font-size: 0.95rem;
  font-weight: 500;
}

/* =============================================
   VALORES
   ============================================= */
.valores-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.valor-card {
  background: var(--blanco);
  border-radius: var(--radio);
  padding: 36px 32px;
  box-shadow: var(--sombra);
  transition: var(--transicion);
  border-bottom: 4px solid transparent;
}
.valor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra-hover);
  border-bottom-color: var(--azul-medio);
}
.valor-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radio-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.valor-icon-blue { background: var(--azul-claro); color: var(--azul-medio); }
.valor-icon-green { background: var(--verde-claro); color: var(--verde); }
.valor-icon-yellow { background: var(--amarillo-claro); color: #b38600; }

/* =============================================
   CÓMO TRABAJAMOS
   ============================================= */
.pasos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.paso {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.paso-num {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--azul-marino), var(--azul-medio));
  color: var(--blanco);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.paso-content h3 { margin-bottom: 8px; }

/* =============================================
   ENCUESTAS
   ============================================= */
.section-encuestas {
  background: linear-gradient(135deg, var(--azul-marino) 0%, #164d9a 60%, var(--azul-medio) 100%);
}
.section-label-light { color: var(--amarillo); }
.section-encuestas h2 { color: var(--blanco); }
.section-encuestas p { color: rgba(255,255,255,0.80); }

.encuestas-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.encuestas-btns { margin-top: 28px; }

/* Card preview encuesta */
.encuesta-card-preview {
  background: var(--blanco);
  border-radius: var(--radio);
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.ecp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.ecp-badge {
  background: var(--amarillo);
  color: var(--azul-marino);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ecp-num {
  color: var(--gris-suave);
  font-size: 0.85rem;
  font-weight: 600;
}
.ecp-pregunta {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--azul-marino);
  margin-bottom: 24px;
}
.ecp-opciones { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.ecp-opcion {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ecp-label {
  font-size: 0.83rem;
  color: var(--gris-texto);
  font-weight: 500;
}
.ecp-bar {
  display: block;
  height: 8px;
  background: linear-gradient(to right, var(--azul-medio), var(--verde));
  border-radius: 50px;
  opacity: 0.35;
}
.ecp-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--gris-suave);
  font-style: italic;
  margin: 0;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--azul-marino);
  padding: 60px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.footer-logo-card {
  display: inline-flex;
  background: var(--blanco);
  border-radius: var(--radio-sm);
  padding: 12px 18px;
  margin-bottom: 16px;
}
.footer-logo-img {
  height: 64px;
  width: auto;
  display: block;
}
.footer-logo p {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  margin: 0;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: var(--transicion);
}
.footer-links a:hover { color: var(--amarillo); }
.footer-redes p {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.redes-links { display: flex; gap: 12px; }
.red-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: var(--transicion);
}
.red-link:hover { background: var(--amarillo); color: var(--azul-marino); }
.footer-bottom {
  padding: 20px 24px;
  text-align: center;
}
.footer-bottom p {
  color: rgba(255,255,255,0.35);
  font-size: 0.8rem;
  margin: 0;
}

/* =============================================
   ANIMACIONES SCROLL
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .valores-grid { grid-template-columns: 1fr; }
  .pasos-grid { grid-template-columns: 1fr; }
  .encuestas-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--azul-marino);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 999;
  }
  .nav.open { display: flex; }
  .nav .nav-link { color: var(--blanco) !important; font-size: 1.2rem; }

  .section { padding: 72px 0; }
  .hero-logo-row { padding: 110px 24px 0; }
  .hero-content { padding: 28px 24px 80px; }
  .hero-logo { height: 130px; }
  .hero-logo-card { padding: 16px 24px; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-logo { height: 100px; }
  .hero-btns { flex-direction: column; }
  .btn { justify-content: center; }
  .valores-grid { gap: 16px; }
  .valor-card { padding: 28px 20px; }
}
