
/* --- 1. VARIABLES (Tokens de Diseño) --- */
:root {
  /* Paleta de Colores Aprobada */
  --color-magenta: #E4257C;
  --color-turquoise: #18B8B0;
  --color-orange: #F58B21;
  --color-deep: #2C2560;
  --color-yellow: #FFC93C;
  --color-cream: #FFF9EF;
  --color-white: #FFFFFF;
  --color-purple: #6a629c;
  --color-lavender: #8a83b8;
  --color-cloud: #e7e4f7;
  --color-indigo: #4b447c;
  --color-lila: #a49bd6;

  /* Tipografía */
  --font-base: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Baloo 2', system-ui, -apple-system, sans-serif;

  /* Espaciados y Radios */
  --radius-sm: 14px;
  --radius-md: 26px;
  --radius-lg: 38px;

  /* Sombras Base */
  --shadow-sm: 0 4px 10px rgba(44, 37, 96, 0.08);
  --shadow-card: 0 18px 34px rgba(44, 37, 96, 0.18);
  --shadow-card-hover: 0 26px 44px rgba(44, 37, 96, 0.28);
}

/* --- 2. RESET Y ESTILOS BASE --- */
body {
  font-family: var(--font-base);
  color: var(--color-deep);
  background-color: var(--color-cream);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0.5px;
}

.caption {
  margin-top: 18px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .9rem;
  color: var(--color-lavender);
}

/* --- 3. UTILIDADES (Helpers) --- */
.text-magenta {
  color: var(--color-magenta) !important;
}

.text-turquoise {
  color: var(--color-turquoise) !important;
}

.text-orange {
  color: var(--color-orange) !important;
}

.text-deep {
  color: var(--color-deep) !important;
}

.text-yellow {
  color: var(--color-yellow) !important;
}

.text-cream {
  color: var(--color-cream) !important;
}

.text-purple {
  color: var(--color-purple) !important;
}

.text-lavender {
  color: var(--color-lavender) !important;
}

.text-cloud {
  color: var(--color-cloud) !important;
}

.text-indigo {
  color: var(--color-indigo) !important;
}

.text-lila {
  color: var(--color-lila) !important;
}

.bg-magenta {
  background-color: var(--color-magenta) !important;
}

.bg-turquoise {
  background-color: var(--color-turquoise) !important;
}

.bg-orange {
  background-color: var(--color-orange) !important;
}

.bg-deep {
  background-color: var(--color-deep) !important;
}

.bg-yellow {
  background-color: var(--color-yellow) !important;
}

.bg-cream {
  background-color: var(--color-cream) !important;
}

.bg-purple {
  background-color: var(--color-purple) !important;
}

.z-index-2 {
  z-index: 2;
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.tag-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
}

/* Kicker (Subtítulo en mayúsculas pequeño) */
.kicker {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.navbar-logo {
  max-height: 60px;
  object-fit: contain;
}

/* --- 4. COMPONENTES --- */

/* Hero Section Moderno */
.hero-modern {
  position: relative;
  min-height: 70vh;
  background: linear-gradient(0deg, rgba(44, 37, 96, 0.7), rgba(44, 37, 96, 0.7)), url('../img/emprendedoras/hero_1.jpg') center/cover;
  border-bottom-left-radius: 60px 40px;
  border-bottom-right-radius: 120px 70px;
  border: none;
  margin-top: 0;
  margin-bottom: -70px;
  z-index: 10;
}

/* Compensación de padding para la sección inmediatamente debajo del hero */
.hero-modern + section,
.hero-modern + div {
  padding-top: calc(70px + 1rem) !important;
}

/* Héroes por región — sobreescriben solo la imagen y el tinte de color */
.hero-cajamarca {
  background: linear-gradient(0deg, rgba(228, 37, 124, 0.60), rgba(44, 37, 96, 0.55)),
              url('../img/emprendedoras/hero_cajamarca.jpg') center/cover no-repeat;
}

.hero-lalibertad {
  background: linear-gradient(0deg, rgba(24, 184, 176, 0.55), rgba(44, 37, 96, 0.60)),
              url('../img/emprendedoras/hero_1.jpg') center/cover no-repeat;
}

.hero-piura {
  background: linear-gradient(0deg, rgba(245, 139, 33, 0.55), rgba(44, 37, 96, 0.60)),
              url('../img/emprendedoras/hero_piura.jpg') center/cover no-repeat;
}


/* Blobs de Fondo para Hero */
.hero-modern::before {
  content: '';
  position: absolute;
  top: -90px;
  left: -90px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(24, 184, 176, 0.5), transparent 70%);
}

