/* ==========================================================================
   ESTILO PORTAL PARTICIPA + BURBUJAS INTENSAS (PUNTO MEDIO)
   ========================================================================== */

.hero-participa {
    /* TUS COLORES DE IDENTIDAD */
    --orange: #FF9F43;
    --green: #28C76F;
    --pink: #df1783;
    --blue: #0b3b60;
    --text-main: #1e293b;
    --grad: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    
    padding-block: 60px 40px;
    padding-inline: 20px;
    background: var(--grad);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    font-family: 'Inter', sans-serif;
}

/* --- TUS BURBUJAS (MÁS INTENSAS) --- */
.hero-participa::before,
.hero-participa::after,
.hero-participa .hero__inner::before {
    content: "";
    position: absolute;
    inset: auto;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(35px); /* Un poquito menos de blur para que se note más la forma */
    opacity: 0.85;       /* Subimos de 0.6 a 0.85 */
    z-index: 0;
}

/* Burbuja A (Azul) - Subimos de 0.15 a 0.30 */
.hero-participa::before {
    width: 38vmin; height: 38vmin;
    left: 6%; top: 6%;
    background: radial-gradient(circle, rgba(11,59,96,0.30) 0 60%, transparent 62%);
    animation: bubbleA 3s ease-in-out infinite alternate;
}

/* Burbuja B (Rosa/Red) - Subimos de 0.15 a 0.30 */
.hero-participa::after {
    width: 32vmin; height: 32vmin;
    right: 8%; top: 10%;
    background: radial-gradient(circle, rgba(223, 23, 131, 0.30) 0 60%, transparent 62%);
    animation: bubbleB 6s ease-in-out infinite alternate;
}

/* Burbuja C (Verde) - Subimos de 0.15 a 0.30 */
.hero-participa .hero__inner::before {
    content: "";
    position: absolute;
    width: 26vmin; height: 26vmin;
    left: 48%; bottom: -10%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14,160,132,0.30) 0 60%, transparent 62%);
    animation: bubbleC 7s ease-in-out infinite alternate;
    z-index: -1;
}

/* MARCA DE AGUA (El escudo) */
.hero-participa .hero__inner::after {
    content: "";
    position: absolute;
    top: -20px;
    right: -30%;
    width: 400px;
    height: 400px;
   
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.05;
    transform: rotate(-10deg);
    z-index: -1;
    pointer-events: none;
}

/* --- CONTENIDO --- */
.hero-participa .hero__inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* PILDORITA BRAND */
.hero-participa .brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    padding: 10px 20px;
    border-radius: 100px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    width: fit-content;
}

.hero-participa .brand__dot {
    width: 10px; height: 10px; border-radius: 50%; display: inline-block;
}
.hero-participa .brand__dot:nth-of-type(1) { background: var(--orange); }
.hero-participa .brand__dot:nth-of-type(2) { background: var(--green); }
.hero-participa .brand__dot:nth-of-type(3) { background: var(--pink); }
.hero-participa .brand__dot:nth-of-type(4) { background: var(--blue); }

.hero-participa .brand span {
    font-size: 0.85rem; font-weight: 700; color: var(--text-main); text-transform: uppercase;
}

/* TÍTULO */
.hero-participa h1 {
    font-size: clamp(28px, 5vw, 3.5rem);
    font-weight: 850;
    color: var(--text-main);
    line-height: 1.1;
    margin-bottom: 40px;
    letter-spacing: -0.04em;
    max-width: 850px;
}

/* BUSCADOR */
.hero-participa .search { width: 100%; max-width: 750px; }

