/* ============================== BASE ============================== */
@charset "UTF-8";

body {
  font-family: 'Poppins', 'Noto Sans', system-ui, -apple-system, 'Segoe UI',
               Roboto, 'Helvetica Neue', Arial, 'Liberation Sans', sans-serif;
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #233A89;
  color: white;
}

/* puedes dejar tu regla global de color tal cual */
body, h1, h2, h3, h4, h5, h6, p, a, li, span, div { color: white; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

header {
  background: transparent;
  color: rgb(114, 11, 139);
  padding: 20px;
  position: fixed; width: 100%; top: 0; z-index: 1000;
  backdrop-filter: blur(8px);
}

/* ============================== NAV ============================== */
@media screen and (min-width: 769px) {
  .navbar-collapse {
    background: transparent !important;
    backdrop-filter: blur(8px);
    padding: 0; border-radius: 0;
  }
  .navbar-nav .nav-link {
    color: white !important; font-weight: 600;
    padding: 10px 15px; border-bottom: none;
  }
}

@media screen and (max-width: 768px) {
  .navbar-collapse {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem; border-radius: 0 0 12px 12px;
  }
  .navbar-toggler { border-color: rgba(255, 255, 255, 0.2); }
  .navbar-toggler-icon { filter: invert(1); }
  .navbar-nav .nav-link {
    font-weight: 500; padding: 0.75rem 1rem; color: white !important;
    text-align: center; border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .navbar-nav .nav-link:last-child { border-bottom: none; }

  .hero h1 { font-size: 2em; }
  .hero p  { font-size: 1em; }
  section  { padding: 60px 5%; }
  .btn     { padding: 8px 20px; font-size: 0.9em; }
  .equipo-card .img-container { max-width: 160px; }
}

/* ============================== HERO ============================== */
.hero {
  height: 100vh;
  background: url("../img/background.png") no-repeat center center/cover;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; text-align: center; color: white;
  padding: 100px 20px 40px;
}
.hero h1 { font-size: 3em; margin: 0; }
.hero p  { font-size: 1.2em; margin-top: 10px; }
.hero img {
  max-width: 450px; margin-bottom: 20px; width: 80%; height: auto; margin-top: 20px;
  animation: fadeZoomIn 1.5s ease-out;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
}
@keyframes fadeZoomIn { 0% {opacity:0; transform:scale(0.9);} 100% {opacity:1; transform:scale(1);} }

/* ============================== BUTTON ============================== */
.btn {
  display: inline-block; margin-top: 20px; padding: 10px 25px;
  background: #E73A8C; color: white; text-decoration: none; font-weight: bold;
  border-radius: 5px; transition: background 0.3s ease;
}
.btn:hover { background: #55BDC5; }

/* ============================== SECTIONS ============================== */
section { padding: 100px 10%; text-align: center; }

/* ============================== EQUIPO (modo claro) ============================== */
#equipo,
#equipo h1, #equipo h2, #equipo h3, #equipo h4, #equipo h5, #equipo h6,
#equipo p, #equipo a, #equipo li, #equipo span, #equipo div { color: #211251 !important; }
#equipo a:hover { color: #E73A8C !important; }

footer {
  background: #55BDC5; color: white; text-align: center; padding: 20px;
}

/* ============================== CARDS ============================== */
.flip-card { background-color: transparent; width: 220px; height: 275px; perspective: 1000px; margin: auto; }
.flip-card-inner { position: relative; width: 100%; height: 100%; transition: transform 0.8s ease; transform-style: preserve-3d; }
.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 20px; overflow: hidden; }
.flip-card-front img, .flip-card-back img { width: 100%; height: 100%; object-fit: cover; }
.flip-card-back { transform: rotateY(180deg); }

.modern-card {
  background: linear-gradient(145deg, #1f3989, #233A89);
  box-shadow: 8px 8px 20px #000000, -8px -8px 20px #233A89;
  border-radius: 20px; padding: 30px; color: #f1eaff; text-align: center;
  transition: all 0.3s ease;
}
.modern-card:hover { box-shadow: 12px 12px 30px #233A89, -12px -12px 30px #40286c; transform: translateY(-6px); }
.modern-card h4 { font-size: 1.4em; font-weight: 600; margin-bottom: 15px; color: #ffffff; }
/* FIX: "white3ff" → "#ffffff" */
.modern-card .btn {
  background: linear-gradient(135deg, #ff00cc 0%, #ffffff 100%);
  border: none; padding: 10px 20px; color: white; margin-top: 20px; border-radius: 25px; transition: background 0.3s ease;
}
.modern-card .btn:hover { background: linear-gradient(135deg, #4a5ea0 0%, #233A89 100%); }

/* ============================== EQUIPO (layout) ============================== */
#equipo { padding: 60px 20px; background-color: #f9f9f9; text-align: center; }
.equipo-card { max-width: 100%; margin: 0 auto; }
.img-container {
  position: relative; width: 100%; max-width: 220px; aspect-ratio: 4 / 5; margin: 0 auto 15px;
  clip-path: polygon(50% 0%, 95% 50%, 50% 100%, 5% 50%); transition: all 0.6s ease; overflow: hidden; border-radius: 20px;
}
.img-container img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.6s ease; }
.img-container img.ghibli { opacity: 0; z-index: 2; }
.img-container:hover img.ghibli { opacity: 1; }
.img-container:hover img.original { opacity: 0; }

/* ============================== PALETA ============================== */
:root {
  --cv-black: #000000;
  --cv-white: #FFFFFF;
  --cv-blue:  #233A89;
  --cv-cyan:  #55BDC5;
  --cv-magenta: #E73A8C;
}
.bg-cv-light { background-color: var(--cv-white); }
.bg-cv-accent { background-color: var(--cv-cyan); }
.text-cv-primary   { color: var(--cv-blue) !important; }
.text-cv-accent    { color: var(--cv-cyan) !important; }
.text-cv-highlight { color: var(--cv-magenta) !important; }
.btn-cv-primary { background-color: var(--cv-blue); color: var(--cv-white); border: none; }
.btn-cv-primary:hover { background-color: var(--cv-magenta); }

/* ======================================================================
   PROYECTOS — Tarjeta grande con layout interno (.project-card)
   ---------------------------------------------------------------------- */
.project-card { display: grid; gap: 20px; text-align: left; }
.project-card .project-copy { text-align: left; }
.project-card .project-copy h3 { margin-bottom: 12px; }
.project-card .project-copy p  { margin-bottom: 12px; }
.project-card .project-copy ul { list-style: disc; margin: 0; padding-left: 1.2rem; text-align: left; }
@media (min-width: 992px) { .project-card { grid-template-columns: 1.3fr 1fr; } }
.project-card .project-media img { width: 100%; height: auto; border-radius: 12px; }
.project-card .project-media small { color: rgba(255, 255, 255, .8); }

/* PROYECTOS — Ajustes sección */
#proyectos .modern-card { text-align: left; }
#proyectos h4 { margin-bottom: 10px; }

/* ======================================================================
   ASISTENCIA DEUDORES — Resumen (blanco) y Detalle (azul)
   ---------------------------------------------------------------------- */
/* Resumen blanco */
.summary-white {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .05);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
}
/* Forzar texto azul dentro del resumen */
.summary-white, .summary-white * { color: var(--cv-blue) !important; }

/* Detalle azul */
.detail-blue {
  background: var(--cv-blue);
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}
/* Lista sobre azul */
#detalle-asistencia-deudores ul { list-style: disc; padding-left: 1.2rem; color: #fff; }
/* Imagen contraste en detalle azul */
#detalle-asistencia-deudores img { box-shadow: 0 10px 24px rgba(0,0,0,.25); }

/* Botón Asistencia Deudores — SIEMPRE "Ver detalles" y esquema fijo */
#block-asistencia-deudores .when-expanded { display: none !important; }
#block-asistencia-deudores .when-collapsed { display: inline !important; }
#block-asistencia-deudores .btn.btn-cv-primary {
  background-color: var(--cv-blue) !important;
  color: var(--cv-magenta) !important;
  border: none !important;
}
#block-asistencia-deudores .btn.btn-cv-primary:hover,
#block-asistencia-deudores .btn.btn-cv-primary:focus {
  background-color: var(--cv-magenta) !important;
  color: var(--cv-blue) !important;
}
#block-asistencia-deudores .btn.btn-cv-primary:active,
#block-asistencia-deudores .btn.btn-cv-primary:focus:active {
  background-color: var(--cv-magenta) !important;
  color: var(--cv-blue) !important;
  box-shadow: none !important;
}
#block-asistencia-deudores .btn.btn-cv-primary .when-collapsed,
#block-asistencia-deudores .btn.btn-cv-primary .when-expanded { color: inherit !important; }

/* Detalle A. Deudores — look más vivo */
#detalle-asistencia-deudores .heading-accent { position: relative; padding-bottom: 6px; }
#detalle-asistencia-deudores .heading-accent::after {
  content: ""; display: block; width: 72px; height: 3px; margin-top: 8px; border-radius: 2px;
  background: linear-gradient(90deg, var(--cv-magenta), var(--cv-cyan));
}
#detalle-asistencia-deudores .benefits-list { list-style: none; padding-left: 0; margin: 0; color: #fff; }
#detalle-asistencia-deudores .benefits-list li {
  position: relative; padding-left: 1.6rem; line-height: 1.55; margin-bottom: .45rem;
}
#detalle-asistencia-deudores .benefits-list li::before {
  content: ""; position: absolute; left: 0; top: .55rem; width: .7rem; height: .7rem; border-radius: 50%;
  background: var(--cv-magenta); box-shadow: 0 0 0 6px rgba(231,58,140,.18);
}
#detalle-asistencia-deudores .media-wrap {
  position: relative; border-radius: 12px; padding: .5rem;
  background: rgba(255,255,255,.06);
  box-shadow: 0 16px 36px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.08);
  overflow: hidden;
}
#detalle-asistencia-deudores .media-wrap::before {
  content: ""; position: absolute; inset: -10%; border-radius: inherit;
  background: radial-gradient(60% 60% at 50% 40%, rgba(85,189,197,.18), transparent 70%),
              radial-gradient(60% 60% at 60% 70%, rgba(231,58,140,.18), transparent 70%);
  filter: blur(14px); z-index: 0;
}
#detalle-asistencia-deudores .media-wrap img {
  position: relative; z-index: 1; display: block; width: 100%; height: auto;
  border-radius: 10px; background: #fff; padding: .35rem;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  transition: transform .22s ease, box-shadow .22s ease;
}
#detalle-asistencia-deudores .media-wrap:hover img { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(0,0,0,.36); }
@media (prefers-reduced-motion: reduce) { #detalle-asistencia-deudores .media-wrap:hover img { transform: none; } }

/* Asistencia Deudores — logo a la derecha del bloque blanco */
#block-asistencia-deudores .summary-inline { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#block-asistencia-deudores .summary-copy { flex: 1 1 auto; min-width: 0; }
#block-asistencia-deudores .summary-logo { flex: 0 0 auto; }
#block-asistencia-deudores .summary-logo img {
  display: block; width: 84px; max-width: 84px; height: auto;
  border-radius: 10px; border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
@media (max-width: 576px) {
  #block-asistencia-deudores .summary-inline { flex-wrap: wrap; }
  #block-asistencia-deudores .summary-logo { order: 2; }
  #block-asistencia-deudores .summary-logo img { width: 72px; max-width: 72px; }
}

/* ======================================================================
   GESTIÓN RECICLA — Resumen azul (RTL) + Detalle blanco
   ---------------------------------------------------------------------- */
#block-recicla .summary-blue {
  background: var(--cv-blue);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
#block-recicla .summary-inline {
  display: flex; align-items: center; gap: 16px;
  /* ORIENTADO A LA DERECHA (agrupado a la derecha) */
  justify-content: flex-end;
}
#block-recicla .summary-inline.rtl { flex-direction: row-reverse; } /* logo ← texto */
#block-recicla .summary-copy { flex: 1 1 auto; min-width: 0; text-align: right; }
#block-recicla .summary-logo { flex: 0 0 auto; }
#block-recicla .summary-logo img {
  display: block; width: 84px; max-width: 84px; height: auto;
  border-radius: 10px; border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 4px 12px rgba(0,0,0,.18); background: #fff;
}
@media (max-width: 576px) {
  #block-recicla .summary-inline { flex-wrap: wrap; justify-content: flex-start; }
  #block-recicla .summary-copy { text-align: left; }
  #block-recicla .summary-logo { order: 2; }
  #block-recicla .summary-logo img { width: 72px; max-width: 72px; }
}