.hero-modern::after {
  content: '';
  position: absolute;
  bottom: -120px;
  right: -60px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 40%, rgba(24, 184, 176, 0.5), transparent 70%);
}

.hero-modern .hero-title {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.02;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.impulsamos-title{
  max-width: 800px;
  line-height: 1.3;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

.nosotros-home-text{
  max-width: 900px;
  line-height: 1.75;
}

/* Brillos animados */
.sparkle {
  position: absolute;
  font-size: 1.4rem;
  color: var(--color-turquoise);
  opacity: 0.9;
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.15));
  animation: twinkle 3.2s ease-in-out infinite;
}

.sparkle-1 {
  top: 14%;
  left: 8%;
}

.sparkle-2 {
  top: 26%;
  left: 22%;
  animation-delay: 0.6s;
}

.sparkle-3 {
  top: 10%;
  right: 14%;
  animation-delay: 1.2s;
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.85) rotate(0deg);
  }

  50% {
    opacity: 1;
    transform: scale(1.15) rotate(15deg);
  }
}

/* Navegación y Logos */
.nav-modern {
  background-color: var(--color-white) !important;
  box-shadow: var(--shadow-sm);
  backdrop-filter: none;
  padding: 0 4rem;
}

.nav-modern .nav-link {
  color: var(--color-deep);
  font-weight: 600;
}

.nav-modern .navbar-title {
  color: var(--color-deep);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 1px;
}

/* Indicador de página activa */
.nav-link-active {
  color: var(--color-magenta) !important;
  position: relative;
}

.nav-link-active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  height: 3px;
  background-color: var(--color-magenta);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .nav-modern {
    padding: 0;
  }
}

/* Dropdown hover — Historias */
.custom-hover-dropdown {
  position: relative;
}

.custom-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 160px;
  background: var(--color-white);
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 30px rgba(44, 37, 96, 0.16);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  transform: translateX(-50%) translateY(-6px);
  pointer-events: none;
  z-index: 1050;
}

.custom-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.custom-dropdown-menu .dropdown-item {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-deep);
  padding: 9px 20px;
  transition: background 0.15s ease, color 0.15s ease;
  border-radius: 0;
}

.custom-dropdown-menu .dropdown-item:hover,
.custom-dropdown-menu .dropdown-item.active {
  background: rgba(228, 37, 124, 0.08);
  color: var(--color-magenta);
}

/* Chevron animado — span wrapper con flex para centrado real */
.dropdown-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 0.72rem;
  flex-shrink: 0;
  transform-origin: 50% 50%;
  transition: transform 0.2s ease;
}

.dropdown-arrow.rotated {
  transform: rotate(180deg);
}


.brand-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--color-deep);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(228, 37, 124, 0.35);
}

.logo-chip {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--color-cream);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-deep);
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-chip img {
  max-height: 40px;
}

/* Tarjetas (Info Cards) utilizando CSS Order para no alterar DOM */
.info-card-alt {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  text-decoration: none;
}

.info-card-alt:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

.info-card-photo {
  order: -1;
  height: 180px;
  width: 100%;
  aspect-ratio: auto;
}

.info-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-card-title {
  order: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 22px 8px;
  font-size: 1.15rem;
  font-family: var(--font-heading);
  text-decoration: none;
  color: var(--color-deep) !important;
}

.info-card-body {
  order: 1;
  padding: 0 22px 26px;
}

