:root {
  --primary: rgb(36, 76,90);
  --dark-primary: rgb(0, 63, 77);
  --border: #111;
  --text: #1f1f1f;
  --white: #ffffff;
}
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f2f2f2;
  font-family: "Hind", sans-serif;
  color: var(--text);
}

.page-wrapper {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
}

/* HERO */
.hero {
    position: relative;

    min-height: 100vh;
    min-height: 100dvh;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;
}

/* VIDEO */
.hero-video {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    z-index: 1;
}

/* CAPA OSCURA */
.hero-overlay {
    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, 0.6);

    z-index: 2;
}

/* CONTENIDO */
.hero-content {
    position: relative;
    z-index: 3;
}

.menu-btn {
    position: absolute;

    top: 25px;
    right: 25px;

    z-index: 4;

    background: transparent;
    border: none;

    color: white;

    font-size: 2rem;
}

/* BLOQUES */
.info-box {
  min-height: 285px;
  padding: 45px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.info-box h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 25px;
}

.info-box p {
  max-width: 470px;
  font-size: 1rem;
  line-height: 1.45;
  margin-bottom: 20px;
}

.info-box.light {
  background: var(--white);
  color: var(--text);
}

.info-box.dark {
  background: var(--primary);
  color: var(--white);
}

.btn-gallery {
  background: transparent;
  color: var(--white);
  border: 3px solid var(--white);
  padding: 8px 22px;
  font-weight: 700;
  font-size: 1.1rem;
}

.btn-gallery:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-cert {
  background: transparent;
  color: var(--primary);
  border: 3px solid var(--dark-primary);
  padding: 8px 22px;
  font-weight: 700;
  font-size: 1.1rem;
}

.btn-cert:hover {
  background: var(--primary);
  color: var(--white);
}

/* CERTIFICACIONES */
.certificaciones {
  padding: 55px 25px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.certificaciones h2,
.presencia h2 {
  
  margin-bottom: 35px;
}

.cert-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

/*
.cert-list span {
  background: var(--primary);
  color: var(--white);
  padding: 12px 18px;
  font-weight: 700;
  font-size: 1rem;
}
  */

/* PRESENCIA GLOBAL */
.presencia {
  padding: 50px 30px 70px;
}

.presencia p {
  max-width: 840px;
  margin: 0 auto 45px;
  font-size: 1rem;
  line-height: 1.5;
}

.global-gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
}

.gallery-items {
  display: flex;
  gap: 35px;
}

.gallery-card {
  border: 5px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: #111;
}

.arrow {
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  background: #000;
  color: var(--white);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FOOTER */
footer {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 18px 12px;
  font-size: .85rem;
  font-weight: 700;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .page-wrapper {
    margin: 0;
    border: none;
  }

  .hero {
    min-height: 320px;
  }

  .info-box {
    min-height: 240px;
    padding: 35px 25px;
  }

  .gallery-items {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .global-gallery {
    gap: 10px;
  }

  .arrow {
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .global-gallery {
    flex-direction: column;
  }

  .gallery-items {
    order: 1;
  }

  .arrow {
    order: 2;
  }

  .cert-list span {
    width: 100%;
  }
}

/*BLENDY*/
.blendy-modal{
  position: fixed;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;
    padding: 20px;

  z-index: 9999;
}

.blendy-modal.active{
  opacity: 1;
  visibility: visible;
}

.modal-inner{
  width: min(500px, 95vw);

    max-height: 90vh;

  background: var(--dark-primary);
  color: white;
  /*border-radius: 28px;*/

  overflow: hidden;
  text-align: center;

  box-shadow:
    0 20px 60px rgba(0,0,0,.25);

    display: flex;
    flex-direction: column;
}

.blendy-modal.active .modal-inner{
  transform: scale(1);
}

.modal-header-custom{
    flex-shrink: 0;
    padding: 20px 20px 0px 20px;
}

.modal-header-custom h1{
  font-size: 50px;
}

.modal-header-custom h2{
  font-size: 1.2rem;
  font-weight: 700;
}

.modal-body-custom{
  flex: 1;

    overflow-y: auto;

    padding: 0px 20px 20px 20px;

    /* Scroll suave en iOS */
    -webkit-overflow-scrolling: touch;
}

/*PDF container*/
.pdf-container{
    width: 100%;
    overflow: hidden;
}


/*Img Effects*/
.contenedorImagen{
    overflow:hidden;
    cursor: pointer;
}
.contenedorImagen img
{
    -webkit-transition:all 1.9s ease; /* Safari y Chrome */
    -moz-transition:all 1.9s ease; /* Firefox */
    -o-transition:all 1.9s ease; /* IE 9 */
    -ms-transition:all 1.9s ease; /* Opera */
    transition: all 1.9s ease;
}

.contenedorImagen:hover img
{
    -webkit-transform:scale(1.5);
    -moz-transform:scale(1.5);
    -ms-transform:scale(1.5);
    -o-transform:scale(1.5);
    transform:scale(1.5);
}

/*LÏNEA DEL TIEMPO*/
.timeline-section {
  border-top: 1px solid var(--border);
    padding: 60px 0 10px 0;
    background: var(--primary);
    position: relative;
}

.timeline-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
}

.timeline-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 20px;
    scroll-behavior: smooth;
}

.timeline-track {
    position: relative;
    display: flex;
    gap: 35px;
    min-width: max-content;
    padding: 52px 5px 35px;
}

.timeline-line {
    position: absolute;
    top: 64px;
    left: 20px;
    right: 20px;
    height: 4px;
    background: white;
    z-index: 1;
}

.timeline-item {
    position: relative;
    flex: 0 0 200px;
    text-align: center;
    z-index: 2;
}

.timeline-dot {
    width: 28px;
    height: 28px;
    background: #ffffff;
    border: 5px solid var(--primary);
    border-radius: 50%;
    margin: 0 auto 18px;
    box-shadow: 0 0 0 3px #ffffff;
}

.timeline-year {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 18px;
    background: white;
    color: var(--primary);
    font-weight: 800;
    border-radius: 30px;
}

.timeline-item p {
    margin: 0 auto;
    max-width: 230px;
    font-size: 0.95rem;
    line-height: 1.4;
    color: white;
}

.timeline-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 50px;
    height: 50px;

    border: none;
    background: transparent;

    color: #ffffff;
    font-size: 2rem;

    cursor: pointer;

    z-index: 100;

    transition: all .25s ease;
}

.timeline-nav:hover {
    transform: translateY(-50%) scale(1.15);
}

.timeline-prev {
    left: 15px;
}

.timeline-next {
    right: 15px;
}

/* Scrollbar tipo Android */
.timeline-wrapper::-webkit-scrollbar {
    height: 5px;
}

.timeline-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.timeline-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.144);
    border-radius: 999px;
}

.timeline-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.timeline-wrapper {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.144) transparent;
    padding-bottom: 0px;
}

.img-cliente{

    cursor: pointer;

    transition: all .25s ease;
}

.img-cliente:hover {
    transform: translateY(-10%) scale(1.15);
}

/* Ajustes móviles */
@media (max-width: 768px) {
    .timeline-section {
        padding: 60px 0;
    }

    .timeline-track {
        gap: 25px;
        padding-left: 30px;
        padding-right: 30px;
    }

    .timeline-line {
        left: 30px;
        right: 30px;
    }

    .timeline-item {
        flex-basis: 220px;
    }

    .timeline-nav {
    top: 20%;
}
}