/* ======================================================
   VARIABLES BASE
====================================================== */

:root {
  --ancho-maximo: 800px;

  --color-texto: #1f1f1f;
  --color-fondo-suave: #f7f9fc;
  --color-fondo-medio: #eef2f7;
  --color-fondo-intenso: #ffffff;

  --color-primario: #5b2d90;

  --radio: 1.2rem;
  --sombra: 0 10px 28px rgba(0,0,0,0.08);
}

/* ======================================================
   RESET
====================================================== */

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  color: var(--color-texto);
  background: linear-gradient(to bottom, #5b2d90 0%, #4f89c7 100%);
}

/* ======================================================
   TIPOGRAFÍA
====================================================== */

h1 {
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 0.8rem;
}

h2 {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 750;
  margin-bottom: 0.8rem;
}

p {
  margin-top: 0.7rem;
}

/* ======================================================
   MENU
====================================================== */

.menu-residencial {
  max-width: var(--ancho-maximo);
  margin: 0 auto;
  padding: 1rem 1.4rem;
  color: #fff;
  font-weight: 600;
}

/* ======================================================
   HERO — CENTRADO REAL
====================================================== */

.bloque-hero {
  display: flex;
  justify-content: center;
  padding: 1.4rem 1.2rem 2.4rem;
}

.hero-residencial {
  background: #fff;
  width: 100%;
  border-bottom-left-radius: 2rem;
  border-bottom-right-radius: 2rem;
  box-shadow: var(--sombra);
}

.hero-residencial > div {
  max-width: var(--ancho-maximo);
  margin: 0 auto;
  padding: 2rem 1.4rem;
  display: flex;
  flex-direction: column;        /* 🔑 */
  align-items: center;           /* 🔑 */
  text-align: center;
}

.hero-residencial img {
  display: block;
  margin: 1.4rem auto 0;         /* 🔑 */
  width: min(580px, 96%);
  height: auto;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}

/* ======================================================
   BLOQUES GENERALES
====================================================== */

main {
  display: block;
}

.bloque-contexto,
.bloque-analisis,
.bloque-conflicto,
.bloque-consecuencia,
.bloque-reflexion,
.bloque-preguntas,
.bloque-accion {
  max-width: var(--ancho-maximo);
  margin: 0 auto;
  padding: 2.6rem 1.6rem;
}

/* ======================================================
   FONDOS
====================================================== */

.fondo-suave { background: var(--color-fondo-suave); }
.fondo-medio { background: var(--color-fondo-medio); }
.fondo-intenso { background: var(--color-fondo-intenso); }

/* ======================================================
   BLOQUE IMAGEN CONTEXTUAL — GRANDE
====================================================== */

.picture-gestion-paqueteria-residencial {
  max-width: var(--ancho-maximo);
  margin: 0 auto;
  padding: 3rem 1.6rem;
}

