/** @format */

* {
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .obras .programas .carta {
    width: 50%;
  }
}

html {
  scroll-behavior: smooth;
}

header {
  background-color: rgb(245, 245, 245);
  position: fixed;
  width: 100%;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.nav {
  width: 100%;
  display: flex;
  align-items: center;
}
.nav > .nav-header {
  flex: 0.95;
  padding-left: 1rem;
}
.nav > .nav-header > .nav-title {
  font-size: 22px;
  color: #232323;
}
.nav > .nav-list {
  display: flex;
  gap: 2rem;
  padding-left: 1.75rem;
}
.nav > .nav-list > li {
  list-style-type: none;
}
.nav > .nav-list > li a {
  text-decoration: none;
  color: #232323;
  cursor: pointer;
}
.nav > #nav-check {
  display: none;
}

.text-center {
  text-align: center;
}

/* Checkbox oculto */
.toggle-redes {
  display: none;
}

/* Flechita-botón (mobile) */
.toggle-redes-boton {
  position: fixed;
  top: 35%;
  left: 0;
  background: #333;
  color: white;
  width: 28px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 10px 10px 0;
  font-size: 20px;
  cursor: pointer;
  z-index: 9999;
  transition: 0.3s ease;
}

/* Barra cerrada por defecto en mobile */
.botones-redes {
  position: fixed;
  top: 30%;
  left: 5px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-15px);
  transition: 0.3s ease;
  z-index: 10000;
}

/* 🔥 Estilo de los botones individuales */
.botones-redes a {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 42px; /* tamaño perfecto para iconos */
  height: 42px;

  background-color: #ffffff; /* Fondo sólido (puede cambiarse) */
  border: 2px solid #d8d8d8; /* Borde visible */
  border-radius: 12px; /* Bordes redondeados */

  margin-bottom: 10px; /* separación entre botones */
  text-decoration: none;

  color: #000; /* color del icono */
  font-size: 20px; /* tamaño icono FA */

  transition: 0.2s ease;
}

/* Cuando se activa el checkbox: mostrar */
.toggle-redes:checked + .toggle-redes-boton + .botones-redes {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Rotación de flecha al abrir */
.toggle-redes:checked + .toggle-redes-boton {
  transform: rotate(180deg);
}

/* --- Tus estilos originales --- */

.botones-redes {
  font-family: 'Funnel Display', sans-serif;
  font-weight: 400;
}

.botones-redes_button {
  width: 55px;
  height: 55px;
  padding: 0 20px;
  box-shadow: 0 3px 6px rgb(0 0 0 / 20%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 18px;
  text-decoration: none;
  color: #222;
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

.botones-redes_button p {
  display: none;
}

/* FONDO OSCURO DEL MODAL */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* CONTENIDO DEL MODAL */
.modal-contenido {
  background: white;
  color: #333;
  padding: 30px;
  max-width: 450px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
  animation: aparecer 0.3s ease;
}

/* ANIMACIÓN */
@keyframes aparecer {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* BOTONES */
.botones {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
}

.btn-aceptar {
  background: #4caf50;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.btn-politica {
  padding: 10px 18px;
  background: #2c7be5;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

/* OCULTAR MODAL */
.oculto {
  display: none !important;
}

body {
  font-family: 'Funnel Display', sans-serif;
  margin: 0%;
}

h1 {
  font-size: 3.5em;
}
h2 {
  font-size: 2.7em;
}
h3 {
  font-size: 2em;
}
p {
  font-size: 1.25em;
}
ul {
  list-style: none;
}
li {
  font-size: 1em;
}

textarea::placeholder,
input::placeholder {
  font-family: 'Funnel Display', sans-serif;
  color: #888;
}

button {
  font-size: 1em;
  font-weight: bold;
  padding: 10px, 30px;
  border-radius: 15px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  color: white;
  background-color: #4caf50;
}

button:hover {
  background-color: rgb(0, 87, 0);
}

.color-acento {
  color: #4caf50;
}

/* Agrupa logo + texto */
.logo-area {
  display: flex;
  align-items: center;
  gap: 10px; /* espacio entre logo y texto */
}

.ingemed-logo-wrapper {
  display: flex;
  align-items: center;
}
.ingemed-logo-wrapper h1 {
  font-size: 1rem;
  margin-left: 1rem;
  color: #4caf50;
}

.ingemed-logo {
  width: 70px;
  height: 70px;
}

/* Texto al lado del logo */
.logo-text {
  font-weight: bold;
  color: #4caf50;
  font-size: 1.5em;
  margin: 0;
}

header nav {
  display: flex;
  gap: 15px;
}

header a {
  padding: 5px;
  text-decoration: none;
  font-weight: bold;
  color: black;
}

header a:hover {
  color: green;
}

/* ===== SLIDER COMO HERO ===== */
.slider_hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Slider */
.slider_hero ul {
  display: flex;
  padding: 0;
  margin: 0;
  width: 400%;
  height: 100%;
  animation: slide 16s infinite ease-in-out;
}

.slider_hero li {
  width: 100%;
  height: 100vh;
  list-style: none;
}

.slider_hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== OVERLAY OSCURO ===== */
.slider_hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1));
  z-index: 1;
}

/* ===== TEXTO DEL HERO ===== */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  color: white;
}

.hero-content h1 {
  font-size: 3.2rem;
  line-height: 1.1;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-content button {
  padding: 12px 35px;
  font-size: 1.3rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* ===== ANIMACION DEL SLIDER ===== */
@keyframes slide {
  0% {
    margin-left: 0;
  }
  20% {
    margin-left: 0;
  }

  25% {
    margin-left: -100%;
  }
  45% {
    margin-left: -100%;
  }

  50% {
    margin-left: -200%;
  }
  70% {
    margin-left: -200%;
  }

  75% {
    margin-left: -300%;
  }
  100% {
    margin-left: -300%;
  }
}

/* ESTILIZADO GENERAL */
#Estilizado {
  margin: 4rem 0;
}

#Estilizado section .container {
  margin-top: 2rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 40px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Imagen (aun si esta vacía) */
.info-container .img-container {
  width: 100%;
  height: 220px;
  background-color: #e6e6e6; /* placeholder suave */
  border-radius: 12px;
}

/* Texto */
#Estilizado .texto {
  text-align: left;
}

#Estilizado h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

#Estilizado p {
  line-height: 1.6;
  font-size: 18px;
  color: #333;
}

