/* estilos_mod.css - responsive + header degradado + menu slide */
:root{
	--verde:#0c8a3c;
	--menta:#A3D9BA;
	--blanco:#ffffff;
	--sombra: 0 6px 18px rgba(10,10,20,0.06);
}
  
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
	font-family: 'Calibri', sans-serif;
	background:#f5f5f5;
	color:#222;
	min-height:100vh;
	display:flex;
	flex-direction:column;
}

/* Header degradado con shadow y fade-in */
.site-header{
	background: linear-gradient(90deg,var(--menta),var(--verde));
	color:var(--blanco);
	padding:14px 16px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
	animation: headerFade 0.8s ease;
}
@keyframes headerFade{from{opacity:0;transform:translateY(-6px)} to{opacity:1;transform:none}}

.wrap{max-width:1100px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{display:flex;align-items:center;gap:12px}
.brand img#logo{height:48px;width:auto;display:block}
.site-title{font-size:1.15rem;font-weight:600;color:var(--blanco)}

/* Botón de menú */
.menu-button{background:transparent;border:0;color:var(--blanco);display:flex;align-items:center;gap:8px;font-size:2rem;cursor:pointer}
.menu-button .hamburger{font-size:1.35rem}
.menu-button .menu-label{display:inline-block}

/* Mobile menu (slide) */
.mobile-menu{
	position:fixed;top:0;right:-320px;width:320px;height:100vh;background:#fff;
	box-shadow:-6px 0 24px rgba(0,0,0,0.2);z-index:1200;padding:18px;
	transition:transform .33s ease;transform:translateX(0);
}
.mobile-menu.open{transform:translateX(-320px)}
.mobile-menu .menu-close{background:transparent;border:0;font-size:1rem;cursor:pointer;margin-bottom:12px}
.mobile-menu ul{list-style:none;padding:80px 0;display:flex;flex-direction:column;gap:20px;font-size:1.5rem}
.mobile-menu a{color:var(--verde);text-decoration:none;font-weight:600}

/* Overlay */
.overlay{position:fixed;inset:0;background:rgba(0,0,0,0.4);z-index:1100;}

/* Main content */
.container{max-width:1100px;margin:18px auto;padding:18px;background:#fff;border-radius:8px;box-shadow:var(--sombra)}
.site-main img{max-width:100%;height:auto;border-radius:8px}

/* IMAGEN INICIAL */
.imageninicial{
	width:400px;
	height:100px;
	display:block;
	margin:auto;
	animation: animacionimageninicial 1s ease-out;
}

@keyframes animacionimageninicial {
	from {
		opacity: 0;
		transform: translateX(-100px);
	}
	to{
		opacity: 1;
		transform: translateX(0);
	}
	
}

/*FIN IMAGEN INICIAL*/

/*CONTADOR DE VISITAS */

.contador-visitas-box {
	width: 180px;
	margin: 40px auto;
	padding: 20px;
	text-align: center;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.15);
	font-family: 'Poppins', sans-serif;
	transition: transform .3s;
  }
  
  .contador-visitas-box:hover {
	transform: scale(1.05);
  }
  
  .contador-icono {
	font-size: 32px;
	margin-bottom: 8px;
  }
  
  .contador-texto {
	font-size: 16px;
	color: #666;
	letter-spacing: 1px;
  }
  
  .contador-numero {
	font-size: 32px;
	font-weight: bold;
	color: #222;
	margin-top: 5px;
  }
  
/*FINAL CONTADOR DE VISITAS*/

/* Footer */
footer{margin-top:auto;background:#093f2a;color:#159541;padding:16px 12px}
.footer-inner{max-width:1100px;margin:0 auto;display:flex;justify-content:space-between;align-items:center;gap:12px}
.footer-left{font-size:0.95rem}
.footer-right{font-size:0.95rem}

/* === Footer base (mantiene tu estilo actual) === */
footer {
	margin-top: auto;
	background: #093f2a;
	color: #159541;
	padding: 16px 12px;
  }
  
  .footer-inner {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
  }
  
  .footer-left {
	font-size: 0.95rem;
  }
  
  .footer-right {
	font-size: 0.95rem;
	text-align: right;
  }
  
  /* === Mejora WhatsApp === */
  .whatsapp-link {
	display: inline-flex;
	align-items: center;
	color: #159541; /* color WhatsApp */
	text-decoration: none;
	font-weight: 600;
	transition: transform 0.3s ease, color 0.3s ease;
  }
  
  .whatsapp-link:hover {
	transform: scale(1.05);
	color: #159541;
  }
  
  /* === Imagen WhatsApp === */
  .whatsapp-icon {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	object-fit: cover;
	margin-right: 6px;
	transition: transform 0.3s ease;
  }
  
  .whatsapp-link:hover .whatsapp-icon {
	transform: rotate(10deg) scale(1.1);
  }
  
  /* === Responsive footer === */
  @media (max-width: 768px) {
	.footer-inner {
	  flex-direction: column;
	  text-align: center;
	}
  
	.footer-left,
	.footer-right {
	  font-size: 0.9rem;
	}
  
	.whatsapp-icon {
	  width: 18px;
	  height: 18px;
	}
  }
  
  @media (max-width: 480px) {
	.footer-inner {
	  gap: 8px;
	}
  
	.footer-left,
	.footer-right {
	  font-size: 0.85rem;
	}
  
	.whatsapp-icon {
	  width: 16px;
	  height: 16px;
	}
  }
/*FINAL FOOTER	*/  

/* ============================================
   🎡 CAROUSEL UNIFICADO — OPTIMIZADO
   Fondo borroso + Contenedor más alto
   Imágenes sin recorte + Responsive
============================================ */

/* ===========================
   CONTENEDOR DEL CAROUSEL
=========================== */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 30px auto;
    overflow: hidden;
    border-radius: 18px;

    /* 🎯 Ajuste del alto — más alargado sin dañar imágenes */
    height: 420px;        /* <-- AQUI CAMBIAS EL ALTO */
    max-height: 450px;

    /* Se mantiene solo como fallback */
    aspect-ratio: unset;
}

/* ===========================
   TRACK
=========================== */
.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.7s ease-in-out;
}

