* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    overflow-x: hidden;
}

.contenedor {
    padding: 10px 0 20px;
    width: 90%;
    max-width: 2000px;
    margin: auto;
    overflow: hidden;
}

.titulo {
    color: #2a5c9c;
    font-size: 50px;
    text-align: center;
    margin-bottom: 60px;
}

/*Header*/
/* Botón fijo de video 
#video-btn {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 9999;
    width: 45px;          
    height: 45px;         
    background: #1e3c72;
    color: #fff;
    border-radius: 50%;
    font-size: 20px;      
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, background 0.3s ease;
}

#video-btn:hover {
    transform: scale(1.15);
    background: #2817c5;
}*/
header {
    width: 100%;
    height: auto;
    min-height: 650px;
    background: #1e3c72;
    background: -webkit-linear-gradient(to right, hsla(217, 60%, 28%, 0.616), hsla(215, 50%, 50%, 0.61)), url(./Imagenes/Verde.jpg);
    background: linear-gradient(to right, hsla(217, 60%, 28%, 0.616), hsla(215, 50%, 50%, 0.61)), url(./Imagenes/Verde.jpg);
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    position: relative;
}

nav {
    text-align: right;
    padding: 30px 20px 0 0;
    position: relative;
}

.menu-icon {
    display: none;
    color: #fff;
    font-size: 30px;
    padding: 10px 20px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 1001;
}

.menu {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.menu a {
    color: white; /* Cambia el color a blanco */
    text-decoration: none; /* Elimina el subrayado (líneas) */
    margin: 0 5px; /* Espaciado entre enlaces */
    padding: 5px 0; /* Espaciado interno */
    font-size: 22px;
}
.menu a:hover {
    color: #333; /* Color ligeramente más oscuro al pasar el mouse */
    /* Opcional: puedes agregar otros efectos hover si deseas */
}

nav > a {
    color: #fff;
    font-weight: 300;
    text-decoration: none;
    margin-right: 10px;
    font-size: 25px;
    padding: 5px 10px;
    transition: all 0.3s ease;
}

nav > a:hover {
    text-decoration: underline;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
}

header .textos-header {
    display: flex;
    height: 430px;
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 0 20px;
}

.textos-header h1 {
    font-size: 60px;
    color: #fff;
    line-height: 1.2;
}

.textos-header h2 {
    font-size: 40px;
    font-weight: 300;
    color: #fff;
    margin-top: 20px;
    font-family: sans-serif;
}

.wave {
    position: absolute;
    bottom: 0;
    width: 100%;
}

/*About us*/
.sobre-nosotros {
    margin-bottom: 65px;
}

.contenedor-sobre-nosotros {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    align-items: center;
}

.imagen-about-us {
    width: 100%;
    max-width: 500px;
    margin: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(30, 60, 114, 0.3);
    filter: brightness(1.05) contrast(1.1) saturate(1.1);
    border: 5px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.imagen-about-us::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(30, 60, 114, 0.2), rgba(42, 92, 156, 0.2));
    border-radius: 10px;
    pointer-events: none;
}

.imagen-about-us.zoom-effect {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(30, 60, 114, 0.4);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.sobre-nosotros .contenido-textos {
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
    margin-top: 30px;
}

.contenido-textos h3 {
    margin-bottom: 15px;
    color: #1e3c72;
}

.contenido-textos h3 span {
    background: #2a5c9c;
    color: #fff;
    border-radius: 50%;
    display: inline-block;
    text-align: center;
    width: 35px;
    height: 35px;
    padding: 5px;
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, .5);
    margin-right: 5px;
}

.contenido-textos p {
    padding: 0 0 30px 15px;
    font-weight: 300;
    text-align: justify;
}

h3 {
    font-size: 25px;
}

p {
    font-size: 18px;
}

/*Galeria*/
/* ===== BUSCADOR DE PDFs ===== */
.buscador-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px auto 40px auto;
    width: 100%;
    padding: 0 20px;
}

.buscador-box {
    position: relative;
    width: 100%;
    max-width: 600px; /* Aumentado de 400px a 600px para mejor centrado */
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.buscador-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #2a5c9c;
    font-size: 18px;
    z-index: 2;
}

#buscador-pdf {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid rgba(42, 92, 156, 0.3);
    border-radius: 30px;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.95);
    color: #1e3c72;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

#buscador-pdf:focus {
    border-color: #2a5c9c;
    background: white;
    box-shadow: 0 8px 25px rgba(42, 92, 156, 0.2);
    transform: translateY(-2px);
}

#buscador-pdf::placeholder {
    color: rgba(30, 60, 114, 0.6);
}

