/* ============================================================
   DON ASEO LTDA — Estilos principales
   Paleta: azul institucional, verde limpieza, blanco, gris claro
   ============================================================ */

:root {
  --blue:        #1238B0;
  --blue-dark:   #0A2480;
  --blue-light:  #1A4FD6;
  --green:       #2AAF1A;
  --green-dark:  #1D8012;
  --gold:        #F0C030;
  --white:       #FFFFFF;
  --gray-100:    #F4F6FB;
  --gray-200:    #E8ECF4;
  --gray-400:    #9AA3BA;
  --gray-700:    #3D4560;
  --dark:        #111827;
  --text:        #1E2D4D;

  --font-main: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-head: 'Montserrat', 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(18,56,176,.10);
  --shadow:    0 6px 24px rgba(18,56,176,.14);
  --shadow-lg: 0 16px 48px rgba(18,56,176,.18);

  --transition: .25s ease;
  --max-w: 1200px;
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--dark);
}

/* ── Utilidades ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-pad { padding: 5rem 0; }

.section-tag {
  display: inline-block;
  background: rgba(18,56,176,.08);
  color: var(--blue);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 99px;
  margin-bottom: .9rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: .75rem;
}

.section-title span { color: var(--blue); }

.section-sub {
  font-size: 1.05rem;
  color: var(--gray-700);
  max-width: 620px;
  margin: 0 auto;
}

.text-center { text-align: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.75rem;
  border-radius: 99px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  font-family: var(--font-head);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-green {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-green:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42,175,26,.3);
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======================================================
   NAVBAR
   ====================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background .35s, box-shadow .35s;
  padding: 1.1rem 0;
}

.navbar.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: .75rem 0;
}

.navbar.scrolled .nav-logo-text { color: var(--dark); }
.navbar.scrolled .nav-link { color: var(--gray-700); }
.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active { color: var(--blue); }
.navbar.scrolled .hamburger span { background: var(--dark); }

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.nav-logo img {
  height: 44px;
  width: auto;
  border-radius: 4px;
}

.nav-logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  line-height: 1.1;
  transition: color .35s;
}
.nav-logo-text span {
  display: block;
  font-size: .65rem;
  font-weight: 500;
  opacity: .8;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.nav-link {
  color: rgba(255,255,255,.9);
  font-weight: 600;
  font-size: .875rem;
  padding: .45rem .75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active { color: var(--white); background: rgba(255,255,255,.15); }

.nav-cta {
  background: var(--green);
  color: var(--white) !important;
  padding: .5rem 1.15rem;
  border-radius: 99px;
}
.nav-cta:hover { background: var(--green-dark) !important; }

/* ── Dropdown Solicitudes — CSS puro, sin JS ── */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: .35rem;
  cursor: pointer;
  user-select: none;
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  padding: .45rem .75rem;
}

.nav-dropdown-arrow {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: .7;
  transition: transform .2s;
  flex-shrink: 0;
  display: inline-block;
}

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

/* Panel oculto por defecto */
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;           /* pegado al botón — sin brecha */
  right: 0;
  min-width: 230px;
  padding-top: 8px;    /* espacio visual va DENTRO, no entre botón y menú */
  background: transparent; /* fondo transparente en el padding */
  z-index: 9999;
}

/* La caja visual va dentro de un div interno */
.nav-dropdown-menu-inner {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.22);
  border: 1px solid #dddddd;
  overflow: hidden;
}

/* Mostrar al pasar el cursor — CSS puro */
.nav-dropdown:hover .nav-dropdown-menu { display: block; }

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1.25rem;
  font-size: .88rem;
  font-weight: 600;
  color: #1E2D4D;
  text-decoration: none;
  transition: background .15s;
  white-space: nowrap;
}