/* ===========================
   SLIDE
=========================== */
.carousel-slide {
    position: relative;
    min-width: 100%;
    height: 100%;
}

/* Fondo borroso */
.carousel-slide .bg-blur {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(20px) brightness(0.8);
    transform: scale(1.2);
    z-index: 1;
}

/* Imagen principal (encima) */
.carousel-slide .main-img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain; /* 🎯 CLAVE → No corta la imagen */
    z-index: 2;
    padding: 0;
}

/* ===========================
   BOTONES
=========================== */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(0,0,0,0.35);
    border: none;
    color: white;
    font-size: 35px;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s;
}

.carousel-btn:hover {
    background: rgba(0,0,0,0.5);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

/* ===========================
   RESPONSIVE MÓVIL
=========================== */
@media (max-width: 768px) {
    .carousel-container {
        height: 280px; /* Ajuste perfecto para móviles */
    }

    .carousel-btn {
        font-size: 28px;
        padding: 8px 12px;
    }
}

/* FINAL CAROUSEL*/

/*CONTACTANOS*/
/* ========================
   SECCIÓN CONTÁCTANOS
======================== */

/* Título */
.contactanostitulo {
	font-family: 'calibri';
	font-size: 40px;
	font-weight: bold;
	color: #159541;
	text-align: center;
	margin: 30px 0;
	animation: fadeDown 1s ease forwards;
  }
  
  /* Contenedor principal */
  .contactanos-contenido {
	display: flex;
	gap: 35px;
	align-items: flex-start;
	justify-content: center;
	margin-top: 30px;
	flex-wrap: wrap;
  }
  
  /* Imagen */
  .contactanos-imagen {
	width: 420px;
	max-width: 100%;
	border-radius: 15px;
	animation: fadeLeft 1s ease forwards;
	box-shadow: 0 4px 12px rgba(0,0,0,.15);
  }
  
  /* Textos */
  .contactanos-textos {
	max-width: 480px;
	width: 100%;
  }
  
  .contactanosparrafo {
	font-family: 'calibri';
	font-size: 19px;
	text-align: justify;
	color: #333;
	margin-bottom: 18px;
	animation: fadeRight 1s ease forwards;
  }
  
  /* BOTÓN WHATSAPP GRANDE */
/* Ajustar botón de WhatsApp al mismo tamaño que Facebook/Instagram */
.whatsapp-boton {
    width: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 14px 18px;
    font-size: 22px;
    font-family: 'calibri';
    font-weight: bold;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    background-color: #25D366;
    transition: .3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    margin: 0 auto; /* Centrar como los otros botones */
}

.whatsapp-boton:hover {
    background-color: #1ebe5d;
}

.whatsapp-boton-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

/* Responsive para móvil */
@media (max-width: 480px) {
    .whatsapp-boton {
        width: 100%;
        font-size: 20px;
        padding: 12px 16px;
    }
    .whatsapp-boton-icon {
        width: 36px;
        height: 36px;
    }
}


  /* FormulariO */
.contact-form{display:flex;flex-direction:column;gap:12px;max-width:720px}
.contact-form label{display:flex;flex-direction:column;font-weight:600;color:#1b4b36}
.contact-form input,.contact-form textarea{padding:10px;border:1px solid #e6eef2;border-radius:6px;font-size:0.95rem}
.required{color:#c0392b;font-weight:700;margin-left:6px}
.btn-submit{background:var(--verde);color:var(--blanco);padding:10px 16px;border-radius:8px;border:0;font-weight:700;cursor:pointer;transition:background .25s}
.btn-submit:hover{background:var(--menta)}
.form-status{margin-top:8px;color:#0b6b3f;font-weight:600}

  /* FORMULARIO CENTRADO */
  .contact-form {
	max-width: 700px;
	width: 100%;
	margin: 45px auto;
	padding: 20px 30px;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0,0,0,.1);
  }

  /* ===========================
   ANIMACIÓN DEL FORMULARIO
=========================== */

/* Estado inicial (antes de entrar) */
.contact-form {
	opacity: 0;
	transform: translateY(40px);
	animation: formFadeUp 1.2s ease forwards;
	animation-delay: 0.4s; /* aparece después del contenido superior */
  }
  
  /* Keyframes */
  @keyframes formFadeUp {
	from {
	  opacity: 0;
	  transform: translateY(40px);
	}
	to {
	  opacity: 1;
	  transform: translateY(0);
	}
  }
  
  
  /* Animaciones */
  @keyframes fadeLeft {
	from { opacity:0; transform:translateX(-40px); }
	to   { opacity:1; transform:translateX(0); }
  }
  
  @keyframes fadeRight {
	from { opacity:0; transform:translateX(40px); }
	to   { opacity:1; transform:translateX(0); }
  }
  
  @keyframes fadeDown {
	from { opacity:0; transform:translateY(-40px); }
	to   { opacity:1; transform:translateY(0); }
  }
  
  @keyframes fadeIn {
	from { opacity:0; }
	to   { opacity:1; }
  }
  
  /* ======================================================
	 RESPONSIVE COMPLETO – ADAPTADO A TODOS LOS DISPOSITIVOS
  ====================================================== */
  
  /* Tablets vertical / Celulares grandes */
  @media (max-width: 1024px) {
	.contactanostitulo {
	  font-size: 34px;
	}
	.contactanos-imagen {
	  width: 350px;
	}
  }
  
  /* Celulares medianos */
  @media (max-width: 768px) {
  
	.contactanos-contenido {
	  flex-direction: column;
	  text-align: center;
	}
  
	.contactanos-imagen {
	  width: 90%;
	  margin: 0 auto;
	}
  
	.contactanos-textos {
	  max-width: 100%;
	}
  
	.whatsapp-boton {
	  font-size: 26px;
	  padding: 16px 24px;
	  justify-content: center;
	}
  
	.whatsapp-boton-icon {
	  width: 50px;
	  height: 50px;
	}
  
	.contactanosparrafo {
	  font-size: 18px;
	}
  
	.contact-form {
	  padding: 20px;
	}
  }
  
  /* Celulares pequeños */
  @media (max-width: 480px) {
  
	.contactanostitulo {
	  font-size: 28px;
	}
  
	.contactanos-imagen {
	  width: 100%;
	}
  
	.whatsapp-boton {
	  font-size: 22px;
	  padding: 14px 20px;
	  border-radius: 10px;
	}
  
	.whatsapp-boton-icon {
	  width: 45px;
	  height: 45px;
	}
  
	.contactanosparrafo {
	  font-size: 17px;
	}
  
	.contact-form {
	  padding: 15px;
	}
  
  }
  
/* --- Centrar textos respecto a la imagen --- */
.contactanos-contenido {
	display: flex;
	gap: 35px;
	align-items: center;      /* CAMBIADO — centra verticalmente */
	justify-content: center;
	flex-wrap: wrap;
  }
  
  /* --- Centrar textos en móviles y tablets --- */
  @media (max-width: 768px) {
	.contactanos-textos {
	  text-align: center;     /* CENTRAR TEXTO */
	}
  }
  
  /* --- Centrar el botón de WhatsApp --- */
  .whatsapp-boton {
	display: flex;
	margin: 0 auto;           /* CENTRADO */
	justify-content: center;
  }
  
  /* --- Texto agregado antes del formulario --- */
  .texto-formulario-info {
	text-align: center;
	font-family: 'calibri';
	font-size: 20px;
	color: #1b4b36;
	margin-top: 40px;
	margin-bottom: 15px;
	font-weight: bold;
  }
  
  /* --- Asegurar que el formulario no se desborde y quede centrado --- */
  .contact-form {
	margin-left: auto !important;
	margin-right: auto !important;
  }
  
  /* --- Ajustes adicionales para móviles pequeños --- */
  @media (max-width: 480px) {
  
	.contactanos-textos {
	  text-align: center;
	}
  
	.whatsapp-boton {
	  width: 100%;
	  justify-content: center;
	}
  
	.texto-formulario-info {
	  font-size: 18px;
	}
  }
  
/* =======================
   BOTONES DE REDES SOCIALES
======================= */
.redes-sociales {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
    align-items: center;
}

/* Botones */
.btn-red {
    width: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 14px 18px;
    font-size: 22px;
    font-family: 'calibri';
    font-weight: bold;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    transition: .3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* Facebook */
.btn-red.facebook {
    background-color: #1877f2;
}
.btn-red.facebook:hover {
    background-color: #0e5bd1;
}

/* Instagram */
.btn-red.instagram {
    background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af);
}
.btn-red.instagram:hover {
    opacity: 0.85;
}

.btn-red img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .btn-red {
        width: 100%;
        font-size: 20px;
        padding: 12px 16px;
    }

    .btn-red img {
        width: 36px;
        height: 36px;
    }
}



/*FIN CONTACTANOS*/

/* === PATROCINADORES === */
.titulopatrocinadores{
	font-family:'calibri';
	font-size:50px;
	font-weight:bold;
	text-align:center;
	color:#0c8a3c;
	margin-bottom: 10px;
}
.textopatrocinadores{
	font-family:'calibri';
	font-size:20px;
	text-align:center;
	color:#000000;
	width:70%;
	margin-inline-start:15%;
	object-fit:contain;
	text-align:justify;
	margin-bottom: 20px;
}

/* === ANIMACIÓN PATROCINADORES (aparición uno por uno al hacer scroll) === */
.imgpatrocinadores {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 90px;
	margin-top: 30px;
	margin-bottom: 30px;
  }
  
  .imgpatrocinadores img {
	width: 150px;
	height: auto;
	opacity: 0;
	transform: translateY(30px);
	transition: all 0.8s ease;
  }
  
  .imgpatrocinadores img.visible {
	opacity: 1;
	transform: translateY(0);
  }
  

/*FIN PATROCINADORES*/

/*VIDEO*/
/* === VIDEO RESPONSIVO + ANIMACIÓN DE ENTRADA === */

/* Contenedor del video responsivo */
.video {
	position: relative;
	padding-bottom: 56.25%; /* relación 16:9 */
	height: 0;
	overflow: hidden;
	max-width: 100%;
	background: #000;
	border-radius: 12px;
	animation: fadeInVideo 1.2s ease-out; /* animación de entrada */
	margin-bottom: 3%;
  }
  
  /* Iframe ajustable */
  .video iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
	border-radius: 12px;
  }
  
  /* Animación de entrada */
  @keyframes fadeInVideo {
	from {
	  opacity: 0;
	  transform: translateY(40px);
	}
	to {
	  opacity: 1;
	  transform: translateY(0);
	}
  }
  
  /* Adaptación extra para móviles */
  @media (max-width: 600px) {
	.video {
	  padding-bottom: 60%; /* más alto en pantallas pequeñas */
	}
  }
  
/*FIN VIDEO*/

/* === TEXTOS FINALES === */
/* === TEXTOS FINALES === */
.titulotextofinal {
	font-family: 'calibri';
	font-size: 25px;
	font-weight: bold;
	color: #0c8a3c;
	margin-left: 0%;
	text-align: center;
  }
  
  .textofinal {
	font-family: 'calibri';
	font-size: 15px;
	font-weight: bold;
	color: #000000;
	margin-left: 0%;
	text-align: justify;
  }
  
  .imagentextofinal {
	width: 300px;
	height: 100px;
	margin: 20px auto;
	display: block;
	text-align: center;
  }
  
  /* === ADAPTACIÓN PARA DISPOSITIVOS MÓVILES === */
  @media (max-width: 768px) {
	.titulotextofinal {
	  font-size: 20px;
	  text-align: center;
	}
  
	.textofinal {
	  font-size: 14px;
	  text-align: justify;
	}
  
	/* Contenedor flexible para que la imagen quede debajo del texto */
	.contenedor-textofinal {
	  display: flex;
	  flex-direction: column;   /* coloca texto encima e imagen debajo */
	  align-items: center;
	  text-align: center;
	}
  
	.imagentextofinal {
	  order: 2;                 /* asegura que la imagen quede debajo */
	  width: 80%;
	  height: auto;
	  margin: 15px auto;
	  display: block;
	  text-align: center;
	}
  }
  
  @media (max-width: 480px) {
	.titulotextofinal {
	  font-size: 18px;
	}
  
	.textofinal {
	  font-size: 13px;
	}
  
	.imagentextofinal {
	  width: 90%;
	}
  }
  

  /*fin textos finales*/

/* === QUIENES SOMOS (NUEVO Y RESPONSIVE) === */
/* === QUIENES SOMOS === */
.quienes-somos {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 60px; /* separación entre imagen y texto */
	margin: 60px 0;
  }
  
  .image-container-quienes {
	flex: 1 1 400px;
	max-width: 500px;
	position: relative;
	overflow: hidden;
	border-radius: 12px;
  }
  
  .image-container-quienes img {
	width: 200%;
	height: auto;
	border-radius: 12px;
	opacity: 0.8; /* transparencia */
	display: block;
	transition: transform 0.5s ease, opacity 0.5s ease;
  }
  
  .image-container-quienes img:hover {
	transform: scale(1.05);
	opacity: 0.9;
  }
  
  /* Texto centrado encima de la imagen */
  .text-overlay {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 90%; /* 🔹 asegura que el texto no se salga en móviles */
	text-align: center;
	background-color: rgba(0, 0, 0, 0.6);
	color: #F2BC1B;
	padding: 10px 20px;
	border-radius: 8px;
  }
  
  .text-overlay h1 {
	font-size: 2rem;
	margin: 0;
	letter-spacing: 1px;
  }
  
  /* Texto al lado de la imagen */
  .text-overlay-lado {
	flex: 1 1 400px;
	max-width: 600px;
	text-align: justify;
	color: #000;
	padding: 10px 20px;
  }
  
  .text-overlay-lado h1 {
	font-size: 1.1rem;
	font-weight: normal;
	line-height: 1.6;
  }
  
  .imagen-vision {
	width: 50%;
	height: 50%;
	display: block;
	margin: 0 auto;
	margin-bottom: 30px;
  }
  
  /* === ANIMACIÓN SUAVE PARA IMAGEN Y TEXTO (PC Y MÓVIL) === */
  .imagen-vision,
  .text-overlay-lado {
	opacity: 0;
	transform: translateY(40px);
	transition: all 1s ease-out;
  }
  
  .imagen-vision.visible,
  .text-overlay-lado.visible {
	opacity: 1;
	transform: translateY(0);
  }
  
  /* --- Ajustes para móviles --- */
  @media (max-width: 768px) {
	.imagen-vision,
	.text-overlay-lado {
	  transform: translateY(30px); /* desplazamiento un poco menor */
	  transition: all 1.2s ease-out; /* animación más suave */
	}
  }
  
  /* === Ajuste visual y animación para el texto lateral (Quienes Somos) === */
  .text-overlay-lado p {
	line-height: 2; /* 🔹 Más espacio entre líneas */
  }
  
  /* Animación de entrada suave (desde la izquierda con fade-in) */
  @keyframes slideInText {
	from {
	  opacity: 0;
	  transform: translateX(-50px);
	}
	to {
	  opacity: 1;
	  transform: translateX(0);
	}
  }
  
  .text-overlay-lado {
	animation: slideInText 1.2s ease-out both;
  }
  
  /* === Ajuste centrado y responsividad del texto sobre la imagen === */
  @media (max-width: 768px) {
	.image-container-quienes img {
	  width: 100%; /* 🔹 evita que la imagen se desborde */
	  height: auto;
	}
  
	.text-overlay {
	  top: 50%;
	  transform: translate(-50%, -50%);
	  padding: 8px 12px;
	}
  
	.text-overlay h1 {
	  font-size: 1.5rem; /* 🔹 reduce tamaño para que se mantenga centrado */
	}
  
	.quienes-somos {
	  flex-direction: column;
	  gap: 30px; /* 🔹 espacio más armónico en pantallas pequeñas */
	  text-align: center;
	}
  
	.text-overlay-lado {
	  max-width: 90%;
	  padding: 0 10px;
	  animation: slideInText 1.2s ease-out both;
	}
  }
  

/* === Animación profesional para imagen Misión & Visión === */
.imagen-mision-vision {
    width: 100%;
    max-width: 1100px; /* evita que se vea gigante en pantallas grandes */
    display: block;
    margin: 40px auto;
    border-radius: 12px;

    opacity: 0;
    transform: translateY(50px);
    transition: all 1.3s ease;
}

/* Cuando la imagen entra en pantalla */
.imagen-mision-vision.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ajustes para móviles */
@media (max-width: 768px) {
    .imagen-mision-vision {
        transform: translateY(30px);
        transition: all 1.4s ease;
        border-radius: 10px;
    }
}


  /*FINAL QUIENES SOMOS*/

/* ================================================
   ANIMACIONES Y ADAPTACIÓN DE IMÁGENES EN SERVICIOS
   ================================================ */

/* Animación general */
.fade-up,
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.fade-up.visible,
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   IMÁGENES PRINCIPALES (Portafolio y similares)
   ================================================ */

.imagenservicios {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  margin: 20px auto;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.9s ease-out;
}

.imagenservicios.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   IMAGEN DE NIÑA (MATERIAL EDUCATIVO)
   ================================================ */

.imagen-empresa2 {
  width: 900px;
  height: auto;
  float: right;
  margin: 10px 0 10px 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.imagen-empresa2:hover {
  transform: scale(1.08);
}

@media (max-width: 768px) {
  .imagen-empresa2 {
    width: 100%;
    float: none;
    display: block;
    margin: 20px auto;
  }
}

/* ================================================
   BLOQUES DE SERVICIOS
   ================================================ */

.servicio-bloque {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 60px 0;
  flex-wrap: wrap;
}

.servicio-bloque.material-derecha {
  flex-direction: row-reverse !important;
}

/* Imagen dentro del bloque */
.imagen-empresa {
  width: 45%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  margin: 0 auto 25px auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.5s ease;
}

.imagen-empresa:hover {
  transform: scale(1.03);
}

/* Texto del bloque */
.servicio-texto {
  width: 48%;
  font-size: 1.15rem;
  line-height: 1.6;
  text-align: justify;
}

/* Títulos */
.titulopatrocinadores {
  font-size: 2.2rem;
  font-weight: 700;
  color: #159541;
  margin-bottom: 15px;
  text-align: center;
}

/* ================================================
   BLOQUE CENTRADO (Asesorías y Consultorías)
   ================================================ */

.servicio-bloque-centro {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 50px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  padding: 0 40px;
}

.servicio-bloque-centro .servicio-texto {
  width: 100%;
  max-width: 1000px;
}

/* ================================================
   GALERÍA DE SERVICIOS
   ================================================ */

.servicios-galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 35px;
  margin-top: 60px;
  justify-items: center;
}

.servicio-item {
  text-align: center;
  max-width: 400px;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  padding: 20px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: transform 0.6s ease, box-shadow 0.6s ease, opacity 0.8s ease-out;
  opacity: 0;
  transform: translateY(50px);
}

.servicio-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.servicio-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
  transition: transform 0.4s ease;
}

.servicio-item:hover img {
  transform: scale(1.05);
}

.servicio-item p {
  font-size: 1.25rem;
  color: #159541;
  font-weight: 600;
  margin: 10px 0 0;
  text-align: center;
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 992px) {
  .servicio-bloque {
    flex-direction: column;
    text-align: center;
  }

  .servicio-texto,
  .imagen-empresa {
    width: 100%;
  }

  .titulopatrocinadores {
    font-size: 2rem;
  }

  .servicios-galeria {
    grid-template-columns: 1fr;
  }

  .servicio-item img {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .servicio-bloque,
  .servicio-bloque.material-derecha {
    flex-direction: column !important;
    text-align: center;
  }

  .imagen-empresa {
    width: 100%;
    max-width: 95%;
  }

  .servicio-texto {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .imagen-empresa {
    max-width: 100%;
  }

  .titulopatrocinadores {
    font-size: 1.6rem;
  }

  .textopatrocinadores {
    font-size: 1rem;
  }
}


/* FINAL SERVICIOS*/


/* --- Responsive --- */
@media (max-width:768px){
	.quienes-somos{flex-direction:column;text-align:center;}
	.text-overlay-lado h1{font-size:1rem;}
}

/* === GALERÍA DE IMÁGENES campañas - ESTILO DEPARTAMENTO DE SALUD === */
#galeria {
	text-align: center;
	margin: 60px auto;
	width: 90%;
	max-width: auto;
  }
  
  .titulo-galeria {
	color: #0c8a3c;
	font-size: 2em;
	font-weight: bold;
	margin-bottom: 25px;
	text-transform: uppercase;
	letter-spacing: 1px;
  }
  
  .galeria-contenedor {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 15px;
  }
  
  .galeria-contenedor img {
	width: 70%;
	border-radius: 12px;
	cursor: pointer;
	opacity: 0;
	transform: scale(0.9);
	transition: all 0.8s ease;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  
  .galeria-contenedor img.visible {
	opacity: 1;
	transform: scale(1);
  }
  
  /* --- Modal --- */
  /* --- Modal --- */
.modal-galeria {
	display: none;
	position: fixed;
	z-index: 300;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(17, 17, 17, 0.9);
	justify-content: center;
	align-items: center;
	animation: fadeInModal 0.3s ease;
	backdrop-filter: blur(6px);
}

@keyframes fadeInModal {
	from { background-color: rgba(17, 17, 17, 0); }
	to { background-color: rgba(17, 17, 17, 0.9); }
}

.contenido-modal {
	position: relative;
	max-width: 90%;
	max-height: 90%;
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
	transform: scale(0.8);
	transition: all 0.4s ease;
}

.modal-galeria.show .contenido-modal {
	opacity: 1;
	transform: scale(1);
}

.contenido-modal img {
	width: auto;
	max-width: 90vw;
	max-height: 80vh;
	border-radius: 10px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
	object-fit: contain;
	transition: transform 0.3s ease-in-out;
}

.cerrar-modal {
	position: absolute;
	top: 15px;
	right: 20px;
	font-size: 36px;
	cursor: pointer;
	color: #fff;
	font-weight: bold;
	text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
	transition: color 0.3s ease, transform 0.2s ease;
}

.cerrar-modal:hover {
	color: #0c8a3c;
	transform: scale(1.1);
}

.nav-galeria {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(12, 138, 60, 0.4);
	border: none;
	color: #fff;
	font-size: 2.2rem;
	padding: 12px 18px;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.3s ease, transform 0.3s ease;
}

.nav-galeria:hover {
	background: rgba(12, 138, 60, 0.8);
	transform: scale(1.15);
}

.prev { left: 30px; }
.next { right: 30px; }

/* === Responsivo === */
@media (max-width: 768px) {
	.contenido-modal img {
		max-width: 95vw;
		max-height: 70vh;
	}
	.nav-galeria {
		font-size: 1.8rem;
		padding: 8px 12px;
	}
	.prev { left: 15px; }
	.next { right: 15px; }
}

  
.enlace-descarga {
	position: absolute;
	bottom: 25px; /* 🔹 Lo ubica en la parte inferior del modal */
	left: 50%;
	transform: translateX(-50%);
	z-index: 25;
	text-decoration: none;
	background-color: #0c8a3c;
	color: #fff;
	font-weight: 600;
	border-radius: 8px;
	padding: 10px 20px;
	transition: background 0.3s ease, transform 0.2s ease;
}

/* Efecto hover */
.enlace-descarga:hover {
	background-color: #0ea94b;
	transform: scale(1.05);
}

/* === Ajuste responsivo === */
@media (max-width: 768px) {
	.enlace-descarga {
		bottom: 15px;
		padding: 8px 16px;
		font-size: 0.9rem;
	}
}


/* === CAMPANA ACTUAL DESTACADA === */
.campana-actual {
	position: relative;
	text-align: center;
	margin-bottom: 60px;
	animation: fadeInUp 1.2s ease-out;
  }
  
  .campana-actual .img-actual {
	width: 90%;
	max-width: 900px;
	border-radius: 16px;
	box-shadow: 0 6px 18px rgba(0,0,0,0.3);
	cursor: pointer;
	opacity: 0;
	transform: scale(0.9);
	transition: all 0.9s ease;
	display: block;
	margin: 0 auto;
  }
  
  .campana-actual .img-actual.visible {
	opacity: 1;
	transform: scale(1);
  }
  
  .titulo-actual {
	font-family: 'calibri';
	font-size: 2.2rem;
	font-weight: bold;
	color: #0c8a3c;
	margin-bottom: 15px;
  }
  
  /* === TÍTULO DE CAMPAÑAS ANTERIORES === */
  .titulo-anteriores {
	font-family: 'calibri';
	font-size: 1.8rem;
	font-weight: bold;
	color: #0c8a3c;
	margin: 40px 0 20px;
	text-align: center;
	animation: fadeIn 1.5s ease;
  }
  
  /* === Animaciones === */
  @keyframes fadeInUp {
	from { opacity: 0; transform: translateY(40px); }
	to { opacity: 1; transform: translateY(0); }
  }
  
  @keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
  }
  

  /* === Tooltip en imágenes de la galería de campañas === */
.galeria-contenedor img {
	position: relative;
	display: inline-block;
	cursor: pointer;
  }
  
  /* Mensaje oculto por defecto */
  .galeria-contenedor img::after {
	content: "Haz clic aquí para descargar archivo";
	position: absolute;
	bottom: 10px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	padding: 6px 10px;
	border-radius: 6px;
	font-size: 0.9rem;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease, transform 0.3s ease;
	z-index: 2;
  }
  
  /* Mostrar el texto al pasar el mouse */
  .galeria-contenedor img:hover::after {
	opacity: 1;
	transform: translateX(-50%) translateY(-4px);
  }

  
  /* === Corregir visibilidad y posición del botón de cerrar en el modal === */
.modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9998; /* fondo del modal */
  }
  
  .modal-content {
	max-width: 90%;
	max-height: 90%;
	object-fit: contain;
	position: relative;
	z-index: 9999; /* por encima del fondo */
	animation: none !important; /* desactiva animación que oculte el botón */
  }
  
/* === MODAL CORREGIDO: Imagen centrada + botón de cerrar visible === */

.modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.8);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9997;
  }
  
  .modal-content {
	max-width: 90%;
	max-height: 90%;
	object-fit: contain;
	position: relative;
	z-index: 9998;
	animation: none !important; /* anula animaciones que oculten el botón */
  }
  
  /* Botón de cerrar */
  .close {
	position: fixed; /* fijo respecto a la ventana, no a la imagen */
	top: 20px;
	right: 25px;
	font-size: 2rem;
	color: #fff;
	background: rgba(0, 0, 0, 0.6);
	border: none;
	border-radius: 50%;
	width: 45px;
	height: 45px;
	cursor: pointer;
	z-index: 10000; /* siempre encima de todo */
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.3s ease, transform 0.2s ease;
  }
  
  .close:hover {
	background: rgba(0, 0, 0, 0.85);
	transform: scale(1.1);
  }
  
  

  /* === BOTÓN DESCARGAR CONTENIDO INTERNO === */
