/* Reset y tipografía */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #3A913F;
    color: white;
    padding: 15px 20px;
    flex-wrap: wrap;
    border-bottom: 2px solid #ccc;
}

header h1 {
    flex: 1;
    text-align: center;
    font-size: 22px;
}

.logo-izquierdo img,
.logo-derecho img {
    height: 110px;
    width: auto;
    object-fit: contain;
}


nav {
    background-color: #2f7a34;
    padding: 10px 0;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
}

nav li {
    margin: 0 15px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}

nav a:hover {
    color: #F9A825;
    text-decoration: underline;
}

main {
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

section {
    margin-bottom: 40px;
}

h2 {
    font-size: 28px;
    color: #004080;
    text-align: center;
    margin-bottom: 20px;
}

h3 {
    color: #3A913F;
    font-size: 22px;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

blockquote.quote {
    background-color: #f0f8f0;
    padding: 20px;
    font-style: italic;
    border-left: 5px solid #3A913F;
    border-radius: 8px;
    margin: 20px 0;
    color: #555;
}

.inicio-fotos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.inicio-fotos img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.foto-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.foto-section img {
    max-width: 300px;
    width: 100%;
    border-radius: 8px;
}

.foto-section .texto {
    flex: 1;
    min-width: 250px;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Fuerza 3 columnas */
    gap: 16px;
    margin-top: 20px;
    padding: 0 10px;
    justify-content: center;
}



.valor-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid #3A913F;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(40px);
}

.valor-item h4 {
    font-size: 17px;
    color: #2f7a34;
    margin-bottom: 10px;
}

.valor-item p {
    font-size: 14px;
    color: #444;
    line-height: 1.4;
}

.valor-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Animación visible */
.valor-item.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.7s ease-in-out;
}

.contacto-info,
.galeria-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.valor-item,
.contacto-card {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #3A913F;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.valor-item h4,
.contacto-card h4 {
    margin-bottom: 10px;
    color: #3A913F;
}

.galeria-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.galeria-grid img:hover {
    transform: scale(1.05);
}

form {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

input,
textarea,
select {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

button {
    background-color: #3A913F;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

button:hover {
    background-color: #F9A825;
    color: #000;
}

footer {
    background-color: #f0f0f0;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    margin-top: 40px;
    border-top: 2px solid #ccc;
}

.whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 999;
}

.whatsapp img {
    width: 32px;
    height: 32px;
    filter: invert(1);
}

@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
    }
    nav ul {
        flex-direction: column;
    }
    .foto-section {
        flex-direction: column;
    }
    .inicio-fotos {
        flex-direction: column;
    }
}

@media screen and (max-width: 768px) {
    .valores-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive */
    }
}


/* Galería - slider automático */
.slider-container {
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.slider-track {
    display: flex;
    width: calc(300px * 9); /* cantidad de imágenes */
    animation: scrollSlider 90s linear infinite;
}

.slider-track img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
    margin-right: 10px;
    border-radius: 8px;
}

@keyframes scrollSlider {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-150%);
    }
}

/* Galería - videos */
.galeria-videos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.galeria-videos video {
    width: 320px;
    height: 180px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in-up.show {
    opacity: 1;
    transform: translateY(0);
}

#buzon {
  background: linear-gradient(to right, #f8fbff, #f2fff7);
  padding: 40px 30px;
  border-radius: 18px;
  margin: 60px auto;
  max-width: 700px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-left: 8px solid #3A913F;
}

#buzon h2 {
  color: #004080;
  text-align: center;
  font-size: 28px;
  margin-bottom: 10px;
}

#buzon p {
  text-align: center;
  font-size: 16px;
  margin-bottom: 30px;
  color: #444;
}

.formulario-buzon label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: #2f5d2f;
}

.formulario-buzon input,
.formulario-buzon select,
.formulario-buzon textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 20px;
  border-radius: 10px;
  border: 2px solid #cce0d9;
  transition: all 0.3s ease-in-out;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
}

.formulario-buzon input:focus,
.formulario-buzon select:focus,
.formulario-buzon textarea:focus {
  outline: none;
  border-color: #3A913F;
  box-shadow: 0 0 8px rgba(58, 145, 63, 0.3);
  background-color: #f8fff8;
}

.formulario-buzon button {
  display: block;
  margin: auto;
  margin-top: 10px;
  background-color: #004080;
  color: #fff;
  font-weight: bold;
  padding: 12px 30px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.formulario-buzon button:hover {
  background-color: #3A913F;
  transform: scale(1.05);
}

.exito {
  margin-top: 25px;
  text-align: center;
  background-color: #dff0d8;
  padding: 18px;
  border-radius: 10px;
  font-weight: bold;
  color: #2d662d;
  border-left: 6px solid #3A913F;
}

#Talento\ Humano {
    padding: 40px 20px;
    background-color: #f8f8f8;
    text-align: center;
}

#Talento\ Humano h2 {
    font-size: 30px;
    margin-bottom: 10px;
    color: #004080;
}

#Talento\ Humano p {
    margin-bottom: 30px;
}

.talento-fotos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.talento-fotos img {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.talento-fotos img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

section {
    margin-bottom: 80px;
}

#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(255,255,255,0.3);
}

#lightbox span#cerrar {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s;
}

#lightbox span#cerrar:hover {
    transform: scale(1.2);
}

#lightbox.visible {
    visibility: visible;
    opacity: 1;
}
