/* main.css: Estilos generales y responsivos para Fundación RIEL */

/* --------------------------- RESET BÁSICO --------------------------- */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #F5F5F5;
  color: #333;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  color: #222;
  font-weight: 600;
  margin-bottom: 20px;
}

h1 { font-size: 2rem; text-align: center; }
h2 { font-size: 1.75rem; text-align: center; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.2rem; }

p {
  font-size: 1rem;
  color: #333;
  margin: 0 0 1em;
}

strong { font-weight: bold; }

/* --------------------------- UTILIDADES --------------------------- */
.azul {
  color: #0096C7;
  font-weight: 600;
}

.divider {
  width: 60px;
  height: 3px;
  background-color: #0096C7;
  margin: 10px 0 20px;
}

/* --------------------------- HEADER --------------------------- */
header {
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.menu-icon {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #0096C7;
}

#menu-toggle { display: none; }

nav.menu {
  display: flex;
  gap: 20px;
}

nav.menu a {
  text-decoration: none;
  color: #333;
  font-weight: normal;
}

#menu-toggle:checked + .menu-icon + nav.menu {
  display: flex;
}

/* --------------------------- HERO --------------------------- */
.hero-container {
  position: relative;
  width: 100%;
  height: 400px;
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
}

.hero-image {
  background: url('https://d2fky9umbbld7j.cloudfront.net/img/fondo1.jpg') center center/cover no-repeat;
  width: 100%;
  height: 100%;
  filter: brightness(0.8); /* oscurece un poco la imagen */
  transition: background-image 1s ease-in-out; /* transición suave al cambiar imagen */
}


.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255,255,255,0.3);
  pointer-events: none;
  z-index: 1;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #0096C7;
  text-align: center;
  padding: 0 20px;
  z-index: 2;
}

.hero-text h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFFFFF;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.hero-text p {
  font-size: 1.2rem;
  font-weight: 400;
  color: #FFFFFF;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
#hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#hero-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

#hero-slider img.active {
  opacity: 1;
}

#hero-prev, #hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.3);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 5px 10px;
  cursor: pointer;
  z-index: 2;
  border-radius: 8px; /* <- solo esquinas redondeadas */
}


#hero-prev { left: 10px; }

#hero-next { right: 10px; }

#hero-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

#hero-indicators .indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 4px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  cursor: pointer;
}

#hero-indicators .indicator.active {
  background: rgba(255,255,255,1);
}


/* --------------------------- CONTENIDO PRINCIPAL --------------------------- */
.contenido-principal {
  display: flex;
  flex-direction: row;         
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 40px;
  flex-wrap: wrap;
}

.imagen-derecha,
  flex: 1 1 400px;
  max-width: 500px;
  text-align: center;
  padding: 0 20px;
}





.imagen-mision {
  flex: 1;
  text-align: center;
  padding: 0 20px;
}

.imagen-derecha img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.imagen-mision img {
  max-width: 60%; /* O el valor que tú quieras */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  object-fit: contain;
}


.texto-izquierda,
  flex: 1 1 400px;
  max-width: 600px;
  text-align: justify;
}




.texto-mision {
  flex: 1;
  text-align: justify;
}

.titulo-izquierda {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #000;
}