.picture-gestion-paqueteria-residencial__figure {
  background: #fff;
  padding: 1.6rem;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.picture-gestion-paqueteria-residencial__figure img {
  width: 110%;
  max-width: 750px;              /* 🔑 más grande */
  height: auto;
  border-radius: 1rem;
  box-shadow: var(--sombra);
}

.picture-gestion-paqueteria-residencial__caption {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.95rem;
  color: #444;
  max-width: 70ch;
}

/* ======================================================
   ACORDEÓN — MÁS TÁCTIL
====================================================== */

.bloque-preguntas {
  background: #fff;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}

.acordeon-item {
  border-top: 1px solid rgba(0,0,0,0.08);
}

.acordeon-item:first-child {
  border-top: none;
}

.acordeon-item summary {
  cursor: pointer;
  padding: 1.3rem 1rem;          /* 🔑 más espacio táctil */
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

.acordeon-item summary::-webkit-details-marker {
  display: none;
}

.acordeon-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--color-primario);
}

.acordeon-item[open] summary::after {
  content: "–";
}

.acordeon-panel {
  padding: 0.4rem 1rem 1.4rem;   /* 🔑 */
}

/* ======================================================
   FOOTER
====================================================== */

.bloque-footer {
  background: #e9edf2;
  padding: 2.2rem 1.4rem;
  margin-top: 3rem;
}

.footer-residencial {
  max-width: var(--ancho-maximo);
  margin: 0 auto;
  text-align: center;
  font-size: 0.9rem;
}

/* ======================================================
   RESPONSIVE
====================================================== */

@media (max-width: 720px) {

  .hero-residencial img {
    width: 96%;
  }

  .picture-gestion-paqueteria-residencial {
    padding: 2.0rem 1.0rem;
  }

  .picture-gestion-paqueteria-residencial__figure img {
    max-width: 115%;
  }

  .acordeon-item summary {
    padding: 1.4rem 1rem;        /* 🔑 aún más táctil en móvil */
  }
}
/* ======================================================
   LISTA DE CONSECUENCIAS EN CARDS HORIZONTALES
====================================================== */

.lista-cards-operativas {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  margin-top: 1.6rem;
  padding: 0;
}

.card-operativa {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.4rem 1.3rem;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.card-operativa h3 {
  font-size: 1.05rem;
  font-weight: 750;
  margin-bottom: 0.4rem;
  color: #111;
}

.card-operativa p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
}

/* Afinado móvil */
@media (max-width: 600px) {
  .lista-cards-operativas {
    gap: 1.1rem;
  }

  .card-operativa {
    padding: 1.3rem 1.2rem;
  }
}
/* ======================================================
   ASIDE CONTEXTUAL SEO (BLOQUE COMPLEMENTARIO)
====================================================== */

.aside-contexto-residencial {
  max-width: var(--ancho-maximo);
  margin: 3rem auto 0;
  padding: 1.6rem 1.6rem;
  background: #ffffff;
  border-left: 4px solid var(--color-primario);
  border-radius: 0.8rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.aside-contexto-residencial h3 {
  font-size: 1.05rem;
  font-weight: 750;
  margin-bottom: 0.6rem;
  color: #111;
}

.aside-contexto-residencial p {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 0.8rem;
}

.activity-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.activity-list li {
  margin-top: 0.5rem;
}

.activity-list a {
  font-size: 0.95rem;
  color: var(--color-primario);
  text-decoration: none;
  font-weight: 600;
}

.activity-list a:hover {
  text-decoration: underline;
}

/* ======================================================
   ASIDE - AJUSTE MÓVIL
====================================================== */

@media (max-width: 600px) {

  .aside-contexto-residencial {
    margin-top: 2.2rem;
    padding: 1.4rem 1.2rem;
  }

}


.separador-flecha {
  background: transparent;
  padding: 1rem 0;
}

.contenedor-flecha {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.flecha-animada {
  animation: rebote 1.8s infinite ease-in-out;
  color: #333; /* Ajusta si tu fondo es oscuro */
  opacity: 0.6;
}
@keyframes rebote {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}
/* ======================================================
   BLOQUE INVITACIÓN (CTA SUAVE)
====================================================== */

.fondo-invitacion {
  background: #fff7d6;
}

.bloque-invitacion {
  max-width: var(--ancho-maximo);
  margin: 3rem auto;
  padding: 2.2rem 1.6rem;
  border-radius: 1.2rem;
  text-align: center;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
}

.bloque-invitacion h2 {
  font-size: 1.4rem;
}

.bloque-invitacion p {
  max-width: 60ch;
  margin: 0.8rem auto 1.4rem;
}

.cta-invitacion {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  background: var(--color-primario);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.cta-invitacion:hover {
  opacity: 0.92;
}
.footer-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--color-primario);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}
/* ======================================================
   BLOQUE AUTODIAGNÓSTICO
====================================================== */

.bloque-autodiagnostico {
  max-width: var(--ancho-maximo);
  margin: 3rem auto;
  padding: 2.2rem 1.6rem;
  background: #ffffff;
  border-radius: 1.2rem;
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
}

.diagnostico-intro {
  margin-bottom: 1.4rem;
  color: #333;
}

.diagnostico-item {
  margin-bottom: 1.2rem;
}

.diagnostico-item p {
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.diagnostico-item label {
  margin-right: 1rem;
  font-weight: 500;
}

.diagnostico-resultado {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  text-align: center;
}
/* ======================================================
   BLOQUE PREGUNTAS RESIDENCIAL
====================================================== */

.bloque-preguntas {
  margin: 3rem auto;
  padding: 2.4rem 1.6rem;
  background: #ffffff;
  border-radius: 1.6rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.bloque-preguntas h2 {
  margin-bottom: 1.6rem;
  color: var(--color-primario);
  font-size: 1.4rem;
}

.preguntas-residencial article {
  margin-bottom: 1.6rem;
}

.preguntas-residencial article:last-child {
  margin-bottom: 0;
}

.preguntas-residencial h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: #222;
}

.preguntas-residencial p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
}

/* Responsive fino */
@media (max-width: 600px) {
  .bloque-preguntas {
    padding: 2rem 1.2rem;
  }

  .bloque-preguntas h2 {
    font-size: 1.25rem;
  }
}
.bloque-autodiagnostico {
  max-width: var(--ancho-maximo);
  margin: 3rem auto;
  padding: 2.2rem 1.6rem;
  background: #efe9f7; /* morado tenue */
  border-radius: 1.4rem;
  text-align: center;
}

.bloque-autodiagnostico h2 {
  color: var(--color-primario);
  margin-bottom: 0.8rem;
}

.bloque-autodiagnostico p {
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
}

.cta-autodiagnostico {
  display: inline-block;
  background: var(--color-primario);
  color: #fff;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
}
/* ======================================================
   MENÚ RESIDENCIAL – CONTRASTE Y ESPACIADO
====================================================== */

.menu-residencial {
  max-width: var(--ancho-maximo);
  margin: 0 auto;
  padding: 1rem 1.4rem;
  display: flex;
  gap: 1.4rem;               /* separación clara */
  flex-wrap: wrap;
}

.menu-residencial a {
  color: #ffffff;            /* blanco sólido */
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.9;
}

.menu-residencial a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Ajuste fino móvil */
@media (max-width: 600px) {
  .menu-residencial {
    gap: 1.1rem;
  }
}