#Acerca-de-nosotros .container {
  text-align: center;
  padding: 50px 12px;
}

#Acerca-de-nosotros .img-container {
  background-image: url('media/TRABAJOENEQUIPO.jpeg');
  border-radius: 15px;
  background-size: cover;
  background-position: center center;
  height: 300px;
}

#Mision {
  text-align: center;
}

#Mision .container {
  text-align: center;
  padding: 50px 12px;
}

#Mision .img-container {
  background-image: url('media/ARBOLTALADO.jpeg');
  border-radius: 15px;
  background-size: cover;
  background-position: center center;
  height: 300px;
}

#Vision {
  text-align: center;
}

.info-container {
  text-align: center;
  padding: 50px 12px;
  flex-direction: column;
}

#Vision .img-container {
  background-image: url('media/ANTESDE.jpeg');
  border-radius: 15px;
  background-size: cover;
  background-position: center center;
  height: 300px;
}

#Obras {
  background-color: #4caf50;
  color: white;
  padding: 4rem 0;
  text-align: center;
}

#Obras h2 {
  margin-top: 0;
  font-size: 3em;
}

#Obras .p {
  display: none;
  color: white;
}

#Obras .carta {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  width: 100%;
  margin-bottom: 1rem;
}

.carta .texto-carta {
  background-color: rgba(0, 0, 0, 0.4);
  padding: 1rem;
  border-radius: 8px;
  color: white;
}

#Obras .imagen-carta {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 16px;
  min-height: 200px;
}

.backdrop-imagen-carta {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: #00000075;
  z-index: 2;
}

#Obras .imagen-carta img {
  width: 100%;
  position: absolute;
  top: 0px;
  bottom: 10px;
  left: 0px;
  object-fit: cover;
  height: 100%;
}

#Obras .titulo-carta {
  z-index: 5;
  position: relative;
  font-size: 14px;
}

.container-texto-carta {
  background: rgb(59, 59, 59);
  padding: 1rem;
}

#caracteristicas {
  padding: 4rem 0;
}

#caracteristicas li {
  margin: 12px 0px;
  font-weight: bold;
}

#caracteristicas img {
  width: 100%;
  border-radius: 1rem;
}
.car-icon-check {
  color: green;
}

.car-icon-wrapper {
  width: 80px;
  height: 80px;
  font-size: 2.5rem;
  border-radius: 50%;
  background: #def2df;
  display: flex;
  align-items: center;
  justify-content: center;
}

.car-icon-wrapper i {
  color: #265729;
}

/* ESTILIZACION FORMULARIO  */

#contactanos {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: #4caf50;
  color: white;
  height: 110vh;
}

form {
  padding: 40px;
  border-radius: 30px;
  text-align: center;
  max-width: 650px;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.input-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

#contactanos h2 {
  color: #ffffff;
  font-size: 35px;
}

#contactanos label {
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 15px;
}

#contactanos input,
textarea {
  padding: 17px 25px;
  border-radius: 25px;
  margin-bottom: 20px;
  background-color: #edfff0;
  border: 2px solid #f0faf1;
  color: #283629;
  outline: none;
}

#contactanos .form-txt {
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  text-align: center;
}

#contactanos .form-txt a {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

#contactanos .btn {
  font-size: 16px;
  color: #ffffff;
  border: 0;
  border-radius: 25px;
  background-color: #51d94c;
  box-shadow: 0 0 20px rgba(25, 254, 0, 0.4);
  cursor: pointer;
}

