@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* ===================== VARIABLES ===================== */
:root {
  --white: #ffffff;
  --surface: rgba(255, 255, 255, 0.78);
  --text: #1f2937;
  --text-soft: #4b5563;
  --muted: #6b7280;
  --border: rgba(15, 23, 42, 0.171);

  --naranja-principal: #ff9723;
  --azul-principal: #0a4c8f;
  --naranja-difuminado: rgba(255, 151, 35, 0.16);
  --azul-difuminado: rgba(10, 76, 143, 0.14);

  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 18px 50px rgba(15, 23, 42, 0.16);

  --radius-lg: 20px;
  --radius-xl: 28px;                    

  --container-wide: 1360px;

  --transition-fast: 180ms ease;
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 450ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================== RESET ===================== */
* { 
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

img, iframe {
    max-width: 100%;
    display: block;
}

a {
     color: inherit;
    text-decoration: none;
}
button { 
    font: inherit;
}


body {
  font-family: "Poppins", system-ui, sans-serif;
  background: rgb(239, 239, 239);
  color: var(--text);
  line-height: 1.2;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 800, "GRAD" 0, "opsz" 24;
}

/* ===================== CABECERA ===================== */
.cabecera {
  background: var(--naranja-principal);
  padding: 15px;
  z-index: 100;
  border-radius: 0 0 40px 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.cabecera__logos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1472px;
  margin: 0 auto;
  padding: 0 10px;
}

.cabecera__logos img {
  height: 75px;
  margin-top: -8px;
  width: auto;
  object-fit: contain;
}

/* ===================== BOTÓN MENÚ ===================== */
.btn-menu-glass {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 9999;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-menu-glass:hover { transform: scale(1.05); }
.btn-menu-glass:active { transform: scale(0.95); }
.btn-menu-glass * { pointer-events: none; }

.icono-menu {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.icono-menu .material-symbols-outlined {
  font-size: 34px;
  color: var(--azul-principal);
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

/* ===================== OVERLAY ===================== */
.overlay-menu {
  position: fixed;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  z-index: 95;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}
.overlay-menu.active { opacity: 1; visibility: visible; }

/* ===================== MENÚ LATERAL ===================== */
.menu-lateral {
  position: fixed;
  top: 0;
  left: 0;
  height: 100dvh;
  width: min(340px, 88vw);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 12px 0 40px rgba(15, 23, 42, 0.16);
  border-right: 1px solid rgba(15, 23, 42, 0.06);
  border-top-right-radius: 28px;
  border-bottom-right-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 96;
  transform: translateX(-102%);
  transition: transform var(--transition-slow);
}
.menu-lateral.active { transform: translateX(0); }

.menu-lateral__cabecera {
  position: relative;
  padding: 24px 22px 22px;
  background: linear-gradient(145deg, rgba(10, 76, 143, 0.98), rgba(10, 76, 143, 0.88)),
              linear-gradient(145deg, var(--azul-principal), #164d86);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-bottom: 4px solid var(--naranja-principal);
}
.menu-lateral__cabecera img {
  height: 66px;
  width: 66px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
}
.menu-lateral__cabecera h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.menu-lateral__cerrar {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast);
}
.menu-lateral__cerrar:hover {
  transform: scale(1.06);
  background: rgba(255, 255, 255, 0.18);
}

.menu-lateral__lista {
  list-style: none;
  padding: 12px;
  display: grid;
  gap: 6px;
}
.menu-lateral__lista a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  color: var(--text);
  font-weight: 500;
  transition: background var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
}
.menu-lateral__lista a .material-symbols-outlined { color: var(--azul-principal); font-size: 22px; }
.menu-lateral__lista a:hover { background: rgba(255, 151, 35, 0.11); color: #9a4d06; transform: translateX(2px); }
.menu-lateral__volver a { color: var(--azul-principal); border-bottom: 1px solid rgba(15, 23, 42, 0.06); margin-bottom: 4px; }



/*-------------------------------------------------------------------------------------------------------------------------------------*/



/* CONTENEDOR PRINCIPAL*/



.contenedor-principal {
  width: 1350px;
  margin: 24px auto 0;
  padding: 10px 0 56px;
}

.titulo-principal {
  text-align: center;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--azul-principal);
  margin-top: 18px;
  margin-bottom: 45px;
}

.titulo-secundario {
  font-size: 28px;
  font-weight: 700;
  color: var(--azul-principal);
  margin-top: 85px;
  margin-bottom: 45px;
  padding-bottom: 12px;
  border-bottom: 5px solid var(--naranja-principal);
  position: relative;
}
.titulo-secundario::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 56px;
  height: 2px;
  background: var(--naranja-principal);
  border-radius: 999px;
}

/* ===================== SECCIÓN VIDEO ===================== */
.seccion-video {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 50px;
  align-items: start;
}

.video-contenedor {
  position: sticky;
  top: 106px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.7));
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-md);
}
.video-contenedor::before { content: ""; display: block; padding-top: 56.25%; }
.video-contenedor iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ===================== DESCRIPCIÓN LATERAL ===================== */
.descripcion-lateral {
  background: var(--white);
  border: 10px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 22px 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.descripcion-lateral__eyebrow {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--naranja-principal);
}