/* Botón "Ver detalles" — Gestión Recicla (colores INVERTIDOS) */
#block-recicla .when-expanded { display: none !important; }
#block-recicla .when-collapsed { display: inline !important; }
/* Base: magenta con texto azul */
#block-recicla .btn.btn-cv-primary {
  background-color: var(--cv-magenta) !important;
  color: var(--cv-blue) !important;
  border: none !important;
}
/* Hover/Focus/Active: azul con texto magenta */
#block-recicla .btn.btn-cv-primary:hover,
#block-recicla .btn.btn-cv-primary:focus,
#block-recicla .btn.btn-cv-primary:active,
#block-recicla .btn.btn-cv-primary:focus:active {
  background-color: var(--cv-blue) !important;
  color: var(--cv-magenta) !important;
  box-shadow: none !important;
}
#block-recicla .btn.btn-cv-primary .when-collapsed,
#block-recicla .btn.btn-cv-primary .when-expanded { color: inherit !important; }

/* Detalle blanco */
.detail-white {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}
/* Título con acento (magenta → cian) */
.heading-accent-light { position: relative; padding-bottom: 6px; }
.heading-accent-light::after {
  content:""; display:block; width:72px; height:3px; margin-top:8px; border-radius:2px;
  background: linear-gradient(90deg, var(--cv-magenta), var(--cv-cyan));
}
/* Lista clara con bullets de marca */
.benefits-list-light { list-style: none; padding-left: 0; margin: 0; }
.benefits-list-light li {
  position: relative; padding-left: 1.6rem; line-height: 1.55; margin-bottom: .45rem;
}
.benefits-list-light li::before {
  content:""; position:absolute; left:0; top:.55rem; width:.7rem; height:.7rem; border-radius:50%;
  background: var(--cv-magenta); box-shadow: 0 0 0 6px rgba(231,58,140,.14);
}
/* Imagen: marco sutil y sombra flexible */
.media-wrap.light {
  position: relative; border-radius: 12px; padding: .4rem;
  background: rgba(0,0,0,.02);
  box-shadow: 0 10px 24px rgba(0,0,0,.10), inset 0 0 0 1px rgba(0,0,0,.04);
  overflow: hidden;
}
.media-wrap.light img {
  position: relative; z-index: 1; display: block; width: 100%; height: auto;
  border-radius: 10px; background: #fff; padding: .3rem;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  transition: transform .22s ease, box-shadow .22s ease;
}
.media-wrap.light:hover img { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(0,0,0,.20); }
@media (prefers-reduced-motion: reduce) { .media-wrap.light:hover img { transform: none; } }