.parrafo-izquierda { color: #000; }

/* --------------------------- VISIÓN Y MISIÓN --------------------------- */
.vision {
  background: linear-gradient(rgba(0,150,199,0.9), rgba(0,150,199,0.9)),
              url('https://d2fky9umbbld7j.cloudfront.net/img/fondo-vision.jpg') center center/cover no-repeat;
  color: white;
  padding: 40px;
  text-align: center;
}

.mision {
  background: #F5F5F5;
  padding: 30px 40px;
  margin-top: -10px;
  text-align: center;
}

.mision-contenido {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.mision .divider.grande {
  width: 200px;
  height: 3px;
  background-color: #0096C7;
  margin: 20px auto 30px auto;
  border-radius: 2px;
}


.mision .texto-mision {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: justify !important;
}

.divider.grande {
  width: 200px;
  height: 3px;
  background-color: #0096C7;
  margin: 20px auto 30px auto;
  border-radius: 2px;
}


/* --------------------------- FOOTER --------------------------- */
footer {
  background-color: #0096C7;
  color: white;
  padding: 40px;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 -3px 10px rgba(0,0,0,0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  align-items: start;
}

.footer-logo img {
  max-width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
}

.footer-logo p,
.footer-contact p {
  color: white;
  font-size: 1rem;
  font-weight: normal;
  line-height: 1.4;
  margin: 6px 0;
  text-align: left;
  align-self: flex-start;
}

.footer-heading {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: white;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 10px;
}

.footer-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  display: block;
}

.footer-link:hover,
.footer-link:focus {
  color: #007bb0;
  outline: none;
}

.footer-contact {
  display: flex;
  flex-direction: column;
}

/* Botón alineado a la izquierda, tamaño normal en escritorio */
.footer-contact-button {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px; /* tamaño normal */
  background: white;
  color: #0096C7;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
  cursor: pointer;
  text-align: center;
  max-width: fit-content; /* solo lo necesario */
  box-sizing: border-box;
  align-self: flex-start; /* botón alineado a la izquierda */
}

.footer-contact-button:hover,
.footer-contact-button:focus {
  background: #007bb0;
  color: white;
  outline: none;
}

/* Íconos alineados a la izquierda debajo del botón */
.footer-contact .footer-social {
  margin-top: 15px;
  display: flex;
  justify-content: flex-start; /* íconos alineados a la izquierda */
  gap: 20px;
}

.footer-contact .footer-social a {
  color: white;
  font-size: 2rem; /* tamaño escritorio */
  transition: color 0.3s ease, transform 0.2s ease;
}

.footer-contact .footer-social a:hover {
  color: #ffdd57;
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  font-size: 14px;
  border-top: 1px solid rgba(255,255,255,0.3);
  margin-top: 20px;
  font-weight: 400;
  color: white;
}

.footer-nav {
  margin-left: 0;
  text-align: left;
}

/* Ajustes móviles */
@media (max-width: 768px) {
  .footer-contact-button {
    width: 100%;        /* ocupa casi todo el ancho disponible */
    max-width: none;    /* sin límite */
    padding: 12px 25px; /* un poco más grande */
    text-align: center;
  }

  .footer-contact .footer-social a {
    font-size: 1.5rem;  /* íconos un poco más pequeños */
  }
}





/* --------------------------- RESPONSIVE --------------------------- */
/* --------------------------- RESPONSIVE --------------------------- */
@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }

  .imagen-derecha img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .imagen-mision img {
    width: 100%;
    height: 300px; /* Ajusta si quieres más grande */
    object-fit: cover;
    display: block;
    margin: 0 auto;
    max-height: none;
  }

  .imagen-derecha,
  .imagen-mision {
    padding: 0;
    margin-bottom: 10px;
  }

  .galeria-mision {
    flex-direction: column;
    align-items: center;
  }

  .galeria-mision img {
    width: 90%;
  }
  

  nav.menu {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 20px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 200px;
  }

  nav.menu a {
    margin: 10px 0;
    padding: 10px 0;
    width: 100%;
    display: block;
  }

  #slider {
    height: 300px;
  }
  
  .contenido-principal,
  .mision-contenido {
    flex-direction: column;
  }

  .imagen-derecha,
  .imagen-mision,
  .texto-izquierda,
  .texto-mision {
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .hero-image {
    height: 500px; /* Ajustado para móvil */
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: left; /* Alineado a la izquierda en móvil */
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer-contact-button {
    width: 100%;
    padding: 12px 0;
  }

  .footer-logo img {
    max-height: 150px;
  }
}

@media (min-width: 769px) {
  .footer-nav {
    margin-left: 160px; /* o el valor que prefieras */
  }
}


/* Estilo para pantallas medianas y grandes */
@media (min-width: 769px) {
  .contenido-principal {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 40px 10%;
  }

  .texto-izquierda {
    flex: 1;
    order: 1;
  }

  .imagen-derecha {
    flex: 1;
    order: 2;
    display: flex;
    justify-content: center;
  }

  .imagen-derecha img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
  }
}


/* --------------------------- INICIO JUSTIFICADO --------------------------- */
.inicio .parrafo-izquierda p {
  text-align: justify;
}

/* --------------------------- SECCIÓN SERVICIOS --------------------------- */
.servicios-seccion {
  background-color: #F5F5F5;
  padding: 60px 20px 100px 20px;
}

.incluye-texto {
  text-align: left;
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 5px;
}

.servicios-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.servicio-card {
  background-color: #FEFEFF;
  border-radius: 12px;
  padding: 25px;
  width: 300px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25); /* sombra más notoria */
  text-align: center;
  transition: transform 0.3s;
}


.servicio-card:hover {
  transform: translateY(-5px);
}

.servicio-card h3 {
  font-size: 1.3rem;
}

.servicio-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
  margin: 0 auto;
  max-width: 240px;
}

.servicio-card li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  color: #333;
}

.tick {
  color: green;
  margin-right: 8px;
  font-weight: bold;
}

