/* ================================
   SEG Geología Ambiental
   Estilos en tonos verdes, azules y terrosos
   ================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  color: #2f3e46; /* verde grisáceo */
  background-color: #f9f9f6; /* fondo suave terroso */
  line-height: 1.6;
}

/* ======= ENCABEZADO ======= */
header {
  background-color: #2e7d32; /* verde ambiental */
  color: white;
  text-align: center;
  padding: 25px 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.container {
  width: 90%;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

h1 {
  font-size: 1.6em;
  letter-spacing: 1px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  color: #dff2e1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #a0d468; /* verde lima */
}

/* ======= SEPARADOR HEADER / INICIO ======= */
header {
  border-bottom: 4px solid #9ccc65; /* verde claro ambiental */
}

/* ======= SECCIÓN INICIO (hero institucional) ======= */
#inicio {
  position: relative;
  width: 100%;
  height: 90vh;
  background: url("agua.jpg") center center / cover no-repeat fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

/* Capa de luz suave (para resaltar texto sin velar la foto) */
#inicio::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12); /* leve luz sobre el fondo */
  backdrop-filter: brightness(1.1) contrast(1.05);
  z-index: 1;
}

/* Contenedor del contenido */
#inicio .overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Logo */
.logo-seg {
  width: 150px;
  height: auto;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.8)); /* leve realce */
}

/* Frase institucional */
#inicio .subtitulo {
  font-size: 1.45em;
  color: #0b3c91;
  font-weight: 600;
  margin-bottom: 25px;

  /* ✨ Más contraste y visibilidad */
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.95),
               1px 1px 4px rgba(255, 255, 255, 0.8),
               -1px -1px 4px rgba(255, 255, 255, 0.8);
}

/* Lema principal */
#inicio .lema h2 {
  color: #2e7d32;
  font-size: 1.8em;
  font-weight: 600;
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

#inicio .lema p {
  font-size: 1.1em;
  color: #2e7d32;
  font-style: italic;
  font-weight: 400;
  max-width: 650px;
  line-height: 1.5;
  margin: 0 auto;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
}

/* ======= SECCIONES ======= */
.section {
  padding: 80px 20px;
  text-align: center;
}

.section.gray {
  background-color: #f1f5f0;
}

.section h2 {
  color: #0b3d3a;
  font-size: 1.8em;
  margin-bottom: 20px;
  border-bottom: 3px solid #a0d468;
  display: inline-block;
  padding-bottom: 5px;
}

.section p {
  max-width: 900px;
  margin: 15px auto;
  font-size: 1.05em;
}

/* ======= IMAGEN NOSOTROS ======= */
.imagen-nosotros {
  max-width: 600px;
  width: 100%;
  border-radius: 12px;
  margin: 25px auto;
  display: block;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}

/* ======= SECCIONES VERTICALES ======= */
.vertical-section {
  padding: 80px 20px;
  background-color: #ffffff;
  border-radius: 0;
  margin-bottom: 40px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.vertical-section.alt-bg {
  background-color: #f4fdf6; /* verde claro ambiental */
}

.section-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-content .text {
  flex: 1;
}

.section-content .image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.section-content img {
  width: 100%;
  max-width: 450px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.section-content img:hover {
  transform: scale(1.05);
}

.section h2 {
  font-size: 2em;
  color: #1565c0;
  margin-bottom: 20px;
}

.section p {
  color: #333;
  line-height: 1.6;
  margin-bottom: 15px;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: contain;   /* muestra toda la foto sin cortar */
  background-color: #f4fdf6; /* color ambiental detrás */
  border-radius: 8px;
  margin-bottom: 15px;
}

.card img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.card h3 {
  color: #1976d2;
  margin-bottom: 10px;
}

.card ul {
  padding-left: 0;         /* elimina sangría */
  list-style-type: none;   /* elimina las viñetas */
  margin: 0;
}

.card li {
  margin-bottom: 8px;
  color: #333;
  line-height: 1.6;
}

/* Adaptación móvil */
@media (max-width: 768px) {
  .section-content {
    flex-direction: column;
    text-align: center;
  }

  .section-content img {
    max-width: 90%;
  }
}

/* ======= SERVICIOS ======= */
.contenedor-servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.card {
  background-color: #f4fdf6; /* verde claro ambiental */
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.card h3 {
  color: #1565c0; /* azul encabezado */
  margin-bottom: 10px;
}

.card ul {
  list-style: none;
  padding-left: 0;
  line-height: 1.6;
}

/* ======= GALERÍA DE SERVICIOS ======= */
.galeria-servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 40px;
}

.galeria-servicios img {
  width: 100%;
  height: 200px;
  object-fit: contain; /* se ven completas */
  background-color: #f4fdf6;
  border: 4px solid #2e7d32;
  border-radius: 10px;
  padding: 4px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galeria-servicios img:hover {
  transform: scale(1.03);
  border-color: #2196f3;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

/* ======= CONTACTO ======= */
#contacto {
  display: flex;
  flex-direction: column;
  align-items: center;      /* ✅ centra horizontalmente todo */
  justify-content: center;  /* ✅ centra verticalmente si hay altura extra */
  background-color: #f4fdf6; /* verde ambiental claro */
  padding: 40px 20px;
  border-radius: 12px;
  margin-top: 50px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;       /* ✅ centra el texto dentro de los párrafos */
}

#contacto h2 {
  color: #1565c0;           /* azul corporativo */
  margin-bottom: 20px;
  width: 100%;
  text-align: center;       /* asegura centrado del título */
}

#contacto p {
  font-weight: normal;      /* texto sin negrita */
  color: #333;
  font-size: 1.1em;
  margin: 8px 0;
  width: 100%;
  text-align: center;       /* ✅ centra el texto en todos los párrafos */
}

#contacto strong {
  color: #1565c0;           /* azul para los títulos (Email, Teléfono, etc.) */
  font-weight: normal;      /* sin negrita */
}