/* Texto negro dentro del detalle blanco de Gestión Recicla */
#detalle-recicla .detail-white { color: #000; }
#detalle-recicla .detail-white h1,
#detalle-recicla .detail-white h2,
#detalle-recicla .detail-white h3,
#detalle-recicla .detail-white h4,
#detalle-recicla .detail-white h5,
#detalle-recicla .detail-white h6,
#detalle-recicla .detail-white p,
#detalle-recicla .detail-white li,
#detalle-recicla .detail-white a,
#detalle-recicla .detail-white small,
#detalle-recicla .detail-white span,
#detalle-recicla .detail-white div,
#detalle-recicla .detail-white .text-cv-primary,
#detalle-recicla .detail-white .text-cv-primary * { color: #000 !important; }
#detalle-recicla .detail-white a { text-decoration: underline; }
#detalle-recicla .detail-white a:hover { text-decoration: none; }

.text-cv-primary-50 { color: rgba(35,58,137,.8) !important; }



/* ===== Gestión Recicla — variante con logo a la IZQUIERDA ===== */
#block-recicla .summary-inline.logo-left{
  flex-direction: row !important;      /* logo | texto */
  justify-content: flex-end;           /* agrupa todo hacia la derecha */
  gap: 16px;
}

#block-recicla .summary-inline.logo-left .summary-logo{
  order: 0;                            /* asegura que el logo quede primero */
}