.descripcion-lateral__titulo {
  font-size: 25px;
  font-weight: 800;
  color: var(--azul-principal);
  
}

.descripcion-lateral__texto {
  font-size: 16px;
  color: var(--text);
  line-height: 1.65;
}

.descripcion-lateral__pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 13px;
}
.descripcion-lateral__pills li {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1.5px solid;
}
.descripcion-lateral__pills li:nth-child(odd) {
  background: var(--azul-difuminado);
  color: var(--azul-principal);
  border-color: rgba(10, 76, 143, 0.22);
}
.descripcion-lateral__pills li:nth-child(even) {
  background: var(--naranja-difuminado);
  color: #9a4d06;
  border-color: rgba(255, 151, 35, 0.3);
}

/* ===================== ACORDEÓN ===================== */

.acordeon-vertical {
  width: 100%;
}

.lista-acordeon {
  columns: 2;
  column-gap: 28px;
}

.lista-acordeon .acordeon-item {
  break-inside: avoid;
  margin-bottom: 18px;
}

.columna-acordeon .lista-acordeon {
  columns: 1;
}

/* ITEM */
.acordeon-item {
  position: relative;

  border-radius: var(--radius-lg);
  overflow: hidden;

  background: var(--white);

  border: 2px solid rgba(0, 0, 0, 0.05);

  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.04);

  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

.acordeon-item:hover {
  transform: translateY(-4px);

  box-shadow:
    0 14px 28px rgba(10, 76, 143, 0.10);

  border-color: rgba(10, 76, 143, 0.12);
}

/* BARRA */
.acordeon-barra {
  position: absolute;

  top: 0;
  left: 0;

  width: 10px;
  height: 100%;

  background:
    linear-gradient(
      to bottom,
      #ffb347,
      var(--naranja-principal)
    );

  z-index: 2;
}

/* HEADER */
.acordeon-encabezado {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 14px;

  padding: 20px 20px 20px 30px;

  border: 0;
  background: transparent;

  cursor: pointer;
  text-align: left;

  color: var(--text);

  font-weight: 700;
  font-size: 1.02rem;

  transition: color .25s ease;
}

.acordeon-item:hover .acordeon-encabezado {
  color: var(--azul-principal);
}

.acordeon-encabezado:focus-visible,
.menu-lateral__cerrar:focus-visible,
.btn-menu-glass:focus-visible,
.menu-lateral__lista a:focus-visible {
  outline: 3px solid rgba(10, 76, 143, 0.28);
  outline-offset: 3px;
}

/* FLECHA */
.acordeon-flecha {
  flex-shrink: 0;

  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 151, 35, 0.10);
  color: var(--naranja-principal);
  user-select: none;

  transition:
    transform .3s ease,
    background .25s ease,
    color .25s ease;
}

.acordeon-item:hover .acordeon-flecha {
  background: var(--naranja-principal);
  color: var(--white);
}

/* PANEL */
.acordeon-panel {
  max-height: 0;
  opacity: 0;

  overflow: hidden;

  transition:
    max-height .35s ease,
    opacity .3s ease;
}

.acordeon-panel[hidden] {
  display: block;
}

/* CONTENIDO */
.acordeon-contenido {
  padding: 0 20px 20px 30px;

  color: var(--text-soft);

  font-size: 0.97rem;
  line-height: 1.7;
}

.acordeon-contenido p {
  margin-bottom: 10px;
}

.acordeon-contenido ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.acordeon-contenido li + li {
  margin-top: 8px;
}

/* ESTADOS */
.acordeon-item.is-open {
  border-color: rgba(255, 151, 35, 0.18);
}