.btn-descargar-interno {
	display: inline-block;
	margin-top: 20px;
	padding: 15px 25px;
	background-color: #0c8a3c;
	color: white;
	font-size: 1.2rem;
	font-weight: bold;
	border-radius: 10px;
	text-decoration: none;
	box-shadow: 0 5px 12px rgba(0,0,0,0.25);
	transition: background 0.3s ease, transform 0.2s ease;
}

.btn-descargar-interno:hover {
	background-color: #0ea94b;
	transform: scale(1.05);
}


  /*FINAL GALERÍA DE IMÁGENES campañas - ESTILO DEPARTAMENTO DE SALUD*/


  /*GALERIA DINAMICA DE TEMAS*/
/* === GALERÍA DINÁMICA === */
.galeria-dinamica {
	display: flex;
	flex-direction: column;
	gap: 40px;
	max-width: 900px;
	margin: 40px auto;
  }
  
  .galeria-dinamica .item {
	display: flex;
	align-items: center;
	background: white;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	overflow: hidden;
  }
  
  .galeria-dinamica .item img {
	width: 300px;
	height: 200px;
	object-fit: cover;
  }
  
  .galeria-dinamica .descripcion {
	padding: 20px;
	flex: 1;
  }
  
  .galeria-dinamica .item.invertido {
	flex-direction: row-reverse;
  }
  
  @media (max-width: 700px) {
	.galeria-dinamica .item,
	.galeria-dinamica .item.invertido {
	  flex-direction: column;
	}
  
	.galeria-dinamica .item img {
	  width: 100%;
	  height: auto;
	}
  }
  
  /* === FIN GALERÍA DINÁMICA TEMAS === */
  

  /* === EFECTO DE ENTRADA SUAVE TEMAS === */