#block-recicla .summary-inline.logo-left .summary-copy{
  text-align: right;                   /* texto alineado a la derecha */
}

/* En móviles, apila natural y alinea a la izquierda para legibilidad */
@media (max-width: 576px){
  #block-recicla .summary-inline.logo-left{
    flex-wrap: wrap;
    justify-content: flex-start;       /* vuelve a inicio en mobile */
  }
  #block-recicla .summary-inline.logo-left .summary-copy{
    text-align: left;
  }
}

/* ============================== EOF ============================== */
/* KPIs dentro de tarjetas (Agendamiento) */
#agendamiento .kpi-card{
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 140px;
}
#agendamiento .kpi-label{
  opacity: .9;
  font-size: .95rem;
}

/* Mejor stacking en móviles estrechos */
@media (max-width: 576px){
  #agendamiento .display-6{ font-size: 2rem; }
}




.logo {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    display: block;
    margin: 10px auto;
}

.logo2 {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    display: block;
    margin: 10px auto;
}

/* EcoHigiene — botón colapsable mismo estilo que Asistencia Deudores */
/* ======================================================================
   ECOHIGIENE — MISMO COMPORTAMIENTO Y ESTILO QUE ASISTENCIA DEUDORES
   ---------------------------------------------------------------------- */

/* Resumen blanco (hereda .summary-white general) */
/* Forzar texto azul dentro del resumen */
#block-ecohigiene.summary-white,
#block-ecohigiene .summary-white,
#block-ecohigiene,
#block-ecohigiene * { color: var(--cv-blue) !important; }