.contador-resultados {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: #2a5c9c;
    color: white;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.contador-resultados.visible {
    opacity: 1;
}
/* Resaltado de texto encontrado */
.resaltado {
    background-color: #ffeb3b;
    color: #1e3c72;
    font-weight: bold;
    padding: 1px 3px;
    border-radius: 3px;
}

/* Animación para resultados encontrados */
@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pdf-item {
    animation: aparecer 0.3s ease forwards;
}

/* Responsive para el buscador */
@media screen and (max-width: 900px) {
    .buscador-container {
        order: 3;
        width: 100%;
        margin: 20px 0;
        padding: 0 15px;
    }
    
    .buscador-box {
        max-width: 100%;
    }
    
    #buscador-pdf {
        padding: 12px 15px 12px 40px;
        font-size: 15px;
    }
    
    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 20px 15px 0;
    }
    
    .menu-icon {
        order: 1;
        flex: 0 0 auto;
    }
    
    .menu {
        order: 4;
        width: 100%;
        margin-top: 15px;
    }
    
    .buscador-container {
        order: 2;
        flex: 1;
        margin: 0 15px;
        max-width: 250px;
    }
}

@media screen and (max-width: 600px) {
    .buscador-container {
        max-width: 200px;
        margin: 0 10px;
    }
    
    #buscador-pdf {
        padding: 10px 12px 10px 35px;
        font-size: 14px;
    }
    
    .buscador-box i {
        font-size: 16px;
        left: 12px;
    }
    
    .contador-resultados {
        display: none; /* Ocultar contador en móviles muy pequeños */
    }
}

@media screen and (max-width: 400px) {
    .buscador-container {
        max-width: 180px;
    }
    
    #buscador-pdf {
        padding: 8px 10px 8px 30px;
        font-size: 13px;
    }
    
    .buscador-box i {
        font-size: 14px;
        left: 10px;
    }
}

/* Ajustes para cuando el menú está activo en móviles */
@media screen and (max-width: 900px) {
    .menu.active ~ .buscador-container {
        display: none;
    }
}
.portafolio {
    background: #f2f2f2;
    padding: 60px 0;
}
.pdf-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    padding: 0 20px;
}

.pdf-item {
    width: 150px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: all 0.3s ease;
    transform-origin: center bottom;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pdf-item:hover {
    transform: scale(1.05);
    z-index: 10;
    position: relative;
}

.pdf-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: all 0.3s ease;
    cursor: zoom-in;
}

.pdf-item:hover img {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.pdf-item a {
    display: block;
    padding: 12px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 0 0 8px 8px;
    margin-top: auto;
    font-size: 14px;
}

.pdf-item a:hover {
    background-color: #0056b3;
}

/* Estilos para el modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-contenido {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    object-fit: contain;
    animation: zoom 0.3s;
    transition: transform 0.3s ease;
}

.modal-contenido:hover {
    transform: scale(1.02);
}

@keyframes zoom {
    from {transform: scale(0.1)}
    to {transform: scale(1)}
}

.cerrar {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.cerrar:hover,
.cerrar:focus {
    color: #bbb;
    text-decoration: none;
}

#pieFoto {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 18px;
}

/* Efecto hover para el botón de ampliar */
.pdf-item .ampliar-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}

.pdf-item:hover .ampliar-btn {
    opacity: 1;
}

.seccion-transponer {
    background: #fff;
    padding: 60px 0;
    margin-top: 80px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.container {
    font-family: sans-serif;
    color: black;
    line-height: 1.5;
    max-width: 100%;
    margin: 0 20px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.container input,
.container button {
    font-family: sans-serif;
    padding: 12px;
    margin: 5px 0;
    width: 100%;
    box-sizing: border-box;
}

.container button {
    font-weight: bold;
    margin-top: 15px;
}

.container label {
    font-weight: bold;
    color: #333;
    margin-top: 20px;
    display: block;
    font-size: 18px;
}

.container iframe {
    background: white;
    border: 1px solid #ddd;
    width: 100%;
    height: 500px;
    margin-top: 20px;
}

h1 {
    color: #333;
    text-align: center;
    margin-top: 0;
}

/* Estilo personalizado para el input de archivo */
#pdfFile {
    display: none;
}

.custom-file-input {
    display: inline-block;
    padding: 12px 20px;
    background-color: transparent;
    border: 2.5px solid #2a5c9c;
    color: #2a5c9c;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    margin: 10px 0;
    font-size: 16px;
    width: 100%;
    max-width: 200px;
}

.custom-file-input:hover {
    background-color: #2a5c9c;
    color: white;
}

.file-name {
    font-family: sans-serif;
    margin-left: 10px;
    font-size: 16px;
    color: #333;
    display: block;
    margin-top: 10px;
    word-break: break-all;
}

input[type="number"] {
    padding: 10px;
    font-size: 16px;
    margin-top: 10px;
    width: 100%;
    max-width: 200px;
    box-sizing: border-box;
}

button {
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 16px;
}

button:hover {
    background-color: #45a049;
}

#descargarBtn {
    background-color: #2196F3;
}