/* Íconos decorativos para los datos */
#contacto p strong::before {
  content: "📧 ";
  display: inline-block;
  margin-right: 6px;
}

#contacto p strong:nth-of-type(2)::before {
  content: "📍 ";
}

#contacto p strong:nth-of-type(3)::before {
  content: "📞 ";
}

/* Efecto de sombra suave y redondeo */
#contacto {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 10px;
}

/* ======= BOTÓN DE CONTACTO ======= */
.btn-contacto {
  display: inline-block;
  margin-top: 20px;
  background-color: #2e7d32; /* verde medio */
  color: white;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.btn-contacto:hover {
  background-color: #1b5e20; /* verde más oscuro */
  transform: translateY(-2px);
}

/* ======= BOTÓN DE WHATSAPP ======= */
.btn-whatsapp {
  display: inline-block;
  margin-top: 15px;
  background-color: #25D366; /* verde oficial de WhatsApp */
  color: white;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.btn-whatsapp:hover {
  background-color: #1EBE57;
  transform: translateY(-2px);
}

/* ======= PIE DE PÁGINA ======= */
footer {
  background-color: #1565c0; /* mismo color que el encabezado */
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 50px;
  border-top: 3px solid #0d47a1; /* azul más oscuro como detalle */
}

/* ======= DESTINATARIOS CENTRADOS CON BORDE INFERIOR ======= */
.lista-destinatarios {
  list-style-type: none;
  padding: 0;
  margin: 30px auto;
  max-width: 950px;
  text-align: center; /* centra todo el contenido */
}

.lista-destinatarios li {
  background-color: #f4fdf6;      /* verde claro ambiental */
  border-bottom: 4px solid #1565c0; /* borde azul inferior */
  margin-bottom: 18px;
  padding: 20px 25px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  line-height: 1.6;
  font-weight: normal;            /* texto normal */
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lista-destinatarios li:hover {
  transform: translateY(-4px);
  border-color: #2196f3;          /* azul más claro al pasar el mouse */
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

.lista-destinatarios strong {
  color: #1565c0;  /* azul encabezado */
  font-weight: bold; /* solo los títulos en negrita */
}

/* ======= LEMA (definitivo) ======= */
#inicio .lema {
  font-size: 0.85em !important;       /* más pequeño */
  color: #0d47a1 !important;          /* azul profundo */
  font-style: italic !important;      /* cursiva */
  text-align: center !important;
  background-color: rgba(255, 255, 255, 0.8) !important;
  padding: 6px 14px;
  border-radius: 6px;
  max-width: 600px;
  margin-top: 8px;
  line-height: 1.5;
  display: inline-block;
  position: relative;
}

/* Comillas automáticas */
#inicio .lema::before {
  content: "“";
  color: #0d47a1;
  font-size: 1.2em;
  margin-right: 3px;
}
#inicio .lema::after {
  content: "”";
  color: #0d47a1;
  font-size: 1.2em;
  margin-left: 3px;
}

/* ======= LEMAS DE SERVICIOS ======= */
#servicios .card h3:last-of-type {
  font-size: 1em;
  font-style: italic;
  font-weight: normal;       /* 🔹 sin negrita */
  margin-top: 15px;          /* 🔹 separa del texto anterior */
  color: #1565c0;            /* azul corporativo */
  text-align: center;
}

#servicios .card h3:last-of-type::before,
#servicios .card h3:last-of-type::after {
  content: '"';              /* comillas simples elegantes */
  font-size: 1.1em;
  color: #1565c0;
}

/* ======= LISTA DE DESTINATARIOS (centrada, formal y animada) ======= */
#destinatarios {
  text-align: center;
}

#destinatarios p {
  font-weight: normal;
  color: #333;
  margin-bottom: 10px;
}

/* Lista centrada */
#destinatarios .lista-destinatarios {
  list-style: none;
  padding: 0;
  margin: 25px auto;
  max-width: 700px;
  display: inline-block;   /* centra toda la lista */
  text-align: left;        /* mantiene alineación interna */
}

/* Cada elemento */
#destinatarios .lista-destinatarios li {
  position: relative;
  padding-left: 24px;
  margin: 10px 0;
  font-weight: normal;
  color: #2e7d32;          /* verde ambiental */
  font-size: 1.05em;
  transition: color 0.3s ease;
}

/* Punto verde base */
#destinatarios .lista-destinatarios li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background-color: #66bb6a; /* verde claro */
  border-radius: 50%;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease; /* 🔹 suaviza el efecto */
}

/* Efecto al pasar el mouse */
#destinatarios .lista-destinatarios li:hover {
  color: #1b5e20; /* verde más intenso en el texto */
}

#destinatarios .lista-destinatarios li:hover::before {
  transform: scale(1.4);         /* 🔹 crece un poco */
  background-color: #81c784;     /* 🔹 se aclara */
  box-shadow: 0 0 6px rgba(102, 187, 106, 0.7); /* 🔹 brilla suavemente */
}
