:root {
  --accent: #00d374;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body, html {
  height: 100%;
  font-family: 'Montserrat', sans-serif;
  color: #fff;
}

/* HEADER */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 100;
}

.logo { display: flex; align-items: center; gap: 10px; }
.mark {
  width: 40px; height: 40px;
  background: var(--accent);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-weight: bold; color: #000;
}
.titulo { font-weight: 700; }
.subtitulo { font-size: 12px; opacity: 0.8; }

nav { display: flex; gap: 20px; }
nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.burger span {
  width: 25px;
  height: 3px;
  background: #fff;
  margin-bottom: 4px;
}

/* HERO */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;  /* mueve el bloque hacia la izquierda */
  padding-left: 5%;             /* un poco de margen interior */
}


.bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.bg1 { opacity: 1; } /* la primera visible */

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2;
}

.contenido {
  position: relative;
  z-index: 3;
  text-align: left;          /* texto alineado a la izquierda */
  padding: 20px 40px;        /* margen interior más ancho */
  max-width: 700px;          /* evita que el texto se extienda demasiado */
  display: flex;
  flex-direction: column;
  align-items: flex-start;   /* contenido alineado a la izquierda */
}


.contenido h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;            /* ExtraBold */
  font-size: clamp(42px, 7vw, 100px);
  line-height: 1.05;
  color: #fff;
  text-shadow: 2px 3px 10px rgba(0,0,0,0.4);
  margin-bottom: 10px;
}

.contenido p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: clamp(18px, 2vw, 26px);
  color: #f2f2f2;
  max-width: 700px;
  text-shadow: 1px 2px 8px rgba(0,0,0,0.5);
}


/* RESPONSIVE */
@media (max-width: 768px) {
  nav { display: none; }
  .burger { display: flex; }
  .contenido h1 {
    font-size: clamp(24px, 9vw, 40px);
  }
}


/* ==== ICONOS SOCIALES ==== */
.social-icons {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 100;
  animation: slideInRight 1.2s ease forwards;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 55px;
  height: 55px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  overflow: hidden;
}

.social-icons a:hover {
  transform: scale(1.15) rotate(8deg);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
}

.social-icons img {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
}

.social-icons a:hover img {
  transform: scale(1.2);
}

/* Animación de entrada */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(80px) translateY(-50%);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(-50%);
  }
}

/* MODO RESPONSIVO: en móviles se van abajo */
@media (max-width: 768px) {
  .social-icons {
    top: auto;
    bottom: 20px;
    right: 50%;
    transform: translateX(50%);
    flex-direction: row;
    gap: 12px;
    animation: slideInUp 1s ease forwards;
  }

  @keyframes slideInUp {
    from { opacity: 0; transform: translateY(50px) translateX(50%); }
    to { opacity: 1; transform: translateY(0) translateX(50%); }
  }
}

/* ====== ICONOS: solo la imagen, sin contorno ====== */
.social-icons {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 120;
  pointer-events: auto;
}

/* cada enlace ahora es "transparente": sin fondo, solo la img */
.social-icons .si {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: transform .28s cubic-bezier(.2,.9,.2,1), opacity .28s ease;
  will-change: transform, opacity;
}

/* la imagen manda: tamaño controlado */
.social-icons .si img {
  width: 44px;   /* ajusta a tu preferencia */
  height: 44px;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.18)); /* sutil sombra para legibilidad */
  transition: transform .28s cubic-bezier(.2,.9,.2,1), opacity .28s ease;
}

/* HOVER / FOCUS: único movimiento (subida suave) */
.social-icons .si:hover,
.social-icons .si:focus {
  transform: translateY(-8px);
  opacity: 1;
  z-index: 130;
}
.social-icons .si:hover img,
.social-icons .si:focus img {
  transform: translateY(-4px) scale(1.03);
}

/* Entrada única desde la derecha al cargar la página */
@keyframes enterFromRightSimple {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
.social-icons .si {
  animation: enterFromRightSimple .9s cubic-bezier(.2,.9,.2,1) both;
}

/* RESPONSIVE: bajar abajo en móvil en fila */
@media (max-width: 768px) {
  .social-icons {
    top: auto;
    bottom: 16px;
    right: 50%;
    transform: translateX(50%);
    flex-direction: row;
    gap: 12px;
  }
  .social-icons .si img { width: 36px; height: 36px; }
}

/* accesibilidad: foco visible (sutil) */
.social-icons .si:focus { outline: 3px solid rgba(255,255,255,0.06); outline-offset: 4px; }

/* ====== QUIÉNES SOMOS (sin cuadros) ====== */
.quienes-somos {
  background: linear-gradient(180deg, #ffffff 0%, #f3f3f3 100%);
  padding: 40px 20px 100px;   /* reduce el espacio superior */
  text-align: center;
  scroll-margin-top: 72px;    /* coincide con la altura del header fijo */
}


.quienes-somos h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 5vw, 46px);
  margin-bottom: 20px;
  color: #111;
}