.hero-participa .searchbar {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 10px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.hero-participa .search__box {
    flex: 1; border: none; padding: 15px 20px; font-size: 1.1rem; outline: none; background: transparent;
}

.hero-participa .search__btn {
    background: #1e293b; color: white; border: none; padding: 14px 30px;
    border-radius: 18px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 10px;
}

/* CHIPS */
.hero-participa .chips { margin-top: 30px; display: flex; gap: 12px; justify-content: center; }
.hero-participa .chip {
    padding: 10px 24px; border-radius: 100px; background: white; font-weight: 600;
    color: #64748b; box-shadow: 0 4px 10px rgba(0,0,0,0.03); cursor: pointer;
}
.hero-participa .chip.active { background: #e0f2fe; color: #0369a1; border: 1px solid #7dd3fc; }

/* TUS ANIMACIONES ORIGINALES */
@keyframes bubbleA { to { transform: translate(17vmin, 7vmin) scale(1.1); } }
@keyframes bubbleB { to { transform: translate(15vmin, 10vmin) scale(1.05); } }
@keyframes bubbleC { to { transform: translate(13vmin, 10vmin) scale(1.1); } }

@media (prefers-reduced-motion: reduce) {
    .hero-participa::before, .hero-participa::after, .hero-participa .hero__inner::before { animation: none !important; }
}

/* ==========================================================================
   SECCIÓN: KIOSCO DIGITAL (REDISEÑO PRO)
   ========================================================================== */

.kiosco-social {
    padding: 100px 20px;
    background-color: #ffffff;
    font-family: 'Inter', sans-serif;
}

.kiosco-social__inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

/* --- Título con estilo --- */
.kiosco-social__text h2 {
    font-size: 2.8rem;
    font-weight: 850;
    color: #1e293b;
    margin-bottom: 15px;
    letter-spacing: -0.03em;
}

.kiosco-social__text p {
    font-size: 1.15rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

/* --- Grid mejorado --- */
.kiosco-social__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    justify-content: center;
}

/* --- Tarjeta Estilo Premium --- */
.kiosco-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: #ffffff;
    border-radius: 24px; /* Más redondeado como el buscador */
    text-decoration: none;
    border: 2px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    text-align: left;
}

/* Efecto al pasar el mouse */
.kiosco-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--social-color);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

/* --- El Icono (Ahora sí se va a ver) --- */
.kiosco-card__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc; /* Fondo gris claro inicial */
    color: var(--social-color);
    border-radius: 18px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.kiosco-card__icon svg {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

/* Animación del icono en hover */
.kiosco-card:hover .kiosco-card__icon {
    background: var(--social-color);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.kiosco-card:hover .kiosco-card__icon svg {
    transform: scale(1.2) rotate(-8deg);
}

/* --- Texto de la Tarjeta --- */
.kiosco-card__info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow: hidden; /* Para que no se salga el texto largo */
}

.kiosco-card__label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #94a3b8;
    transition: color 0.3s;
}

.kiosco-card:hover .kiosco-card__label {
    color: var(--social-color);
}

.kiosco-card__user {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Pone "..." si el texto es muy largo */
}

/* Específico para el correo para que no se vea feo */
.kiosco-card[style*="#003876"] .kiosco-card__user {
    font-size: 0.95rem; /* Un pelín más chico para que quepa el correo */
}

/* Responsivo */
@media (max-width: 768px) {
    .kiosco-social__text h2 { font-size: 2.2rem; }
    .kiosco-social__grid { grid-template-columns: 1fr; }
    .kiosco-card { padding: 25px; }
}

/* ============================================================
   PRESUPUESTO PARTICIPATIVO
   ============================================================ */

.presupuesto-section {
  width: 100%;

  padding:
    32px
    var(--pad-end)
    38px
    var(--pad-start);

  background: #f7fafc;
}


/* ============================================================
   CONTENEDOR
   ============================================================ */

.presupuesto-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}


/* ============================================================
   CARD
   ============================================================ */

.presupuesto-card {
  position: relative;

  display: grid;

  grid-template-columns:
    minmax(0, 1.05fr)
    minmax(320px, .95fr);

  height: 285px;
  min-height: 285px;

  overflow: hidden;

  text-decoration: none;

  border-radius: 22px;

  background: #fff;

  border:
    1px solid rgba(11, 59, 96, .08);

  box-shadow:
    0 8px 25px rgba(11, 59, 96, .07),
    0 2px 7px rgba(0,0,0,.025);

  transition:
    transform .3s ease,
    box-shadow .3s ease;
}


/* Hover */

.presupuesto-card:hover {
  transform: translateY(-5px);

  box-shadow:
    0 20px 45px rgba(11, 59, 96, .14),
    0 5px 15px rgba(0,0,0,.05);
}


/* ============================================================
   CONTENIDO
   ============================================================ */

.presupuesto-card__content {
  position: relative;

  z-index: 2;

  display: flex;

  flex-direction: column;

  justify-content: center;

  align-items: flex-start;
  padding:
    30px
    42px;

  background:
    linear-gradient(
      135deg,
      #ffffff 0%,
      #f8fbfd 100%
    );
}


/* ============================================================
   EYEBROW
   ============================================================ */

.presupuesto-card__eyebrow {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  margin-bottom: 16px;

  padding:
    7px
    13px;

  border-radius: 999px;

  background:
    rgba(0, 178, 226, .09);

  border:
    1px solid rgba(0, 178, 226, .18);

  color: #0076aa;

  font-size: .72rem;

  font-weight: 800;

  letter-spacing: .08em;

  line-height: 1;
}


/* Puntito decorativo */

.presupuesto-card__eyebrow::before {
  content: "";

  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #00b2e2;

  box-shadow:
    0 0 0 4px rgba(0,178,226,.10);
}


/* ============================================================
   TÍTULO
   ============================================================ */