/* Botón EcoHigiene — mismas reglas del bloque Asistencia Deudores */
#block-ecohigiene .when-expanded { display: none !important; }
#block-ecohigiene .when-collapsed { display: inline !important; }
#block-ecohigiene .btn.btn-cv-primary {
  background-color: var(--cv-blue) !important;
  color: var(--cv-magenta) !important;
  border: none !important;
}
#block-ecohigiene .btn.btn-cv-primary:hover,
#block-ecohigiene .btn.btn-cv-primary:focus {
  background-color: var(--cv-magenta) !important;
  color: var(--cv-blue) !important;
}
#block-ecohigiene .btn.btn-cv-primary:active,
#block-ecohigiene .btn.btn-cv-primary:focus:active {
  background-color: var(--cv-magenta) !important;
  color: var(--cv-blue) !important;
  box-shadow: none !important;
}
#block-ecohigiene .btn.btn-cv-primary .when-collapsed,
#block-ecohigiene .btn.btn-cv-primary .when-expanded { color: inherit !important; }

/* Layout del bloque (logo a la derecha, mismo gap/sombras) */
#block-ecohigiene .summary-inline {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
#block-ecohigiene .summary-copy { flex: 1 1 auto; min-width: 0; }
#block-ecohigiene .summary-logo { flex: 0 0 auto; }
#block-ecohigiene .summary-logo img {
  display: block; width: 84px; max-width: 84px; height: auto;
  border-radius: 10px; border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
@media (max-width: 576px) {
  #block-ecohigiene .summary-inline { flex-wrap: wrap; }
  #block-ecohigiene .summary-logo { order: 2; }
  #block-ecohigiene .summary-logo img { width: 72px; max-width: 72px; }
}

/* Detalle azul (hereda .detail-blue general) */
/* Lista sobre azul + contraste de imagen */
#detalle-ecohigiene ul { list-style: disc; padding-left: 1.2rem; color: #fff; }
#detalle-ecohigiene img { box-shadow: 0 10px 24px rgba(0,0,0,.25); }

/* Título con acento (línea gradiente) */
#detalle-ecohigiene .heading-accent { position: relative; padding-bottom: 6px; }
#detalle-ecohigiene .heading-accent::after {
  content: ""; display: block; width: 72px; height: 3px; margin-top: 8px; border-radius: 2px;
  background: linear-gradient(90deg, var(--cv-magenta), var(--cv-cyan));
}

/* Lista de beneficios con bullets de marca */
#detalle-ecohigiene .benefits-list { list-style: none; padding-left: 0; margin: 0; color: #fff; }
#detalle-ecohigiene .benefits-list li {
  position: relative; padding-left: 1.6rem; line-height: 1.55; margin-bottom: .45rem;
}
#detalle-ecohigiene .benefits-list li::before {
  content: ""; position: absolute; left: 0; top: .55rem; width: .7rem; height: .7rem; border-radius: 50%;
  background: var(--cv-magenta); box-shadow: 0 0 0 6px rgba(231,58,140,.18);
}

/* Marco visual de medios (mismo efecto glow) */
#detalle-ecohigiene .media-wrap {
  position: relative; border-radius: 12px; padding: .5rem;
  background: rgba(255,255,255,.06);
  box-shadow: 0 16px 36px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.08);
  overflow: hidden;
}
#detalle-ecohigiene .media-wrap::before {
  content: ""; position: absolute; inset: -10%; border-radius: inherit;
  background: radial-gradient(60% 60% at 50% 40%, rgba(85,189,197,.18), transparent 70%),
              radial-gradient(60% 60% at 60% 70%, rgba(231,58,140,.18), transparent 70%);
  filter: blur(14px); z-index: 0;
}
#detalle-ecohigiene .media-wrap img {
  position: relative; z-index: 1; display: block; width: 100%; height: auto;
  border-radius: 10px; background: #fff; padding: .35rem;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  transition: transform .22s ease, box-shadow .22s ease;
}
#detalle-ecohigiene .media-wrap:hover img { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(0,0,0,.36); }
@media (prefers-reduced-motion: reduce) { #detalle-ecohigiene .media-wrap:hover img { transform: none; } }
