body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f4f4f4;
}

h2 {
    color:#0a7bb2;
    text-align: center;
    font-size: 2.5em;
}

h3 {
    color:#a21510;
    text-align: center;
}

.gallery-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 80%;
    max-width: 1200px;
    padding: 60px 0px;
    margin: 0 auto;
}

#contenidocentrado {
    width: 80%;
    margin-top: 1rem;
    margin-bottom: 1rem;
    margin: auto;
}

.gallery-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.gallery-item {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 300px;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-item p {
    padding: 15px;
        font-size: 16px;
        /* si ya lo tienes, lo puedes dejar */
        background-color: #e0f0ff;
        /* ← este es el fondo que quieres aplicar */
        text-align: center;
        border-radius: 8px;
        height: 100%;
}
.caption {
    background-color: #e0f0ff;
    color: #0a7bb2;
    padding: 31px;
    font-size: 16px;
    text-align: center;
    border-top: 1px solid #c0d8e8;
}

.caption1 {
    background-color: #e0f0ff;
    color: #0a7bb2;
    padding: 35px;
    font-size: 16px;
    text-align: center;
    border-top: 1px solid #c0d8e8;
}

.caption2 {
    background-color: #e0f0ff;
    color: #0a7bb2;
    padding: 35px;
    font-size: 16px;
    text-align: center;
    border-top: 1px solid #c0d8e8;
}

.caption3 {
    background-color: #e0f0ff;
    color: #0a7bb2;
    padding: 35px;
    font-size: 16px;
    text-align: center;
    border-top: 1px solid #c0d8e8;
}

.video-banner {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-top: 4px solid rgba(10, 123, 178, 0.8);
    border-bottom: 4px solid rgba(10, 123, 178, 0.8);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.3);
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: 1;
}

.video-overlay {
    position: relative;
    z-index: 2;
    color: #ffffff;
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.video-overlay h2 {
    font-size: 26px;
    margin-bottom: 15px;
    font-weight: bold;
    text-transform: uppercase;
    color: #ffffff;
    /* texto blanco */
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    /* sombra para contraste */
    -webkit-text-stroke: 1px rgba(10, 123, 178, 0.8);
    /* borde azul institucional */
}

.video-overlay p {
    
            font-size: 18px;
            line-height: 1.6;
            color: rgba(10, 123, 178, 0.8);
            -webkit-text-stroke: 0.6px #000000;
            /* borde negro más sutil */
            text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
            /* sombra para contraste */
        
}

.horizontal-text-section {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 40px 30px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.text-block {
    flex: 1;
    min-width: 280px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.text-block p {
    color: rgba(10, 123, 178, 0.8);
    font-size: 16px;
    line-height: 1.6;
    text-align: justify;
}

.three-boxes {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 60px 30px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.box {
  flex: 1;
  min-width: 280px;
  padding: 25px;
  border-radius: 12px;
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}

.box h3 {
  font-size: 20px;
  margin-bottom: 15px;
  text-transform: uppercase;
  font-weight: bold;
}

.box p {
  font-size: 16px;
  line-height: 1.6;
}

/* Tonos institucionales */
.box1 {
  background-color: #0a2c4f;
}

.box2 {
  background-color: rgba(10, 123, 178, 0.9);
}

.box3 {
  background-color: #0a2c4f;
}

/* Version movil */
@media (max-width: 768px){

    h1 {
        font-size: 2.5vw;
    }
    h2 {
        font-size: 1rem;
    }
    .gallery-container {
        flex-direction: column;
        
    }
    #contenidocentrado {
        width: 18.8rem;
    }
    video {
        height: auto;
    }
    
}