/* --- Contenedor de cada tarjeta --- */
.item {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 30px 0;
	opacity: 0;
	transform: translateX(-100px); /* por defecto hacia la izquierda */
	transition: opacity 0.8s ease-out, transform 0.8s ease-out;
	overflow: hidden;
  }
  
  /* --- Tarjeta invertida: imagen a la derecha --- */
  .item.invertido {
	flex-direction: row-reverse;
	transform: translateX(100px); /* inicia desde la derecha */
  }
  
  /* --- Cuando aparece --- */
  .item.visible {
	opacity: 1;
	transform: translateX(0);
  }
  
  /* --- Imagen de la galería --- */
  .imagen-galeria {
	width: 300px;
	height: 200px;
	background-size: cover;
	background-position: center;
	border-radius: 10px;
	margin: 0 20px;
	flex-shrink: 0;
  }
  
  /* --- Descripción --- */
  .descripcion {
	max-width: 400px;
  }
  
  /* --- Botón --- */
  .boton-galeria {
	display: inline-block;
	margin-top: 10px;
	padding: 10px 20px;
	background-color: #0c8a3c;
	color: white;
	text-decoration: none;
	border-radius: 5px;
	font-weight: bold;
	opacity: 0;               /* estado inicial para animación */
	transform: translateY(20px);
	transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }
  
  .boton-galeria:hover {
	background-color: #0a6e30;
	transform: scale(1.05);
  }

  /* === FIN DE ENTRADA SUAVE TEMAS === */

  /*CONTACTANOS*/

  .contactanostitulo{
    text-align: center;
    margin-bottom: 5%;
  }

  .contactanosparrafo{
    text-align: center;
    margin-bottom: 5%;
  }

  /*fin contactanos*/


  /* === SECCIÓN SÍNDROME DE MANOS, PIES Y BOCA === */