.quienes-somos .intro {
  max-width: 800px;
  margin: 0 auto 60px auto;
  font-size: 18px;
  color: #555;
  line-height: 1.6;
}

/* contenedor de personas */
.personas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 60px;
}

/* diseño horizontal */
.persona {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 700px;
  text-align: left;
  position: relative;
  padding: 10px;
  transition: transform 0.3s ease;
}

.persona:hover {
  transform: translateY(-4px);
}

.persona img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #00c274; /* color de acento */
  flex-shrink: 0;
}

.info h3 {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin-bottom: 4px;
}

.info .cargo {
  font-weight: 600;
  color: #0077ff;
  margin-bottom: 4px;
}

.info .profesion {
  color: #333;
  font-size: 15px;
  margin-bottom: 6px;
}

.info .descripcion {
  color: #555;
  font-size: 15px;
  line-height: 1.6;
  max-width: 500px;
}

/* responsive */
@media (max-width: 768px) {
  .personas {
    flex-direction: column;
    align-items: center;
  }

  .persona {
    flex-direction: column;
    text-align: center;
  }

  .persona img {
    margin-bottom: 12px;
  }

  .info {
    text-align: center;
  }
}

html {
  scroll-behavior: smooth;
}

/* ====== Dropdown Propuestas ====== */
.nav-item.dropdown {
  position: relative;
  display: inline-block;
}

.drop-toggle {
  background: transparent;
  color: inherit;
  border: none;
  font: inherit;
  cursor: pointer;
  padding: 8px 6px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Menú oculto */
.drop-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: rgba(255,255,255,0.98);
  color: #111;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
  min-width: 220px;
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  transform-origin: top right;
  transform: translateY(-6px) scale(.98);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 250;
}

.drop-menu li a {
  display: block;
  padding: 10px 12px;
  color: #111;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
}

.drop-menu li a:hover,
.drop-menu li a:focus {
  background: rgba(0,0,0,0.06);
}

.nav-item.dropdown.open .drop-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .drop-menu {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin-top: 6px;
  }

  .drop-menu li a {
    padding: 12px 6px;
    color: #fff;
  }
}

/* Secciones de Propuestas */
.propuestas-seccion {
  background: linear-gradient(180deg, #f9f9f9 0%, #eaeaea 100%);
  padding: 80px 20px;
  text-align: center;
  scroll-margin-top: 72px;
}

.propuestas-seccion h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 5vw, 42px);
  margin-bottom: 20px;
  color: #111;
}

.propuestas-seccion p {
  color: #444;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ====== HEADER: layout centrado y consistente ====== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;                 /* altura consistente del header */
  display: flex;
  align-items: center;          /* CENTRA verticalmente logo + nav + burger */
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(0,0,0,0.65);
  z-index: 300;
}

/* logo: alineado con el centro del header */
.logo {
  display: flex;
  align-items: center;          /* centra verticalmente icono + textos */
  gap: 12px;
}

/* marca / icono */
.mark {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* NAV principal: mostrar en línea y centrado vertical */
nav {
  display: flex;
  align-items: center;          /* centra los links verticalmente */
  gap: 28px;
  height: 100%;                 /* ayuda a centrar el contenido del nav */
}

/* enlaces del nav: quitar márgenes/line-height extra */
nav a, .drop-toggle {
  display: inline-flex;
  align-items: center;
  height: 100%;
  color: #fff;
  text-decoration: none;
  padding: 0 6px;               /* suficiente área clicable sin romper alineación */
  font-weight: 600;
  line-height: 1;
}

/* Dropdown como elemento inline-flex para que todo quede a la par */
.nav-item.dropdown {
  display: inline-flex;
  align-items: center; 
  height: 100%;
}

/* ajustar botón toggle para que no cambie la altura */
.drop-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0 6px;
  height: 100%;
  font: inherit;
  color: inherit;
}

/* burger (menu móvil) alineado y oculto en desktop por default */
.burger {
  display: none; /* aparecerá solo en mobile si lo configuras */
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  cursor: pointer;
}

/* RESPONSIVE: cuando el viewport sea pequeño mostramos burger y ocultamos nav */
@media (max-width: 900px) {
  nav { display: none; }
  .burger { display: inline-flex; }
}