/* Tarjetas Regionales (Historias) */
.region-card-alt {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  backdrop-filter: blur(6px);
  overflow: hidden;
  height: 100%;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.region-card-alt:hover {
  transform: translateY(-7px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

.region-photo {
  height: 170px;
  aspect-ratio: auto;
  margin-bottom: 0 !important;
}

.region-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.region-title {
  color: var(--color-orange) !important;
  text-decoration: underline;
  text-decoration-color: rgba(245, 139, 33, 0.5);
  text-underline-offset: 5px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.contact-form-container {
  max-width: 640px;
  margin: 0 auto;
}

.footer-banner-text {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  margin: 0 auto 24px;
}

.footer-logo {
  max-height: 100px;
  border-radius: 8px;
  background:var(--color-white);
}

.nosotros-frame{
  max-width: 760px;
}

/* Elementos decorativos (Blobs) — Base reutilizable en cualquier sección */
.blob-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Tamaño específico para la sección Nosotros */
.nosotros-frame .blob-deco {
  width: 120px;
  height: 120px;
  z-index: 1;
}

/* Posiciones clásicas (usadas en nosotros-frame) */
.blob-tl {
  top: -30px;
  left: -30px;
  background: radial-gradient(circle, rgba(24, 184, 176, 0.6), transparent 70%);
}

.blob-br {
  bottom: -30px;
  right: -30px;
  background: radial-gradient(circle, var(--color-turquoise), transparent 70%);
}

/* Posiciones libres (tamaño grande, para secciones generales) */
.blob-tr {
  top: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
}

.blob-bl {
  bottom: -60px;
  left: -60px;
  width: 300px;
  height: 300px;
}

.blob-tl-lg {
  top: -50px;
  left: -50px;
  width: 220px;
  height: 220px;
}

.blob-br-lg {
  bottom: -50px;
  right: -50px;
  width: 240px;
  height: 240px;
}

/* Colores de relleno (combinar libremente con cualquier posición) */
.blob-magenta {
  background: radial-gradient(circle at center, rgba(228, 37, 124, 0.40), transparent 65%);
}

.blob-turquoise {
  background: radial-gradient(circle at center, rgba(24, 184, 176, 0.40), transparent 65%);
}

.blob-orange {
  background: radial-gradient(circle at center, rgba(245, 139, 33, 0.40), transparent 65%);
}

.blob-yellow {
  background: radial-gradient(circle at center, rgba(255, 201, 60, 0.40), transparent 65%);
}

.blob-purple {
  background: radial-gradient(circle at center, rgba(106, 98, 156, 0.4), transparent 65%);
}



/* Sección Ejes Estratégicos (fondo crema) */
.ejes-section {
  background-color: var(--color-magenta);
}

/* Tarjetas de Temáticas — diseño limpio con acento de color superior */
.tema-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  border-top: 5px solid transparent;
}

.tema-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.tema-accent-magenta  { border-top-color: var(--color-magenta); }
.tema-accent-turquoise { border-top-color: var(--color-turquoise); }
.tema-accent-orange   { border-top-color: var(--color-orange); }
.tema-accent-yellow   { border-top-color: var(--color-yellow); }

.tema-card-img {
  height: 155px;
  overflow: hidden;
}

.tema-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.tema-card:hover .tema-card-img img {
  transform: scale(1.05);
}

.tema-card-body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.tema-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: var(--color-lavender);
}

.tema-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-deep);
  margin: 0;
  line-height: 1.35;
  text-align: center;
}

/* Formulario Moderno */
.modern-form-wrapper {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(44, 37, 96, 0.12);
  padding: 36px 32px;
}

.form-control-modern {
  border: 2px solid #eee2f4 !important;
  border-radius: var(--radius-sm) !important;
  padding: 12px 16px !important;
  font-family: var(--font-base) !important;
  background: #fffefc !important;
  transition: border-color 0.2s !important;
}

.form-control-modern:focus {
  border-color: var(--color-magenta) !important;
  box-shadow: none !important;
}

/* Botones */
.btn-primary-modern {
  background-color: var(--color-yellow);
  color: var(--color-deep);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  padding: 15px;
  border-radius: 16px;
  border: none;
  box-shadow: 0 12px 24px rgba(255, 201, 60, 0.45);
  transition: transform 0.18s ease;
}

.btn-primary-modern:hover {
  transform: translateY(-2px);
  background-color: var(--color-yellow);
}

.btn-primary-modern:active,
.btn-primary-modern:focus {
  background-color: var(--color-yellow) !important;
  color: var(--color-deep) !important;
  transform: translateY(0);
}