#sindrome {
	background-color: #f8f8f8;
	padding: 50px 10%;
	text-align: center;
  }
  
  #sindrome h2 {
	color: #0c8a3c;
	font-size: 36px;
	margin-bottom: 30px;
  }
  
  .sindrome-contenido {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 40px;
  }
  
  .sindrome-contenido img {
	max-width: 400px;
	border-radius: 10px;
	box-shadow: 0 0 10px rgba(0,0,0,0.2);
  }
  
  .texto-sindrome {
	max-width: 600px;
	text-align: justify;
	color: #333;
	font-size: 18px;
	line-height: 1.6;
  }

  /* === BOTÓN ATRÁS (temas.html) === */
.contenedor-boton-atras {
	display: flex;
	justify-content: center;
	margin: 30px 0;
  }
  
  .boton-atras {
	background-color: #0c8a3c;
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	border: none;
	border-radius: 8px;
	padding: 12px 24px;
	cursor: pointer;
	transition: background 0.3s ease, transform 0.2s ease;
	box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  }
  
  .boton-atras:hover {
	background-color: #0ea94b;
	transform: scale(1.05);
  }
  
  /* Adaptación a móviles */
  @media (max-width: 600px) {
	.boton-atras {
	  width: 80%;
	  font-size: 0.95rem;
	  padding: 10px 0;
	}
  }
  

  /*FIN SINDROME*/


 
  