.nav-dropdown-item:hover { background: #f4f6fb; }
.nav-dropdown-item + .nav-dropdown-item { border-top: 1px solid #eee; }

/* Móvil */
.nav-mobile-sub {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding-left: 1.5rem;
  border-left: 3px solid #e0e0e0;
  margin-left: .75rem;
}

.nav-mobile-sub-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem .75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #3D4560;
  border-radius: 8px;
  transition: background .15s;
  text-decoration: none;
}

.nav-mobile-sub-item:hover { background: #f4f6fb; color: #1238B0; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .4rem;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav — z-index mayor que el navbar (1000) para que quede encima */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 1100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 2rem;
}

.nav-mobile.open { display: flex; }
.nav-mobile .nav-link { color: var(--text); font-size: 1.2rem; padding: .75rem 1.5rem; width: 100%; text-align: center; }
.nav-mobile .nav-link:hover { background: var(--gray-100); color: var(--blue); border-radius: var(--radius-sm); }
.nav-mobile-close {
  position: absolute;
  top: .75rem; right: .75rem;
  background: var(--gray-100);
  border: none;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--gray-700);
  line-height: 1;
  /* Área mínima de 48×48px para dedos en móvil */
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* ======================================================
   HERO
   ====================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--blue-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/img/fachada-1.jpeg');
  background-size: cover;
  background-position: center 30%;
  filter: brightness(.42) saturate(.8);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,36,128,.82) 0%,
    rgba(10,36,128,.55) 50%,
    rgba(42,175,26,.25) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 7rem 0 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--white);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border-radius: 99px;
  backdrop-filter: blur(8px);
  margin-bottom: 1.5rem;
}
.hero-badge::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.4); }
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  max-width: 720px;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,.85);
  max-width: 560px;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}
.hero-stat strong {
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  font-family: var(--font-head);
  line-height: 1;
}
.hero-stat span {
  font-size: .78rem;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
  margin-top: .15rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.5);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}
.hero-scroll svg { width: 20px; height: 20px; opacity: .5; }

/* ======================================================
   STRIP DE CONFIANZA
   ====================================================== */
.trust-strip {
  background: var(--blue);
  padding: 1.25rem 0;
  overflow: hidden;
}

.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
  align-items: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: rgba(255,255,255,.9);
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
}
.trust-item svg { color: var(--gold); flex-shrink: 0; }

/* ======================================================
   SERVICIOS
   ====================================================== */
.services { background: var(--gray-100); }

.services-header {
  text-align: center;
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  border: 1.5px solid var(--gray-200);
  transition: var(--transition);
  cursor: default;
}
.service-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service-icon {
  width: 54px; height: 54px;
  border-radius: var(--radius-sm);
  background: rgba(18,56,176,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.6rem;
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: var(--blue);
}
.service-card:hover .service-icon .icon-emoji { filter: brightness(10); }

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .45rem;
  color: var(--dark);
}

.service-card p {
  font-size: .875rem;
  color: var(--gray-700);
  line-height: 1.6;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .9rem;
}

.service-tag {
  font-size: .72rem;
  font-weight: 600;
  color: var(--blue);
  background: rgba(18,56,176,.07);
  padding: .2rem .6rem;
  border-radius: 99px;
}

/* ======================================================
   SECTORES
   ====================================================== */
.sectors { background: var(--white); }

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.sector-card {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: var(--transition);
}
.sector-card:hover {
  border-color: var(--blue);
  background: var(--gray-100);
  transform: translateY(-3px);
}

.sector-card .sector-icon {
  font-size: 2rem;
  margin-bottom: .75rem;
}

.sector-card h3 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--dark);
}

/* ======================================================
   NOSOTROS
   ====================================================== */
.about { background: var(--gray-100); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-images {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius-lg);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.about-img-accent {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 45%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 4px solid var(--white);
  box-shadow: var(--shadow);
}

.about-years-badge {
  position: absolute;
  top: 1.5rem;
  left: -1.5rem;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
  z-index: 2;
}
.about-years-badge strong {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  font-family: var(--font-head);
}
.about-years-badge span {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .85;
  font-weight: 600;
}

.about-content .section-title { text-align: left; }
.about-content .section-sub { margin: 0; text-align: left; }

.about-text {
  font-size: 1rem;
  color: var(--gray-700);
  margin: .9rem 0;
  line-height: 1.7;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  margin: 1.25rem 0;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
}
.value-item::before {
  content: '';
  width: 18px; height: 18px;
  min-width: 18px;
  border-radius: 50%;
  background: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 2px;
}

.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

.mv-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  border-left: 4px solid var(--blue);
}
.mv-card.green { border-left-color: var(--green); }

.mv-card h4 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: .5rem;
}
.mv-card.green h4 { color: var(--green-dark); }

.mv-card p {
  font-size: .85rem;
  color: var(--gray-700);
  line-height: 1.6;
}

/* ======================================================
   TARJETA DEL GERENTE (dentro de Nosotros)
   ====================================================== */
.gerente-card {
  margin-top: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--gray-200);
  padding: 0;              /* sin padding — la foto va de borde a borde */
  display: flex;
  align-items: stretch;    /* ambos lados tienen la misma altura */
  gap: 0;
  box-shadow: var(--shadow);
  overflow: hidden;        /* recorta la foto en las esquinas */
  min-height: 400px;
}