.icono-servicio {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #EBF3FF;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0197C7;
  font-size: 28px;
}
.servicio-boton {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  border-radius: 12px;
  background-color: #0096C7; /* color azul de tu clase .azul */
  color: #F5F5F5; /* un blanco suave, no blanco puro */
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: background 0.3s, color 0.3s;
}
.servicio-boton:hover {
  background-color: #007bb0;
  color: #FFFFFF;
}
.intro-texto-centro {
  text-align: center; /* Centra el texto */
  max-width: 800px;
  margin: 0 auto 50px; /* Centra el bloque y agrega margen inferior */
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

/* --------------------------- ¿POR QUÉ ELEGIRNOS? --------------------------- */
.elegirnos-seccion {
  background: linear-gradient(180deg, #FFFFFF 0%, #E6F4FA 100%);
  padding: 60px 20px;
  text-align: center;
}

.elegirnos-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 60px;
  margin-top: 40px;
}

.elegirnos-item {
  flex: 1 1 200px;
  max-width: 240px;
  text-align: center;
  padding: 10px;
}

.icono-elegirnos {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #F5F5F5;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0197C7;
  font-size: 32px;
}

.elegirnos-item h4 {
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
}

.elegirnos-item p {
  font-size: 0.95rem;
  color: #555;
}

/* --------------------------- CONTACTO --------------------------- */
.contacto-seccion {
  padding: 60px 20px 100px 20px;
  background-color: #F5F5F5;
  text-align: center;
}

.contacto-seccion h2 {
  font-size: 1.75rem;
  margin-bottom: 10px;
  color: #222;
}

.contacto-seccion p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contacto-formulario {
  background-color: white;
  border-radius: 12px;
  padding: 40px 30px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); /* mismo efecto que en servicios */
  text-align: left;
}

.contacto-formulario h3 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.4rem;
  font-weight: 600;
}

.contacto-formulario label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.contacto-formulario input,
.contacto-formulario textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  box-sizing: border-box;
}

.contacto-formulario button {
  background-color: #0197C7;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: bold; /* <-- esto hace que la letra sea negrita */
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.contacto-formulario button:hover {
  background-color: #007bb0;
}

.form-submit-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.form-success {
  color: green;
  font-weight: bold;
}

.form-error {
  color: red;
  font-weight: bold;
  margin-top: 0.5rem;
}


/* Slider */
#slider {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 400px;
  margin: 40px auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  font-family: 'Poppins', sans-serif;
}

#slider img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  border-radius: 10px;
}

#slider img.active {
  opacity: 1;
  z-index: 1;
  position: relative;
}

/* Botones */
#slider .btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.4);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 5px;
  user-select: none;
  transition: background-color 0.3s;
  z-index: 10;
}

#slider .btn:hover {
  background-color: rgba(0,0,0,0.7);
}

#slider #prev {
  left: 10px;
}

#slider #next {
  right: 10px;
}

/* Indicadores */
#slider #indicators {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
  z-index: 10;
}

#slider .indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background-color: rgba(255,255,255,0.7);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

#slider .indicator.active {
  background-color: #0096C7;
}

/* Sección Nosotros */
.nosotros-seccion {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  /* NO poner display:flex aquí */
}

.nosotros-seccion .divider.grande {
  width: 200px;
  height: 3px;
  background-color: #0096C7;
  margin: 20px auto 30px;
  border-radius: 2px;
}

.nosotros-seccion .intro-texto {
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: justify;
  font-size: 1rem;
  color: #333;
  box-sizing: border-box;
}

.perfil {
  display: flex;
  flex-direction: row;
  gap: 30px;
  margin-bottom: 40px;
  align-items: flex-start;
}

.perfil-imagen {
  flex: 0 0 200px;
}

.perfil-imagen img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.perfil-info {
  flex: 1;
  max-width: 700px;
  text-align: justify;
  padding-left: 10px;
}


.perfil-info h4 {
  font-size: 1rem;
  color: #0096C7;
  margin-top: 0;
  margin-bottom: 0.5em;
  text-transform: uppercase;
}

.perfil-info h3 {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 0.8em;
}

.perfil-info p {
  font-size: 1rem;
  line-height: 1.5;
  margin-top: 0;
  margin-bottom: 1em;
}

/* Imagen perfil cuadrada sin bordes redondeados, tamaño fijo y blanco y negro */
.perfil-cuadrada img {
  border-radius: 0;
  width: 300px;
  height: 300px;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.perfil-cuadrada img:hover {
  filter: grayscale(0%);
}

/* Responsive */
@media (max-width: 768px) {
  .perfil {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .perfil-imagen {
    margin-bottom: 15px;
  }

  .perfil-info {
    max-width: 100%;
    padding-left: 0;
  }


  