/* === SECCIÓN NOTI-DEPARTAMENTO DE SALUD === */
.noti-seccion {
	text-align: center;
	margin: 60px auto;
	padding: 20px;
  }
  
  /* === TÍTULO CON ANIMACIÓN === */
  .noti-titulo {
	font-size: 2rem;
	font-weight: 700;
	color: #159541; /* Verde institucional */
	margin-bottom: 30px;
	text-transform: uppercase;
	letter-spacing: 1px;
	text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
	opacity: 0;
	transform: translateY(20px);
	transition: all 1s ease-out;
  }
  
  .noti-titulo.visible {
	opacity: 1;
	transform: translateY(0);
  }
  
  /* === IMÁGENES NOTICIAS CON ANIMACIÓN === */
  .noti-imagenes {
	text-align: center;
	margin: 30px auto;
  }
  
  .imagen-noti {
	width: 80%;
	max-width: 600px;
	height: 350px;
	object-fit: cover;
	border-radius: 12px;
	margin: 20px auto;
	box-shadow: 0 4px 12px rgba(0,0,0,0.2);
	display: block;
	opacity: 0;
	transform: scale(0.9);
	transition: all 1s ease-out;
  }
  
  .imagen-noti.visible {
	opacity: 1;
	transform: scale(1);
  }
  
  /* === TEXTO NOTICIAS === */

  .parrafo-noti {
	max-width: 950px;
	margin: 25px auto;
	font-size: 1.2rem;
	line-height: 1.9;
	text-align: justify;
	color: #222;
	padding: 0 25px;
	font-weight: 400;
	opacity: 0;
	transform: translateY(30px);
	transition: all 1s ease-out;
  }
  
  .parrafo-noti.visible {
	opacity: 1;
	transform: translateY(0);
  }
  
  /* === RESPONSIVO === */
  @media (max-width: 768px) {
	.noti-titulo {
	  font-size: 1.6rem;
	}
	.imagen-noti {
	  height: 250px;
	}
	.parrafo-noti {
	  font-size: 1.05rem;
	  line-height: 1.8;
	}
  }
  