/* Sin franja lateral — la foto ocupa toda la mitad izquierda */
.gerente-card::before { display: none; }

/* Foto — mitad izquierda, llena todo el alto */
.gerente-photo {
  width: 50%;
  min-width: 50%;
  height: auto;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  display: block;
}

.gerente-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.75rem 3rem;   /* respiración generosa en la mitad derecha */
  background: var(--white);
}

/* Comilla decorativa grande encima de la cita */
.gerente-info::before {
  content: '\201C';
  font-size: 5rem;
  line-height: .6;
  color: var(--blue);
  opacity: .15;
  font-family: Georgia, serif;
  display: block;
  margin-bottom: .5rem;
}

.gerente-quote {
  font-size: 1.1rem;
  color: var(--gray-700);
  font-style: italic;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.gerente-quote::after {
  content: '\201D';
  font-size: 1.4rem;
  color: var(--blue);
  opacity: .5;
  font-style: normal;
  vertical-align: -.15em;
  margin-left: .1em;
  font-family: Georgia, serif;
}

.gerente-divider {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: 2px;
  margin-bottom: 1rem;
}

.gerente-name {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--dark);
  font-family: var(--font-head);
  line-height: 1.1;
}

.gerente-title {
  font-size: .78rem;
  color: var(--blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: .3rem;
}

.gerente-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray-200);
}

.gerente-stat strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--blue);
  font-family: var(--font-head);
  line-height: 1;
}

.gerente-stat span {
  font-size: .72rem;
  color: var(--gray-400);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  display: block;
  margin-top: .2rem;
}

@media (max-width: 768px) {
  .gerente-card { flex-direction: column; }
  .gerente-photo {
    width: 100%;
    min-width: unset;
    height: 300px;
    object-position: center 12%;
  }
  .gerente-info {
    padding: 2rem 1.75rem;
    text-align: center;
  }
  .gerente-divider { margin: 0 auto 1rem; }
  .gerente-stats   { justify-content: center; }
  .gerente-info::before { text-align: left; }
}

/* ======================================================
   GALERÍA "NUESTRO EQUIPO EN ACCIÓN" — SLIDERS
   ====================================================== */
.gallery-section { background: var(--dark); color: var(--white); }
.gallery-section .section-tag { background: rgba(255,255,255,.12); color: var(--white); }
.gallery-section .section-title { color: var(--white); }
.gallery-section .section-title span { color: var(--gold); }
.gallery-section .section-sub { color: rgba(255,255,255,.65); }

/* Cabecera de cada slider */
.team-slider-header {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.team-label-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}
.team-label-dot.admin { background: var(--gold); }
.team-label-dot.ops   { background: var(--green); }

.team-slider-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  font-family: var(--font-head);
  margin: 0;
}

.team-slider-sub {
  width: 100%;
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  margin: .1rem 0 0 1.6rem;  /* alineado con el título */
  line-height: 1.5;
}

/* ── Slider principal ── */
.team-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
}

/* El viewport define la altura del slider — altura fija para no recortar */
.slider-viewport {
  overflow: hidden;
  width: 100%;
  height: 520px;     /* altura fija: suficiente para grupos y retratos */
}

/* La pista: todas las fotos en fila, se desplaza con transform */
.slider-track {
  display: flex;
  height: 100%;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  flex-shrink: 0;
}

.slide img {
  width: 100%;
  height: 100%;
  /* contain: muestra la foto completa sin recortar nada
     Las fotos verticales muestran barras oscuras a los lados
     Las fotos horizontales llenan el ancho completo           */
  object-fit: contain;
  display: block;
  background: #0d1b3e;   /* fondo azul oscuro Don Aseo para las barras */
}

/* Caption sobre la imagen */
.slide-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem 1.25rem .9rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .09em;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  pointer-events: none;
}

/* Flechas de navegación */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.3);
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s;
  z-index: 10;
  backdrop-filter: blur(4px);
  padding: 0;
}
.slider-btn:hover { background: rgba(255,255,255,.35); }
.slider-btn.prev  { left:  .9rem; }
.slider-btn.next  { right: .9rem; }

/* Dots indicadores */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 0;
  background: rgba(0,0,0,.45);
}

.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  border: none;
  cursor: pointer;
  transition: background .25s, transform .25s;
  padding: 0;
}
.slider-dot.active {
  background: var(--white);
  transform: scale(1.35);
}