/* ===== MAPA ENSAMBLABLE (Propuestas Regionales) ===== */
.propuestas-regionales {
  padding: 60px 20px 120px;
  background: linear-gradient(180deg,#fbfcfe 0%, #f2f6fb 100%);
  text-align: center;
  scroll-margin-top: 72px;
}
.propuestas-regionales .wrap { max-width:1100px; margin:0 auto; }

.propuestas-regionales h2 { 
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 8px;
  color:#111;
}
.propuestas-regionales .lead {
  color:#555;
  margin-bottom: 28px;
  max-width:820px;
  margin-left:auto;
  margin-right:auto;
}

/* escenario del mapa */
.map-stage {
  position: relative;
  width: 95%;
  max-width: 900px;
  height: 520px;              /* ajustable según tus imágenes */
  margin: 0 auto;
  perspective: 1000px;
  overflow: visible;
}

/* -------------------------
   MAPA: animación directa (fade + slide)
   ------------------------- */

/* piezas del mapa (posición final absolute) */
.map-piece {
  position: absolute;
  width: auto;
  height: auto;
  max-width: 40%;
  opacity: 0;
  transform-origin: center;
  /* estado inicial: ligero desplazamiento hacia abajo + escala reducida */
  transform: translateY(28px) scale(.98);
  transition: transform 700ms cubic-bezier(.2,.9,.2,1), opacity 520ms ease;
  will-change: transform, opacity;
  cursor: default; /* no draggable */
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: auto;
}

/* POSICIONES FINALES (asegúrate de mantener tus valores ya ajustados) */
#p-am    { left: 36%; top: 2%;  width: 34%; z-index: 6; }  /* marrón - arriba */
#p-valn  { left: 26%; top: 18%; width: 22%; z-index: 5; }  /* verde - izquierda media */
#p-met   { left: 10%; top: 30%; width: 14%; z-index: 4; }  /* blanco - izquierda */
#p-yu    { left: 46%; top: 34%; width: 10%; z-index: 7; }  /* azul central pequeña */
#p-valls { left: 56%; top: 26%; width: 20%; z-index: 6; }  /* rosa - derecha media */
#p-als   { left: 18%; top: 60%; width: 36%; z-index: 3; }  /* amarillo - abajo izquierda */
#p-aln   { left: 58%; top: 56%; width: 22%; z-index: 5; }  /* turquesa - abajo derecha */

/* ENSAMBLADO: piezas en su lugar (fade + move) */
.map-stage.assembled .map-piece {
  opacity: 1;
  transform: none;
}

/* Stagger (delays por pieza para efecto suave al entrar) */
.map-stage.assembled #p-am    { transition-delay: 0.04s; }
.map-stage.assembled #p-valn  { transition-delay: 0.12s; }
.map-stage.assembled #p-yu    { transition-delay: 0.20s; }
.map-stage.assembled #p-als   { transition-delay: 0.28s; }
.map-stage.assembled #p-valls { transition-delay: 0.36s; }
.map-stage.assembled #p-aln   { transition-delay: 0.44s; }
.map-stage.assembled #p-met   { transition-delay: 0.52s; }

/* hover post-ensamblado (ligero) */
.map-stage.assembled .map-piece:hover {
  transform: translateY(-6px) scale(1.02);
  transition-duration: 240ms;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* responsive - mantiene posiciones móviles */
@media (max-width: 900px) {
  .map-stage { height: 420px; }
  #p-am { left: 6%; top: 6%; width: 30%; }
  #p-valn { left: 34%; top: 6%; width: 30%; }
  #p-yu { left: 66%; top: 10%; width: 24%; }
  #p-als { left: 8%; top: 48%; width: 32%; }
  #p-valls { left: 36%; top: 44%; width: 34%; }
  #p-aln { left: 68%; top: 48%; width: 26%; }
  #p-met { left: 40%; top: 26%; width: 24%; }
}
@media (max-width: 520px) {
  .map-stage { height: 360px; }
  .map-piece { max-width: 46%; }
}


/* ====== DEBUG mapa: mostrar contornos y forzar visible temporalmente ====== */
.map-stage { background: rgba(255,255,255,0.01); border: 1px dashed rgba(0,0,0,0.06); }
.map-piece {
  outline: 2px dashed rgba(0,150,0,0.25);  /* ver si el elemento está presente */
  background-color: rgba(255,255,255,0.02);
  opacity: 1 !important;                    /* forzar visible para debug */
  transform: none !important;               /* quitar transforms para ver posición final */
  transition: none !important;
  filter: none !important;
}