/* Footer Decorativo */
.footer-modern {
  border-top-left-radius: 60px 34px;
  border-top-right-radius: 60px 34px;
  padding-top: 60px;
  padding-bottom: 10px;
  margin-top: -34px;
  position: relative;
  z-index: 10;
}

/* Compensación de padding para el contenido anterior al footer */
main:has(+ .footer-modern),
.footer-modern-prev {
  padding-bottom: 34px !important;
}

/* --- 5. COMPONENTES ADICIONALES --- */

/* Ítems de Información de Contacto */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--color-magenta);
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.contact-info-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-card);
}

.contact-info-icon {
  font-size: 1.25rem;
  color: var(--color-magenta);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-deep);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 3px;
}

.contact-info-text {
  display: block;
  font-family: var(--font-base);
  color: var(--color-indigo);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* --- 6. TARJETA DE EMPRENDIMIENTO (páginas de región) --- */

.emprendimiento-card-modern {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.emprendimiento-card-modern:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-card-hover);
  text-decoration: none;
  color: inherit;
}

/* Variante destacada — primer emprendimiento */
.emprendimiento-featured {
  border-top-color: var(--color-yellow);
}

.emprendimiento-img-modern {
  height: 180px;
  overflow: hidden;
}

.emprendimiento-img-modern img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.emprendimiento-card-modern:hover .emprendimiento-img-modern img {
  transform: scale(1.06);
}

.emprendimiento-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 16px;
}


.emprendimiento-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-deep);
  flex: 1;
  text-align: left;
  line-height: 1.3;
}

.emprendimiento-arrow {
  font-size: 1.5rem;
  color: var(--color-magenta);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.emprendimiento-card-modern:hover .emprendimiento-arrow {
  transform: translateX(4px);
}

/* --- 7. PÁGINA DE DETALLE DEL EMPRENDIMIENTO --- */

/* Hero — imagen de fondo específica del emprendimiento */
.hero-emprendimiento {
  background: linear-gradient(0deg, rgba(228, 37, 124, 0.65), rgba(44, 37, 96, 0.55)),
              var(--hero-foto-url, url('../img/emprendedoras/emprendimiento_1.jpg')) center/cover no-repeat;
}

/* Foto principal — columna izquierda */
.emp-foto-wrapper {
  position: relative;
}

.emp-foto-principal {
  width: 100%;
  max-width: 440px;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-hover);
  display: block;
}

/* Redes sociales — píldoras con color de marca */
.emp-red-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  transition: transform 0.18s ease, opacity 0.18s ease;
  color: #fff;
}

.emp-red-social:hover {
  transform: translateY(-2px);
  opacity: 0.88;
  color: #fff;
  text-decoration: none;
}

.emp-red-facebook  { background: #1877F2; }
.emp-red-instagram { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.emp-red-tiktok    { background: #010101; }
.emp-red-whatsapp  { background: #25D366; }
.emp-red-youtube   { background: #FF0000; }

/* Botón catálogo virtual */
.emp-catalogo-btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 22px;
  background: var(--color-yellow);
  color: var(--color-deep);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(255, 201, 60, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.emp-catalogo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(255, 201, 60, 0.55);
  color: var(--color-deep);
  text-decoration: none;
}

/* Wrapper de video responsive 16:9 */
.emp-video-wrapper {
  max-width: 780px;
  width: 100%;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card-hover);
  aspect-ratio: 16 / 9;
}

.emp-video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}


.hover-magenta:hover { color: #E4257C !important; }
.hover-orange:hover { color: #F26E23 !important; }
.hover-turquoise:hover { color: #08B9B7 !important; }

/* Botón volver en hero de detalle */
.btn-volver-hero {
  color: var(--color-white) !important;
  text-decoration-line: underline !important;
  text-decoration-color: var(--color-white) !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: all 0.3s ease;
}

.btn-volver-hero:hover {
  color: var(--color-white) !important;
  text-decoration-color: var(--color-white) !important;
  text-decoration-thickness: 2px;
  transform: translateX(-4px);
}

.loader {
  border: 2px solid var(--color-deep);
  border-top: 2px solid transparent;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.btn-primary-modern:disabled {
  background-color: var(--color-yellow) !important;
  color: var(--color-deep) !important;
  opacity: 1 !important;
  cursor: not-allowed;
}