/* Responsive */
@media (max-width: 768px) {
  .slider-viewport { height: 380px; }
  .slider-btn { width: 36px; height: 36px; font-size: 1.3rem; }
  .team-slider-sub { margin-left: 0; }
}
@media (max-width: 480px) {
  .slider-viewport { height: 300px; }
}

/* ======================================================
   SIG
   ====================================================== */
.sig {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, #1A5AC0 100%);
  color: var(--white);
}

.sig .section-tag { background: rgba(255,255,255,.15); color: var(--white); }
.sig .section-title { color: var(--white); }
.sig .section-title span { color: var(--gold); }
.sig .section-sub { color: rgba(255,255,255,.75); max-width: 100%; }

.sig-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.sig-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: var(--transition);
}
.sig-card:hover {
  background: rgba(255,255,255,.14);
  transform: translateY(-4px);
}

.sig-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.sig-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .5rem;
}

.sig-card p {
  font-size: .875rem;
  color: rgba(255,255,255,.72);
  line-height: 1.65;
}

.sig-norm {
  font-size: .72rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: .9rem;
  display: block;
}

.sig-achievement {
  margin-top: 3.5rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  text-align: center;
}

.sig-ach-item strong {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold);
  font-family: var(--font-head);
  line-height: 1;
}
.sig-ach-item span {
  font-size: .82rem;
  color: rgba(255,255,255,.72);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-top: .35rem;
  display: block;
}

/* ======================================================
   POR QUÉ ELEGIRNOS
   ====================================================== */
.why { background: var(--white); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.why-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-200);
  transition: var(--transition);
}
.why-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
}

.why-icon-wrap {
  width: 48px; height: 48px;
  min-width: 48px;
  background: rgba(18,56,176,.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: var(--transition);
}
.why-card:hover .why-icon-wrap {
  background: var(--blue);
}

.why-card h3 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .35rem;
}
.why-card p {
  font-size: .85rem;
  color: var(--gray-700);
  line-height: 1.6;
}

/* ======================================================
   CLIENTES
   ====================================================== */
.clients { background: var(--gray-100); }

.clients-header { text-align: center; margin-bottom: 2.5rem; }

.clients-list {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.client-pill {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 99px;
  padding: .45rem 1.1rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-700);
  transition: var(--transition);
}
.client-pill:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(18,56,176,.04);
}

.clients-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.client-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .5rem 1rem;
  font-size: .78rem;
  font-weight: 800;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: var(--transition);
  border-radius: var(--radius-sm);
}
.client-logo-item:hover { color: var(--blue); }

.coverage-section {
  margin-top: 3.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1.5px solid var(--gray-200);
}

.coverage-section h3 {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.coverage-depts {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: center;
}

.dept-badge {
  background: rgba(18,56,176,.07);
  color: var(--blue);
  font-weight: 700;
  font-size: .8rem;
  padding: .4rem .9rem;
  border-radius: 99px;
}

/* ======================================================
   PORTAL ACCESO (Academia / Trabajadores placeholder)
   ====================================================== */
.portals { background: var(--dark); color: var(--white); padding: 4rem 0; }

.portals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.portal-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.portal-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.portal-card.academia::before { background: var(--gold); }
.portal-card.workers::before  { background: var(--green); }

.portal-card:hover {
  background: rgba(255,255,255,.09);
  transform: translateY(-4px);
}

.portal-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.portal-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: .6rem;
}

.portal-card p {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

.portal-badge {
  display: inline-block;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.5);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .3rem .8rem;
  border-radius: 99px;
  margin-bottom: 1rem;
  border: 1px solid rgba(255,255,255,.15);
}

/* ======================================================
   CONTACTO
   ====================================================== */
.contact { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
}

.contact-info { }
.contact-info .section-title { text-align: left; }
.contact-info .section-sub { margin: 0; text-align: left; }