#descargarBtn:hover {
    background-color: #0b7dda;
}

iframe {
    width: 100%;
    height: 500px;
    margin-top: 20px;
    border: 1px solid #ddd;
    background: white;
    display: none;
}

.loading {
    display: none;
    text-align: center;
    margin: 20px 0;
    color: #555;
    font-size: 18px;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid #3498db;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 10px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer / Contactos */
footer {
    background: #1e3c72;
    background: linear-gradient(to right, hsla(217, 60%, 28%, 0.9), hsla(215, 50%, 50%, 0.9));
    padding: 60px 0 20px 0;
    margin: auto;
    overflow: hidden;
    position: relative;
}

.contenedor-footer {
    display: flex;
    width: 90%;
    justify-content: space-evenly;
    margin: auto;
    padding-bottom: 30px;
    flex-wrap: wrap;
    gap: 30px;
}

.content-foo {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 250px;
}

.content-foo:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.content-foo h4 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 500;
    position: relative;
    padding-bottom: 8px;
}

.content-foo h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: #fff;
}

.content-foo p, 
.content-foo a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 300;
    transition: all 0.3s ease;
    display: block;
    margin-top: 10px;
}

.content-foo a:hover {
    color: #f0f0f0;
    text-decoration: underline;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}
.fa-brands.fa-whatsapp {
    font-size: 24px;
    color: #fff;
    transition: all 0.3s ease;
}

.fa-brands.fa-whatsapp:hover {
    color: #25D366;
    transform: scale(1.1);
}
.fa-solid.fa-envelope {
    font-size: 24px;
    color: #fff;
    transition: all 0.3s ease;
}

.fa-solid.fa-envelope:hover {
    color: #f2a60c; /* puedes cambiarlo por el color que quieras al pasar el mouse */
    transform: scale(1.1);
}

.fab.fa-instagram {
    font-size: 24px;
    color: #fff;
    transition: all 0.3s ease;
}

.fab.fa-instagram:hover {
    color: #e1306c;
    transform: scale(1.1);
}

.titulo-final {
    text-align: center;
    font-size: 16px;
    margin: 30px 0 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}
/* Añade esto al final de tu CSS, antes de los media queries */
.contenedor-buscador-principal {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 0;
}
/* Media Queries */
@media screen and (max-width: 1200px) {
    .textos-header h1 {
        font-size: 50px;
    }
    
    .textos-header h2 {
        font-size: 35px;
    }
    
    .titulo {
        font-size: 40px;
    }
}

@media screen and (max-width: 900px) {
    .menu-icon {
        display: block;
    }
    
    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(3, 30, 78, 0.767);
        position: absolute;
        top: 80px;
        right: 0;
        z-index: 100;
        padding: 20px;
        border-radius: 0 0 10px 10px;
    }
    
    .menu.active {
        display: flex;
    }
    
    nav > a {
        display: block;
        margin: 10px 0;
        text-align: center;
    }
    
    .textos-header h1 {
        font-size: 33px;
    }
    
    .textos-header h2 {
        font-size: 22px;
    }
    
    .contenedor-sobre-nosotros {
        flex-direction: column;
    }
    
    .imagen-about-us {
        margin: 0 auto 30px;
    }
    
    .contenido-textos {
        padding: 0 20px;
    }
    
    .pdf-item {
        width: 120px;
    }
    
    .pdf-item img {
        height: 150px;
    }
    
    .pdf-item a {
        font-size: 12px;
        padding: 8px;
    }
}

@media screen and (max-width: 600px) {
    .textos-header h1 {
        font-size: 33px;
    }
    
    .textos-header h2 {
        font-size: 22px;
    }
    
    .titulo {
        font-size: 30px;
        margin-bottom: 30px;
    }
    
    .contenido-textos h3 {
        font-size: 20px;
    }
    
    .contenido-textos p {
        font-size: 16px;
    }
    
    .pdf-item {
        width: 100px;
    }
    
    .pdf-item img {
        height: 120px;
    }
    
    .pdf-item a {
        font-size: 11px;
    }
    
    .container label {
        font-size: 16px;
    }
    
    .custom-file-input {
        max-width: 100%;
    }
    
    input[type="number"] {
        max-width: 100%;
    }
}

@media screen and (max-width: 400px) {
    .textos-header h1 {
        font-size: 33px;
    }
    
    .textos-header h2 {
        font-size: 22px;
    }
    
    .pdf-item {
        width: 80px;
    }
    
    .pdf-item img {
        height: 100px;
    }
    
    .pdf-item a {
        font-size: 10px;
        padding: 5px;
    }
}
