/* ==========================================
   2. HERO Y TICKER
   ========================================== */
.hero-section {
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.hero-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

#hero-home {
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
}

#videoHeader {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    object-fit: cover;
}

.ticker-tape {
  width: 100%;
  overflow: hidden;
  background-color: var(--color-magenta);
  padding: 10px 0;
  margin: 0;
  white-space: nowrap;
}

.ticker-track {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}

.ticker-item {
  display: inline;
  margin-right: 40px;
  color: #ffffff;
  font-size: 1.25rem;
  text-transform: uppercase;
  font-family: 'Sink', sans-serif;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* Ocultar cualquier overlay de controles que Safari/Chrome intenten poner */
video.no-controls::-webkit-media-controls {
  display: none !important;
}

video.no-controls::-webkit-media-controls-enclosure {
  display: none !important;
}

video.no-controls::-webkit-media-controls-overlay-play-button {
  display: none !important;
}

video.no-controls {
  pointer-events: none;   
  object-fit: cover;      
}

/* ==========================================
   3. SECCIÓN EXPERIENCIAS
   ========================================== */
.experiencias-section {
  max-width: 1140px;
  margin: 70px auto 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.experiencias-header {
  text-align: center;
  margin-bottom: 30px;
}

.exp-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #353535;
  margin: 0 0 2px 0;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.exp-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.15rem;
  color: #555555;
  margin: 0;
}

.experiences-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  width: 100%;
}

.flip-card {
  background-color: transparent;
  height: 280px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
  border-radius: 16px;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
}

.card-front {
  background-size: cover;
  background-position: center;
}

.card-overlay {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.card-logo {
  max-width: 85%;
  max-height: 55px;
  object-fit: contain;
}

.card-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 15px 10px;
  box-sizing: border-box;
}

.card-back-text {
  color: #ffffff;
  font-size: 0.78rem;
  line-height: 1.3;
  margin: auto 0;
}