.contact-items {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 46px; height: 46px;
  min-width: 46px;
  background: rgba(18,56,176,.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-item-text strong {
  display: block;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: .2rem;
}
.contact-item-text span,
.contact-item-text a {
  font-size: .9rem;
  color: var(--gray-700);
  line-height: 1.5;
}
.contact-item-text a:hover { color: var(--blue); }

.sedes-list {
  margin-top: 1.75rem;
}
.sedes-list h4 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: .9rem;
}

.sede-item {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  padding: .65rem 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: .88rem;
  color: var(--gray-700);
}
.sede-item:last-child { border: none; }
.sede-item strong { color: var(--dark); font-weight: 700; white-space: nowrap; }

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: #25D366;
  color: var(--white);
  padding: .8rem 1.5rem;
  border-radius: 99px;
  font-weight: 700;
  font-size: .9rem;
  margin-top: 1.5rem;
  transition: var(--transition);
}
.whatsapp-btn:hover { background: #1abe58; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,.35); }

/* Contact form */
.contact-form-wrap {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.form-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: .4rem;
  color: var(--dark);
}
.form-sub {
  font-size: .875rem;
  color: var(--gray-700);
  margin-bottom: 1.75rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: .75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: .9rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(18,56,176,.1);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.form-submit {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: .9rem;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  color: var(--green-dark);
  font-weight: 700;
}

/* ======================================================
   MAPA DE CONTACTO
   ====================================================== */
.contact-map {
  margin-top: 3rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--gray-200);
  box-shadow: var(--shadow);
}

.contact-map-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  font-size: .9rem;
}

.contact-map-header span:first-child {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.contact-map-header strong {
  display: block;
  font-weight: 700;
  color: var(--dark);
  font-size: .95rem;
}

.contact-map-header span:last-child,
.contact-map-header div > span {
  color: var(--gray-700);
  font-size: .82rem;
}

/* ======================================================
   FOOTER
   ====================================================== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 4rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-brand .nav-logo-text { color: var(--white); }
.footer-brand p {
  font-size: .875rem;
  line-height: 1.7;
  color: rgba(255,255,255,.55);
  max-width: 280px;
}

.footer-col h4 {
  color: var(--white);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1.2rem;
}

.footer-col ul li {
  margin-bottom: .55rem;
}
.footer-col ul li a {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }

.footer-contact-item {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  margin-bottom: .75rem;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
}
.footer-contact-item span:first-child { margin-top: .1rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}

/* ======================================================
   FLOATING WHATSAPP
   ====================================================== */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.5);
  transition: var(--transition);
  animation: waPop .6s cubic-bezier(.175,.885,.32,1.275) both;
  animation-delay: 2s;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 10px 32px rgba(37,211,102,.55); }
.wa-float svg { width: 30px; height: 30px; fill: white; }

@keyframes waPop {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: 1; transform: scale(1); }
}

/* ======================================================
   GRID DE LOGOS DE CLIENTES
   ====================================================== */

/* Cuadrícula de tarjetas — se adapta: 5 col escritorio, 3 tablet, 2 móvil */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

/* Cada tarjeta de logo */
.client-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  cursor: default;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  /* Barra de acento inferior — arranca invisible */
  position: relative;
  overflow: hidden;
}

/* Línea de color en la parte inferior que aparece en hover */
.client-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}

.client-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(18,56,176,.14);
  border-color: transparent;
}

.client-card:hover::after {
  transform: scaleX(1);
}

/* Área de imagen — altura fija para que todas queden alineadas */
.client-card-img {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-card-img img {
  max-width: 100%;
  max-height: 76px;
  width: auto;
  height: auto;
  object-fit: contain;
  /* Color completo siempre — los logos hablan por sí mismos */
  filter: none;
  /* El logo escala ligeramente en hover */
  transition: transform .35s ease;
}

/* Hover: el logo crece un poco — efecto "se activa" */
.client-card:hover .client-card-img img {
  transform: scale(1.07);
}

/* Responsive */
@media (max-width: 1024px) {
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .clients-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .client-card { padding: 1.25rem 1rem 1rem; }
  .client-card-img { height: 60px; }
}

/* ======================================================
   PÁGINA PLACEHOLDER (Academia / Trabajadores)
   ====================================================== */
.placeholder-hero {
  min-height: 100svh;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.placeholder-content {
  max-width: 560px;
}

.placeholder-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.placeholder-content h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: .75rem;
}

.placeholder-content p {
  color: rgba(255,255,255,.6);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ======================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-images { max-width: 500px; margin: 0 auto; }
  .about-img-accent { width: 38%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .sig-achievement { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 768px) {
  .section-pad { padding: 3.5rem 0; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .about-values { grid-template-columns: 1fr; }
  .mission-vision { grid-template-columns: 1fr; }
  .portals-grid { grid-template-columns: 1fr; }
  .sig-achievement { grid-template-columns: 1fr; gap: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-years-badge { left: .5rem; }
  .about-img-accent { right: .5rem; bottom: -1rem; }
}

@media (max-width: 480px) {
  .hero-stats { gap: 1rem; }
  .trust-strip-inner { gap: 1rem 1.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .sectors-grid { grid-template-columns: 1fr 1fr; }
}
