/* ============================================================
   Index — Página de inicio pública
   ============================================================ */

.home-page {
  display: flex;
  flex-direction: column;
  /* Contrarresta el padding lateral de #Contenedor-Dinamico para secciones full-width */
  margin: 0 -1rem;
  /* Blanco en las esquinas del clip-path del hero para fusionarlo con la sección siguiente */
  background-color: var(--color-card);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background-color: var(--color-card);
  background-image: url('/images/hero.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 5rem 1.5rem 5.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  clip-path: ellipse(110% 100% at 50% 0%);
}

.hero-content {
  max-width: 680px;
}

.hero-badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
}

.hero-years {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin: 0 0 2.25rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-btn {
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-base);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  display: inline-block;
}

.hero-btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 152, 0, 0.4);
}

.hero-btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 152, 0, 0.5);
}

.hero-btn-outline {
  background: var(--color-primary);
  color: #fff;
  border: 2px solid var(--color-primary);
}

.hero-btn-outline:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* ============================================================
   Secciones comunes
   ============================================================ */
.home-section-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  text-align: center;
}

/* Layout lateral para "Un sueño" */
.home-dream-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  text-align: left;
}

.home-dream-text-col {
  flex: 1;
  min-width: 0;
}

.home-dream-img-col {
  flex: 0 0 340px;
}

.home-dream-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: block;
}

.home-section-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 0.6rem;
}

.home-section-divider {
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  margin: 0 auto 2rem;
}

/* ============================================================
   Sección: Un sueño
   ============================================================ */
.home-dream {
  background: var(--color-card);
  border-bottom: 1px solid var(--color-border);
}

.home-dream-text {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  max-width: 680px;
  margin: 0 auto;
}

.home-dream-text strong {
  color: var(--color-primary);
  font-weight: 700;
}

/* ============================================================
   Sección: Hagámoslo fácil
   ============================================================ */
.home-easy {
  background: var(--color-bg);
}

.home-easy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  text-align: left;
}

.home-easy-card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.09);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-easy-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);
}

.home-easy-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 190px;
  position: relative;
  overflow: hidden;
}

/* Círculos decorativos de fondo */
.home-easy-icon-wrap::before,
.home-easy-icon-wrap::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.home-easy-icon-wrap::before {
  width: 230px;
  height: 230px;
  top: -70px;
  right: -55px;
}

.home-easy-icon-wrap::after {
  width: 150px;
  height: 150px;
  bottom: -55px;
  left: -30px;
}

.home-easy-icon-green {
  background: linear-gradient(135deg, var(--color-primary) 0%, #66bb6a 100%);
  color: var(--color-primary);
}

.home-easy-icon-orange {
  background: linear-gradient(135deg, var(--color-accent-dark) 0%, #ffb74d 100%);
  color: var(--color-accent-dark);
}

/* Círculo blanco que contiene el ícono */
.home-easy-icon-circle {
  width: 92px;
  height: 92px;
  background: rgba(255, 255, 255, 0.93);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.home-easy-body {
  padding: 1.75rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  flex: 1;
}

.home-easy-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.home-easy-text {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
  flex: 1;
  max-width: 280px;
}

.home-easy-btn {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  margin-top: 0.25rem;
  transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 3px 10px rgba(56, 142, 60, 0.3);
}

.home-easy-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(56, 142, 60, 0.4);
}

/* ============================================================
   Sección: Equipo de trabajo
   ============================================================ */
.home-team {
  background: var(--color-card);
  border-top: 1px solid var(--color-border);
}

.home-team-img {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  border-radius: var(--radius-md);
  margin: 0 auto 2rem;
  object-fit: cover;
  box-shadow: var(--shadow-md);
  background: var(--color-bg);
  min-height: 160px;
}

.home-team-social {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.home-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.home-social-link:hover {
  transform: translateY(-3px);
  opacity: 0.88;
}

.home-social-fb    { background: #1877f2; }
.home-social-ig    { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.home-social-sp    { background: #1db954; }
.home-social-email { background: #5f6368; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .hero {
    padding: 3.5rem 1.25rem 4.5rem;
  }

  .home-dream-inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .home-dream-inner .home-section-title {
    text-align: center;
  }

  .home-dream-inner .home-section-divider {
    margin: 0 auto 2rem;
  }

  .home-dream-img-col {
    flex: unset;
    width: 100%;
  }

  .home-dream-img {
    aspect-ratio: 4 / 3;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-years {
    font-size: 1rem;
  }

  .home-section-inner {
    padding: 2.5rem 1.25rem;
  }

  .home-section-title {
    font-size: 1.5rem;
  }

  .home-easy-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-btn {
    width: 100%;
    text-align: center;
  }

  .home-easy-img {
    height: 160px;
  }
}