/* === IMÁGENES CON TEXTO Y ANIMACIÓN EN NOTI-DEPARTAMENTO === */
.fila-noti {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 40px;
	margin-top: 40px;
  }
  
  /* Contenedor general de cada imagen + texto */
  .contenedor-noti {
	text-align: center;
	flex: 1 1 45%;
	max-width: 500px;
	transition: all 0.8s ease-out;
  }
  
  /* 🔹 Imágenes iguales y proporcionales */
  .contenedor-noti img {
	width: 100%;
	max-width: 420px; /* 🔸 tamaño uniforme */
	height: 300px; /* 🔸 misma altura para ambas */
	object-fit: cover; /* mantiene proporción y recorta si es necesario */
	border-radius: 12px;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
	transition: transform 0.8s ease, opacity 0.8s ease;
	opacity: 0;
	transform: translateY(40px);
  }
  
  /* Animación al aparecer */
  .contenedor-noti.visible img {
	opacity: 1;
	transform: translateY(0);
  }
  
  /* === Texto debajo de las imágenes === */
  .texto-imagen-noti {
	font-family: 'Calibri', sans-serif;
	font-size: 1.2rem; /* 🔸 más grande y legible */
	color: #0c8a3c;
	font-weight: bold;
	margin-top: 14px;
	text-align: center;
	line-height: 1.6;
	opacity: 0;
	transform: translateY(20px);
	transition: all 0.8s ease-out;
  }
  
  /* Animación del texto */
  .contenedor-noti.visible .texto-imagen-noti {
	opacity: 1;
	transform: translateY(0);
  }
  
  /* === Adaptación para móviles === */
  @media (max-width: 768px) {
	.fila-noti {
	  flex-direction: column;
	  gap: 20px;
	  align-items: center;
	}
  
	.contenedor-noti {
	  flex: 1 1 100%;
	  max-width: 90%;
	}
  
	.contenedor-noti img {
	  max-width: 100%;
	  height: 250px; /* 🔸 más pequeño en móvil pero igualado */
	}
  
	.texto-imagen-noti {
	  font-size: 1.05rem;
	  margin-top: 10px;
	}
  }
  
    /* === FIN NOTICIAS DEPARTAMENTO - ANIMACIÓN E IMÁGENES IGUALES === */