#contactanos .btn:hover {
  background-color: #50e04b;
}

/* ===== FOOTER GENERAL ===== */
footer {
  background-color: #f1f1f1;
  padding: 30px 15px 15px;
  color: #444;
  font-family: 'Funnel Display', sans-serif;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 25px;
}

/* ===== LOGO ===== */
.footer-logo img {
  width: 80px;
  margin-bottom: 5px;
}

.footer-logo p {
  color: #666;
  font-size: 14px;
  margin-top: 5px;
}

/* ===== SECCIONES ===== */
.footer-section h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #222;
  font-weight: 600;
}

.footer-section a,
.footer-section p {
  display: block;
  font-size: 14px;
  margin: 3px 0;
  color: #444;
  text-decoration: none;
}

.footer-section a:hover {
  text-decoration: underline;
  color: #50e04b; /* Verde de tu web */
}

/* ===== COPYRIGHT ===== */
.footer-copy {
  margin-top: 20px;
  text-align: center;
}

.footer-copy p {
  font-size: 13px;
  color: #777;
}

@media (max-width: 480px) {
  header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
  }

  .ingemed-logo {
    width: 50px;
    height: 50px;
  }

  .nav {
    padding: 1rem;
  }
  .nav > .nav-btn {
    position: absolute;
    right: 0;
    top: 0;
    padding-top: 0.2rem;
    height: 100%;
    display: flex;
    align-items: center;
  }
  .nav > .nav-btn > label {
    display: inline-block;
    width: 50px;
    padding: 13px;
  }
  .nav > .nav-btn > label > span {
    display: block;
    width: 25px;
    height: 10px;
    border-top: 2px solid #232323;
  }
  .nav > .nav-list {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    background-color: #4caf51;
    height: 0;
    transition: all 0.3s ease-in;
    top: 65px;
    left: 0;
    overflow: hidden;
  }
  .nav > .nav-list > li {
    width: 100%;
    margin-top: 1.5rem;
  }
  .nav > #nav-check:checked ~ .nav-list {
    height: calc(100vh - 50px);
  }
}

@media (min-width: 786px) {
  header {
    position: fixed;
    width: 100%;
  }

  header .container {
    flex-direction: row;
    justify-content: space-between;
  }

  header nav {
    flex-direction: row;
    padding-bottom: 0;
    padding-right: 20px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content button {
    font-size: 1rem;
    padding: 10px 25px;
  }

  .botones-redes {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .toggle-redes-boton {
    display: none;
  }

  .botones-redes_button:hover > p {
    display: block;
  }

  .botones-redes_button:hover {
    width: 100%;
    padding: 0 10px;
  }

  .botones-redes_button:nth-child(1):hover {
    color: #1746e0;
  }
  .botones-redes_button:nth-child(2):hover {
    color: #e1306c;
  }
  .botones-redes_button:nth-child(3):hover {
    color: #25d366;
  }
  .botones-redes_button:nth-child(4):hover {
    color: #0e76a8;
  }

  #Acerca-de-nosotros .texto {
    text-align: initial;
    padding-left: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  #Acerca-de-nosotros .img-container {
    background-image: url('media/TRABAJOENEQUIPO.jpeg');
    border-radius: 15px;
    background-size: cover;
    background-position: center center;
    height: 500px;
    width: 400px;
  }

  #Mision .img-container {
    background-image: url('media/ARBOLTALADO.jpeg');
    border-radius: 15px;
    background-size: cover;
    background-position: center center;
    height: 500px;
    width: 400px;
  }

  .info-container .texto {
    text-align: initial;
    max-width: 600px;
    padding-left: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  #Vision .img-container {
    background-image: url('media/ANTESDE.jpeg');
    border-radius: 15px;
    background-size: cover;
    background-position: center center;
    height: 500px;
    width: 400px;
  }

  #Vision .texto {
    text-align: initial;
    padding-left: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  #Obras .programas {
    display: flex;
    justify-content: center;
    align-items: stretch;
  }

  #obras p {
    display: block;
    margin-bottom: 30px;
  }

  #Obras h2 {
    font-size: 4em;
  }

  #Obras h3 {
    margin-top: 0;
  }

  #caracteristicas ul {
    margin-left: 100px;
  }

  #contactanos .form {
    padding: 50px 30px;
    width: 100%;
  }

  #contactanos .input {
    padding: 15px;
  }

  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    align-items: flex-start;
    margin: auto;
  }

  .footer-logo {
    max-width: 250px;
  }
}

@media (min-width: 991px) {
  .info-container {
    flex-direction: row;
  }

  .info-container .img-container {
    width: 200px;
  }
  #Mision .texto {
    max-width: 600px;
  }
}

@media (min-width: 1200px) {
  #caracteristicas {
    background-position-x: calc(100vw - 800px);
  }

  #Obras .titulo-carta {
    font-size: 1rem;
  }
}