.acordeon-item.is-open .acordeon-flecha {
  transform: rotate(180deg);
}

.acordeon-item.is-open .acordeon-panel {
  opacity: 1;
}

/* ===================== TRES COLUMNAS ===================== */

.seccion-tres-columnas {
  margin-top: 120px; /* MÁS SEPARACIÓN */

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 28px;

  align-items: start;
}

.columna-acordeon {
  background: rgba(255, 255, 255, 0.68);

  backdrop-filter: blur(10px);

  border: 1px solid rgba(0, 0, 0, 0.05);

  border-radius: var(--radius-xl);

  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.05);

  padding: 20px;

  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

.columna-acordeon:hover {
  transform: translateY(-3px);

  box-shadow:
    0 16px 30px rgba(10, 76, 143, 0.08);
}

.columna-acordeon .acordeon-item {
  background: rgba(255, 255, 255, 0.88);
}

/* TITULO */
.columna-acordeon__titulo {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);

  background:
    linear-gradient(
      135deg,
      #0a4c8f,
      #1560ad
    );
  text-align: center;
  margin: -20px -20px 20px -20px;
  padding: 16px 18px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  letter-spacing: 0.01em;
  box-shadow:
    0 6px 16px rgba(10, 76, 143, 0.15);
}
/* ===================== CARRUSEL ===================== */
.carrusel {
  display: flex;
  gap: 20px;
  width: 100%;
  overflow: hidden;
  padding: 10px 0 20px;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.carrusel__grupo {
  display: flex;
  gap: 20px;
  padding-right: 20px;
  flex-shrink: 0;
  animation: carrusel-scroll 26s linear infinite;
  will-change: transform;
}
.carrusel:hover .carrusel__grupo { animation-play-state: paused; }

@keyframes carrusel-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

.tarjeta-testimonio {
  width: clamp(280px, 28vw, 350px);
  min-height: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.76));
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.tarjeta-testimonio:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 151, 35, 0.22);
}

.tarjeta-testimonio__estrellas { display: flex; gap: 2px; color: var(--naranja-principal); }
.tarjeta-testimonio__estrellas .material-symbols-outlined {
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
  font-size: 22px;
}

.tarjeta-testimonio__texto { color: var(--text-soft); font-size: 0.98rem; line-height: 1.7; flex: 1; }

.tarjeta-testimonio__autor { display: flex; align-items: center; gap: 14px; margin-top: auto; }

.tarjeta-testimonio__avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--azul-principal), var(--naranja-principal));
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 24px rgba(10, 76, 143, 0.2);
}

.tarjeta-testimonio__info h3 { font-size: 1rem; color: var(--text); line-height: 1.2; }
.tarjeta-testimonio__info p  { font-size: 0.92rem; color: var(--muted); }

/* ===================== RESPONSIVE ===================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1100px) {
  .seccion-video { grid-template-columns: 1fr; }
  .video-contenedor { position: relative; top: auto; }
  .seccion-tres-columnas { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .cabecera__logos { padding: 10px 14px; }
  .cabecera__logos img { height: 58px; }

  .contenedor-principal { width: min(calc(100% - 20px), var(--container-wide)); margin-top: 18px; padding-bottom: 44px; }

  .titulo-principal { margin-bottom: 20px; }
  .titulo-secundario { margin-top: 44px; }
  .btn-menu-glass { left: 14px; bottom: 14px; }

  .acordeon-vertical .lista-acordeon { columns: 1; }
  .acordeon-item { grid-template-columns: 10px 1fr; }
  .acordeon-encabezado { padding: 16px 14px 16px 12px; font-size: 0.98rem; }
  .acordeon-contenido { padding: 0 14px 16px 12px; font-size: 0.95rem; }

  .columna-acordeon { padding: 14px; border-radius: 22px; }
  .columna-acordeon__titulo { margin: -14px -14px 16px -14px; border-radius: 22px 22px 0 0; }

  .tarjeta-testimonio { width: min(84vw, 330px); min-height: 300px; padding: 20px; }
  .descripcion-lateral { padding: 20px 18px; }
}

@media (max-width: 520px) {
  .menu-lateral { width: min(88vw, 320px); }
  .titulo-principal { font-size: 1.8rem; }
  .tarjeta-testimonio__avatar { width: 52px; height: 52px; }
  .tarjeta-testimonio__texto { font-size: 0.95rem; }
  .descripcion-lateral__titulo { font-size: 1.25rem; }
}