.presupuesto-card__title {
  max-width: 570px;

  margin: 0;

  color: #0b3b60;

  font-size:
    clamp(2.1rem, 4vw, 3.4rem);

  line-height: 1.02;

  font-weight: 400;

  letter-spacing: -.045em;
}


.presupuesto-card__title strong {
  display: block;

  font-weight: 800;

  color: #0b3b60;
}


/* ============================================================
   TEXTO
   ============================================================ */

.presupuesto-card__text {
  max-width: 540px;

  margin:
    22px
    0
    28px;

  color: #526273;

  font-size:
    clamp(.95rem, 1.4vw, 1.08rem);

  line-height: 1.65;
}


/* ============================================================
   CTA
   ============================================================ */

.presupuesto-card__cta {
  display: inline-flex;

  align-items: center;

  gap: 12px;

  color: #0b3b60;

  font-size: .95rem;

  font-weight: 800;
}


.presupuesto-card__arrow {
  width: 34px;
  height: 34px;

  display: grid;

  place-items: center;

  border-radius: 50%;

  background: #0b3b60;

  color: #fff;

  font-size: 18px;

  line-height: 1;

  transition:
    transform .3s ease,
    background .3s ease;
}


.presupuesto-card:hover .presupuesto-card__arrow {
  transform: translateX(5px);

  background: #0076aa;
}


/* ============================================================
   IMAGEN
   ============================================================ */

.presupuesto-card__media {
  position: relative;

  min-height: 360px;

  overflow: hidden;

  background: #0b3b60;
}


.presupuesto-card__media img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  object-position: center;

  transition:
    transform .6s cubic-bezier(.2,.7,.2,1);
}


.presupuesto-card:hover .presupuesto-card__media img {
  transform: scale(1.045);
}


/* ============================================================
   OVERLAY DE LA IMAGEN
   ============================================================ */

.presupuesto-card__media-overlay {
  position: absolute;

  inset: 0;

  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      rgba(11,59,96,.10) 0%,
      transparent 50%,
      rgba(11,59,96,.18) 100%
    );
}


/* ============================================================
   DETALLE DECORATIVO
   ============================================================ */

.presupuesto-card__floating-icon {
  position: absolute;

  top: 24px;
  right: 24px;

  width: 42px;
  height: 42px;

  display: grid;

  place-items: center;

  border-radius: 50%;

  background:
    rgba(255,255,255,.18);

  border:
    1px solid rgba(255,255,255,.35);

  color: #fff;

  font-size: 18px;

  backdrop-filter: blur(6px);

  box-shadow:
    0 5px 15px rgba(0,0,0,.10);
}


/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */

@media (max-width: 900px) {

  .presupuesto-card {
    grid-template-columns:
      1fr
      .9fr;

    min-height: 320px;
  }

  .presupuesto-card__content {
    padding: 38px;
  }

  .presupuesto-card__media {
    min-height: 320px;
  }

}


/* ============================================================
   RESPONSIVE — MÓVIL
   ============================================================ */

@media (max-width: 680px) {

  .presupuesto-section {
    padding:
      35px
      var(--pad-end)
      45px
      var(--pad-start);
  }


  .presupuesto-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}


  /* Imagen arriba */

  .presupuesto-card__media {
    order: 1;

    width: 100%;

    height: 230px;

    min-height: 230px;
  }


  /* Contenido abajo */

  .presupuesto-card__content {
    order: 2;

    padding: 30px 26px 32px;
  }


  .presupuesto-card__eyebrow {
    margin-bottom: 14px;

    font-size: .68rem;
  }


  .presupuesto-card__title {
    font-size: 2.15rem;

    letter-spacing: -.035em;
  }


  .presupuesto-card__text {
    margin:
      17px
      0
      23px;

    font-size: .94rem;

    line-height: 1.55;
  }


  .presupuesto-card__floating-icon {
    top: 16px;
    right: 16px;

    width: 38px;
    height: 38px;
  }

}


/* ============================================================
   MÓVILES PEQUEÑOS
   ============================================================ */

@media (max-width: 420px) {

  .presupuesto-section {
    padding-top: 28px;
  }


  .presupuesto-card__media {
    height: 200px;

    min-height: 200px;
  }


  .presupuesto-card__content {
    padding:
      26px
      22px
      28px;
  }


  .presupuesto-card__title {
    font-size: 1.95rem;
  }

}

/* Asegura que el contenido esté por encima de los decorativos */
.info-content-wrapper {
  position: relative;
  z-index: 10;
}

.steps-strip {
  display: flex !important;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  margin: 50px 0;
  flex-wrap: wrap;
  min-height: 160px; /* Espacio mínimo para que no se vea vacío */
}

