/* RESET GENERAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* FUENTE BASE */
body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  background-color: #FFFFFF;
  color: #2E2E2E;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ENCABEZADO SUPERIOR */
header {
  background-color: #752E2E;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Logo alineado a la izquierda */
.header-logo {
  height: 60px; /* Ajustá según tamaño ideal */
  max-width: 100%;
}

/* Menú de navegación alineado a la derecha */
nav {
  display: flex;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

/* HERO */
.hero {
  position: relative;
  padding: 120px 20px;
  text-align: center;
  background: url('images/Equipo_EJA_2024.jpg') no-repeat center top;
  background-size: cover;
  background-attachment: scroll;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 420px;
}

.hero-content {
  max-width: 800px;
  text-align: center;
}

.hero h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero p {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.hero h1, .hero p {
  text-shadow: 4px 4px 15px rgba(0, 0, 0, 1.5); /* Sombra más definida y oscura */
}

@media screen and (max-width: 768px) {
  .subtitulo-hero {
    text-align: justify;
    display: block;
    max-width: 90%;
    margin: auto;
  }
}

.cta {
  background-color: #272f33dc;
  padding: 10px 20px;
  border-radius: 5px;
  color: white;
  text-decoration: none;
  font-weight: 600;
}

/* SECCIONES */
/* Título de sección con estilo burdeo */
.section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #752E2E;
  margin-bottom: 30px;
}

/* Centralización del contenido */
.nosotros-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.7;
}

/* ANIMACIÓN PARA CARDS DE SERVICIOS Y NOSOTROS (MVV) */
.service-item,
.mvv-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
    background-color: #fff;
    border: 1px solid #e5e5e5;
}

.service-item:hover,
.mvv-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
/* Fondo y estructura de "¿Quiénes somos?" */
#nosotros {
  background-color: #F6F6F6; /* Igual a otras secciones */
  padding: 60px 40px;
}

/* Ajuste del título para que destaque correctamente */
.section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #752E2E;
  margin-bottom: 30px;
}

/* Contenedor del texto centralizado y ancho adecuado */
.nosotros-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: justify;
  font-size: 1.1rem;
  line-height: 1.7;
  text-justify: inter-word; /* Mantiene el justificado sin cortes */
  hyphens: none; /* Evita los guiones en palabras largas */
}

#nosotros {
  padding-top: 20px; /* Elimina el espacio de arriba */
}

.mvv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.mvv-card {
  background-color: #fff;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: left;
}

.mvv-card h3 {
  font-size: 1.2rem;
  color: #272f33;
  font-weight: 700;
  margin-bottom: 10px;
}

.mvv-card p,
.mvv-card ul {
  font-size: 0.98rem;
  line-height: 1.7;
  margin: 0;
}

.mvv-card ul {
  padding-left: 20px;
}

.mvv-card ul li {
  margin-bottom: 6px;
}

section {
  padding: 80px 20px;
}

section:nth-of-type(even) {
  background-color: #F8F8F8;
}

h2 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #752E2E;
  margin-bottom: 30px;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #272f33;
  margin: 25px 0 10px;
}

section p {
  font-size: 1rem;
  text-align: justify;
  line-height: 1.8;
  margin-bottom: 16px;
}

ul {
  padding-left: 20px;
}

ul li {
  margin-bottom: 8px;
}

/* SERVICIOS */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: auto;
}

.service-item {
  background: #f4f4f4;
  padding: 20px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
}

@media screen and (max-width: 768px) {
  .service-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .service-item {
    width: 90%;
    margin-bottom: 20px;
  }
}

/* NOTICIAS */
.news-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.news-container article {
  background-color: #ffffff;
  padding: 20px;
  border-left: 4px solid #752E2E;
  border-radius: 6px;
}

h2 {
  margin-bottom: 0; /* Elimina espacio debajo del título */
}

.subtitulo-servicios {
  margin-top: 5px; /* Espacio mínimo para evitar contacto con el título */
  margin-bottom: 20px; /* Mantiene espacio sobre los boxes */
  text-align: center;
  font-size: 1.2em;
  font-weight: 500;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.service-box p {
  text-align: justify;
  max-width: 800px;
  word-spacing: -0.5px;
  letter-spacing: -0.2px;
}

/* CONTACTO */
.contact p {
  max-width: 600px;
  margin: 0 auto 12px auto;
  text-align: left;
}

.contact a {
  color: #272f33;
  text-decoration: none;
  font-weight: 500;
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 52px;
  height: 52px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 999;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #1eb954;
}

.form-container {
  max-width: 800px; /* Ajuste según el diseño de tu web */
  margin: 0 auto; /* Centra el formulario */
  padding: 20px; /* Espaciado para evitar que se vea pegado a los bordes */
}

/* MAPA */
#ubicacion iframe {
  border: none;
  width: 100%;
  height: 400px;
  border-radius: 6px;
  margin-top: 20px;
  max-width: 900px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* FOOTER */
footer {
  background-color: #752E2E;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 0.95rem;
}

footer a {
  color: #DDDDDD;
  text-decoration: none;
}

/* RESPONSIVO */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    padding-top: 10px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .cta {
    font-size: 0.95rem;
    padding: 8px 16px;
  }

  .service-item, .news-container article {
    max-width: 100%;
  }
}