/* ========================================================================= */
/* INICIO - HERO + BASE DE PÁGINA */
/* ========================================================================= */

:root {
  --cecns-blue: #004080;
  --cecns-gold: #ffc300;
  --cecns-wine: #800020;
  --text-color: #333;
  --bg-light: #f8f9fa;
  --bg-white: #fff;
  --link-color: var(--cecns-blue);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: var(--text-color);
  background: var(--bg-white);
  line-height: 1.6;
}

.section-padding {
  padding: 1rem 2%;
}

.section-title {
  font-size: 2.2rem;
  color: #ffc300
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  margin: 0.8rem auto 0;
  width: 60px;
  height: 3px;
  background-color: var(--cecns-gold);
  border-radius: 2px;
}

.sub-title {
  color: var(--cecns-gold);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

/* HERO */
.hero {
  background: var(--cecns-blue);
  color: #fff;
  padding: 2.25rem 5% 1.5rem 5%;
  text-align: center;
  position: relative;
  overflow: hidden;

  /* Mantener todo el contenido dentro del viewport */
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-content {
  margin: 0 auto;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  z-index: 2;
  position: relative;
}

.hero-slogan {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  z-index: 2;
  position: relative;
}

/* Botón principal */
.btn-primary {
  display: inline-block;
  background: var(--cecns-gold);
  color: var(--cecns-blue);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: bold;
  transition: transform 0.3s, background 0.3s;
  z-index: 2;
  position: relative;
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-3px);
  background: #ffdb60;
}

/* PHOTO ROLL HERO */
.photo-roll-container {
  width: min(100%, 1200px);
  overflow: hidden; /* sin scroll manual, movimiento automático */
  margin: 1rem auto 1.25rem;
  padding: 0 5%;
}

.photo-roll {
  display: flex;
  flex-direction: row;
  gap: 12px;
  padding: 0;
  width: max-content;

  /* Movimiento continuo (izquierda -> derecha) */
  animation: photoRoll 38s linear infinite;
  will-change: transform;
}

/* No detenerse en hover */
.photo-roll-container:hover .photo-roll,
.photo-roll-container:focus-within .photo-roll {
  animation-play-state: running;
}

@keyframes photoRoll {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

/* Accesibilidad: respeta reduce motion */
@media (prefers-reduced-motion: reduce) {
  .photo-roll-container {
    overflow-x: auto;
  }
  .photo-roll {
    animation: none;
    transform: none;
  }
}

.photo-item {
  flex-shrink: 0;
  width: 280px;
  height: 160px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}
.photo-item:hover {
  transform: scale(1.03);
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Scrollbar (ya no se verá por overflow:hidden, pero lo dejamos por compatibilidad) */
.photo-roll-container::-webkit-scrollbar {
  height: 8px;
}
.photo-roll-container::-webkit-scrollbar-thumb {
  background: var(--cecns-gold);
  border-radius: 10px;
}
.photo-roll-container::-webkit-scrollbar-track {
  background: var(--bg-light);
}

/* Responsive básico del hero */
@media (max-width: 992px) {
  .section-padding {
    padding: 2rem 5%;
  }
  .hero-title {
    font-size: 1.3rem !important;
  }

  .photo-item {
    width: 210px;
    height: 125px;
  }
}


/* ===== Trust chips dentro del HERO ===== */
.hero .trust-strip--hero {
  margin-top: 14px;
}
.hero .trust-strip--hero .trust-strip__inner {
  justify-content: center;
}
.hero .trust-strip--hero .trust-chip {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero .trust-strip--hero .trust-chip__value,
.hero .trust-strip--hero .trust-chip__label,
.hero .trust-strip--hero .trust-chip__icon {
  color: rgba(255, 255, 255, 0.95);
}
.hero .trust-strip--hero .trust-chip__label {
  opacity: 0.88;
}


/* ===== Trust strip: micro-animaciones (solo HERO) ===== */
.hero .trust-strip--hero .trust-chip {
  position: relative;
  overflow: hidden;
  transform: translateY(0);
}

/* Brillo sutil al entrar */
.hero .trust-strip--hero .trust-chip::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.28),
    transparent
  );
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
}

/* Clase agregada por JS (no afecta otros lugares) */
.hero .trust-strip--hero .trust-chip.is-anim {
  animation: trustPop 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero .trust-strip--hero .trust-chip.is-anim::before {
  opacity: 1;
  animation: trustShine 1100ms ease both;
}

@keyframes trustPop {
  0% { transform: translateY(10px) scale(0.98); filter: saturate(1); }
  60% { transform: translateY(-2px) scale(1.01); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes trustShine {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

/* Números: alineación estable durante el conteo */
.hero .trust-strip--hero .trust-chip__value.is-counting {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2px;
}

/* Texto (ej: “Valores”): efecto de énfasis al aparecer */
.hero .trust-strip--hero .trust-chip__value.is-text-anim {
  display: inline-block;
  animation: trustTextFocus 700ms ease both;
}

@keyframes trustTextFocus {
  0% { opacity: 0.55; transform: translateY(3px); letter-spacing: 0.6px; }
  100% { opacity: 1; transform: translateY(0); letter-spacing: 0.2px; }
}