.step-pill {
  /* Reset de estilos de botón */
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 130px; /* Ancho fijo para asegurar visibilidad */
  transition: transform 0.3s ease;
}

.step-pill:hover {
  transform: translateY(-8px);
}

.step-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white !important; /* Icono siempre blanco */
  margin-bottom: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  /* El color de fondo lo manejaremos directo en React para asegurar que "pegue" */
}

.step-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #003366 !important; /* Azul oscuro para que resalte en el blanco */
  line-height: 1.2;
  text-align: center;
  display: block;
}

/* Caja de descripción (la que ya te funciona) */
.steps-description {
  background: #f0f4f8;
  border: 1px solid #d1d9e6;
  border-radius: 12px;
  padding: 20px;
  color: #003366;
  font-weight: 600;
  text-align: center;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps-strip svg {
  display: block !important;
  margin: 0 auto;
}

/* Diagnóstico: Forzar bordes para ver dónde están los elementos */
.steps-strip {
  border: 2px solid red !important;
  min-height: 100px !important;
  background: #eee !important; /* Fondo gris para contrastar */
}

.steps-strip button {
  border: 1px solid blue !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.steps-strip span, .steps-strip div {
  border: 1px solid green !important;
  color: black !important; /* Forzar texto negro */
}

.steps-strip svg {
  stroke: red !important; /* Forzar color de icono */
  display: block !important;
  width: 32px !important;
  height: 32px !important;
}

/* Forzar visibilidad de iconos Lucide en la sección de pasos */
.innovative-info-container svg {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  vertical-align: middle;
}

/* Efecto hover para los pasos */
.step-item-hover:hover {
  transform: translateY(-5px);
}

.step-item-hover:hover div {
  filter: brightness(1.1);
  box-shadow: 0 12px 20px rgba(0,0,0,0.2);
}

/* ==========================================
   TOPBAR BASE
   ========================================== */
.topbar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  height: 105px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 1rem;
}

.topbar__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar__brand-logo {
  height: 65px;
  width: auto;
  display: block;
}

/* Ocultar menú desktop en móvil */
.topbar__links {
  display: none;
}

/* Botón Hamburguesa */
.topbar__toggle {
  background: none;
  border: none;
  color: #1e293b;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
}

/* ==========================================
   DRAWER (MENÚ MÓVIL)
   ========================================== */
.topbar__drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px; /* Ancho del menú */
  height: 100%;
  background: white;
  z-index: 1100;
  box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
}

.topbar__drawer.is-active {
  transform: translateX(0);
}

.drawer__head {
  padding: 20px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer__title {
  font-weight: 700;
  color: #0f172a;
}

.drawer__close {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}

.drawer__nav {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Scrim (Fondo oscuro) */
.topbar__scrim {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1050;
  backdrop-filter: blur(2px);
}

/* ==========================================
   ESTILOS DE LINKS DENTRO DEL DRAWER
   ========================================== */

/* Convertir Dropdowns en acordeones simples para móvil */
.drawer__nav .tb-dropdown {
  width: 100%;
}

.drawer__nav .tb-link {
  display: block;
  padding: 12px 0;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  border-bottom: 1px solid #f8fafc;
}

/* Mostrar el contenido del dropdown siempre o al hacer click */
.drawer__nav .tb-dropdown-content {
  padding-left: 15px;
  display: flex;
  flex-direction: column;
  border-left: 2px solid #e2e8f0;
  margin-top: 5px;
}

.drawer__nav .tb-dropdown-content a {
  padding: 10px 0;
  font-size: 0.9rem;
  color: #64748b;
  text-decoration: none;
}

/* El botón de Auth en móvil */
.drawer__nav [data-role="auth-link"] {
  margin-top: 20px;
  background: #003e6a;
  color: white !important;
  text-align: center;
  padding: 15px;
  border-radius: 12px;
  font-size: 0.85rem;
}

/* ==========================================
   DESKTOP QUERIES (Pantallas grandes)
   ========================================== */
@media (min-width: 1024px) {
  .topbar__toggle {
    display: none;
  }

  .topbar__links {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  /* Estilos Dropdown Desktop */
  .tb-dropdown {
    position: relative;
  }

  .tb-dropdown:hover .tb-dropdown-content {
    display: block;
  }

  .tb-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    border: 1px solid #e2e8f0;
  }

  .tb-dropdown-content a {
    display: block;
    padding: 10px 20px;
    color: #475569;
    text-decoration: none;
    font-size: 0.9rem;
  }

  .tb-dropdown-content a:hover {
    background: #f8fafc;
    color: #003e6a;
  }

  .tb-link[data-variant="primary"] {
    background: #003e6a;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
  }
}