.btn-card-back {
  display: inline-block;
  background-color: transparent;
  border: 1.5px solid #ffffff;
  color: #ffffff;
  padding: 7px 14px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-card-back:hover {
  background-color: #ffffff;
  color: #353535;
}

.bg-card-1 { background-color: #17A899; }
.bg-card-2 { background-color: #026567; }
.bg-card-3 { background-color: #C01A7A; }
.bg-card-4 { background-color: #E69500; }
.bg-card-5 { background-color: #058181; }
.bg-card-6 { background-color: #17A899; }

.card-campusday-full {
  width: 100%;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  margin-top: 25px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.campusday-overlay {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  box-sizing: border-box;
}

.badge-proximamente {
  background-color: #ECA00B;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.campusday-logo {
  max-height: 55px;
  max-width: 220px;
  object-fit: contain;
}

@media (max-width: 992px) {
  .experiences-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  
  .flip-card {
    height: 260px;
  }
}

@media (max-width: 768px) {
  .exp-title {
    font-size: 1.9rem;
    line-height: 1.15;
    margin-bottom: 6px;
  }

  .exp-subtitle {
    font-size: 1rem;
    line-height: 1.3;
  }

  .experiences-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .flip-card {
    height: 240px;
  }

  .card-overlay {
    padding: 8px;
  }

  .card-logo {
    max-width: 90%;
    max-height: 45px;
  }

  .card-back {
    padding: 12px 8px;
  }

  .card-back-text {
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .btn-card-back {
    padding: 6px 12px;
    font-size: 0.65rem;
  }

  .card-campusday-full {
    height: 140px;
    margin-top: 16px;
  }

  .campusday-logo {
    max-height: 40px;
  }
}

/* ==========================================
   4. CALL TO ACTION ABIERTO
   ========================================== */
.banner-agenda-container {
  max-width: 1140px;
  margin: 100px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.banner-agenda-open {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  padding: 20px 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.banner-agenda-text {
  max-width: 800px;
}

.banner-agenda-text h3 {
  font-family: 'Sink', 'DM Sans', sans-serif;
  color: #026567 !important;
  font-size: 3.2rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  margin: 0 0 12px 0;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.banner-agenda-text p {
  font-family: 'DM Sans', sans-serif;
  color: #555555 !important;
  font-size: 1.15rem;
  font-weight: 400;
  margin: 0;
  line-height: 1.35;
  white-space: nowrap;
}

.btn-banner-agenda-filled {
  background-color: #026567;
  color: #ffffff !important;
  padding: 16px 38px;
  border-radius: 50px;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: none;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(2, 101, 103, 0.2);
  transition: all 0.25s ease;
}

.btn-banner-agenda-filled:hover {
  background-color: #C01A7A;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(192, 26, 122, 0.3);
}

@media (max-width: 900px) {
  .banner-agenda-text h3 {
    font-size: 2.2rem;
  }

  .banner-agenda-text p {
    white-space: normal;
  }
}

/* ==========================================
   5. SECCIÓN EJES
   ========================================== */
.ejes-section {
  max-width: 1140px;
  margin: 0 auto 120px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.eje-card {
  position: sticky;
  top: 120px;
  width: 100%;
  min-height: 380px;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 50px 60px;
  color: #ffffff;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
}

.eje-card-bg { position: absolute; top:0; left:0; width:100%; height:100%; object-fit:cover; z-index:1; }
.eje-card-overlay { position: absolute; top:0; left:0; width:100%; height:100%; z-index:2; }
.overlay-verde-oscuro { background: linear-gradient(90deg,rgba(2, 101, 103, 0.95), rgba(2, 101, 103, 0.15)); }
.overlay-magenta { background: linear-gradient(90deg,rgba(192, 26, 122, 0.95) , rgba(192, 26, 122, 0.15)); }
.overlay-verde { background: linear-gradient(90deg,rgba(23, 168, 153, 0.95) , rgba(23, 168, 153, 0.15)); }

.eje-card-content {
  position: relative;
  z-index: 3;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.eje-tag {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.eje-title {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.eje-subtitle {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.eje-description {
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 24px;
}

.btn-eje {
  display: inline-block;
  border: 1.5px solid #ffffff;
  background: transparent;
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-eje:hover {
  background: #ffffff;
  color: var(--color-verde-oscuro);
}

@media (max-width: 768px) {
  .eje-card:first-child .eje-card-bg {
    object-position: 75% center;
  }
}

/* ==========================================
   6. SECCIÓN SPEAKERS
   ========================================== */
.speakers-section {
  position: relative;
  z-index: 10;
  background-color: #ffffff;
  max-width: 1140px;
  margin: 100px auto 120px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.speakers-header {
  text-align: left;
  margin-bottom: 30px;
}

.speakers-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-titulo, #353535);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.speakers-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.15rem;
  color: #555555;
  margin-bottom: 0;
  font-weight: 400;
}

.speakers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.speaker-card {
  position: relative;
  height: 440px;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
}

.speaker-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.speaker-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.speaker-card:hover img {
  transform: scale(1.04);
}

.speaker-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
  padding: 24px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 2;
  box-sizing: border-box;
}

.speaker-overlay h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.2;
}

.speaker-overlay p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.3;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .speakers-section {
    margin: 60px auto 80px auto;
  }

  .speakers-title {
    font-size: 2rem;
    line-height: 1.15;
  }

  .speakers-subtitle {
    font-size: 1rem;
  }

  .speakers-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .speaker-card {
    height: 380px;
    border-radius: 20px;
  }

  .speaker-overlay {
    padding: 20px;
    height: 60%;
  }

  .speaker-overlay h3 {
    font-size: 1.35rem;
  }

  .speaker-overlay p {
    font-size: 0.95rem;
  }
}

/* ==========================================
   7. SECCIÓN ESTADÍSTICAS
   ========================================== */
.stats-section {
  position: relative;
  z-index: 10;
  background-color: #ffffff;
  max-width: 1200px;
  margin: 80px auto 120px auto;
  padding: 0 20px;
}

.stats-container {
  background-color: #F6F6F6;
  border-radius: 32px;
  padding: 50px;
  position: relative;
  overflow: hidden;
}

.stats-brush-img {
  position: absolute;
  top: 0;
  right: 0;
  height: 120px;
  width: auto;
  object-fit: contain;
  pointer-events: none;
}

.stats-header {
  margin-bottom: 35px;
}

.stats-title {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.stats-title-top {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-titulo, #353535);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stats-title-bottom {
  font-family: 'DM Sans', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-titulo, #353535);
  letter-spacing: -0.5px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.stat-number {
  font-family: 'DM Sans', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 14px;
}

.stat-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: #555555;
  line-height: 1.35;
  margin: 0;
}

.color-yellow { color: #ECA00B; }
.color-pink { color: #C01A7A; }
.color-teal { color: #026567; }

@media (max-width: 768px) {
  .stats-section {
    margin: 50px auto 80px auto;
  }

  .stats-container {
    padding: 30px 20px;
    border-radius: 24px;
  }

  .stats-brush-img {
    height: 70px;
    opacity: 0.5;
  }

  .stats-header {
    margin-bottom: 25px;
  }

  .stats-title-top {
    font-size: 1rem;
  }

  .stats-title-bottom {
    font-size: 1.7rem;
    line-height: 1.2;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .stat-card {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .stat-number {
    font-size: 2.3rem;
    margin-bottom: 8px;
  }

  .stat-text {
    font-size: 0.9rem;
    line-height: 1.3;
  }
}

/* ==========================================
   8. GALERÍA CARRUSEL INFINITO
   ========================================== */
.gallery-section {
  max-width: 1140px;
  margin: 80px auto 100px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.gallery-header {
  text-align: left;
  margin-bottom: 35px;
}

.gallery-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--color-titulo, #353535);
  display: inline-block;
  margin-bottom: 8px;
}

.gallery-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-titulo, #353535);
  margin-top: 0;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.gallery-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  color: #555555;
  margin: 0;
}

.gallery-carousel-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 20px;
}

.gallery-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scrollInfinite 25s linear infinite;
}

.gallery-carousel-wrapper:hover .gallery-track {
  animation-play-state: paused;
}

.gallery-item {
  width: 270px;
  height: 200px;
  flex-shrink: 0;
  border-radius: 20px;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-footer-left {
  text-align: left;
  margin-top: 32px;
}

.gallery-footer-center {
  text-align: center;
  margin-top: 32px;
}

.btn-gallery-secondary {
  display: inline-block;
  padding: 12px 28px;
  border: 2px solid var(--color-verde-oscuro, #026567);
  background-color: transparent;
  color: var(--color-verde-oscuro, #026567) !important;
  border-radius: 50px;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.btn-gallery-secondary:hover {
  background-color: var(--color-verde-oscuro, #026567);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 101, 103, 0.15);
}

@keyframes scrollInfinite {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 10px)); }
}

/* ==========================================
   9. SECCIÓN BANNER CTA FINAL
   ========================================== */
.cta-banner-section {
  max-width: 1140px;
  margin: 100px auto 120px auto;
  padding: 0 20px;
  box-sizing: border-box;
  width: 100%;
}

.cta-banner-container {
  position: relative;
  background-color: var(--color-verde-oscuro, #026567);
  border-radius: 28px;
  padding: 60px 50px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(2, 101, 103, 0.2);
  box-sizing: border-box;
  width: 100%;
}

.cta-banner-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.cta-banner-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff !important;
  margin-top: 0;
  margin-bottom: 12px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.cta-banner-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  color: #ffffff !important;
  opacity: 0.95;
  margin-top: 0;
  margin-bottom: 28px;
  line-height: 1.4;
}

.btn-cta-banner {
  display: inline-block;
  background-color: #ffffff;
  color: var(--color-verde-oscuro, #026567) !important;
  padding: 16px 36px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-cta-banner:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  color: var(--color-magenta, #C01A7A) !important;
}

.cta-banner-brush {
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: 350px;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .cta-banner-section {
    margin: 60px auto 80px auto;
  }
  
  .cta-banner-container {
    padding: 40px 25px;
    text-align: center;
  }
  
  .cta-banner-content {
    margin: 0 auto;
  }

  .cta-banner-title {
    font-size: 1.8rem;
  }
  
  .cta-banner-brush {
    opacity: 0.3;
  }
}



