:root {
  --color-principal: #1265a6;
  --color-oscuro: #1b1d39;
  --color-intermedio: #1c355e;
  --color-gris: #706f6f;
}

body {
  background-color: #fff;
  color: var(--color-gris);
  font-family: 'Urbanist', sans-serif;
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  color: var(--color-principal);
  margin: 0;
}

h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

h2::before,
h2::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--color-principal);
  margin: 0 1rem;
}

/* ------------------- INTRO ------------------- */
.intro-section {
  background-color: #fff;
  color: var(--color-oscuro);
  padding: 8rem 1rem 3rem;
  text-align: center;
}

.intro-section h2 {
  margin-bottom: 1.5rem;
}

.intro-section p {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-family: Arial, sans-serif;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ------------------- FONDO SCROLL ------------------- */
.imagen-fondo-scroll {
  background: url('../recursosimg/fondo-quienes.jpg') center/cover no-repeat fixed;
  height: 100vh;
  width: 100%;
  position: relative;
  z-index: -1;
}

/* ------------------- POR QUÉ ELEGIRNOS ------------------- */
.por-que-elegirnos {
  background-color: #fff;
  color: var(--color-oscuro);
  text-align: center;
  padding: 4rem 1rem;
}

.por-que-elegirnos ul {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
  text-align: justify;
}

.por-que-elegirnos ul li {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-family: Arial, sans-serif;
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* ------------------- SECTORES APLICACIÓN ------------------- */
.sectores-aplicacion {
  padding: 4rem 1rem;
  background-color: #fff;
  text-align: center;
}

.sectores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columnas fijas en pantallas grandes */
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.sector-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.7rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  height: 600px; /* Altura fija para que se vean grandes */
}

.sector-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Para que la imagen se recorte bien */
  filter: brightness(0.6);
  transition: filter 0.3s ease;
}


.sector-item:hover img {
  filter: brightness(1);
}

.sector-item p {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0.8rem 1.2rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  text-align: center;
  border-radius: 0.3rem;
  transition: background 0.3s ease, transform 0.3s ease;
}

.sector-item:hover p {
  background: rgba(0, 0, 0, 0.7);
  transform: translate(-50%, -50%) scale(1.05);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 150px; /* MÁS ABAJO */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 40px;
  border-radius: 12px;
  width: 90%;             /* MÁS ANCHO */
  max-width: 800px;       /* MÁS ANCHO */
  font-family: 'Urbanist', sans-serif;
  font-size: 18px;        /* TEXTO MÁS GRANDE */
  position: relative;
}

.modal-content h3 {
  margin-top: 0;
  font-size: 28px;         /* TÍTULO MÁS GRANDE */
}

.close {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 32px;         /* ÍCONO MÁS GRANDE */
  cursor: pointer;
}

.close:hover {
  color: #000;
}



/* ------------------- SOCIOS COMERCIALES ------------------- */
.socios-comerciales {
  padding: 4rem 1rem;
  background-color: #fff;
  text-align: center;
}

.socios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columnas fijas en pantallas grandes */
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
  justify-items: center;
}

.socio-item img {
  max-width: 220px; /* MÁS GRANDES */
  width: 100%;
  height: auto;
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.socio-item img:hover {
  filter: none;
  transform: scale(1.05);
}

@media (max-width: 992px) {
  .socios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .socios-grid {
    grid-template-columns: 1fr;
  }

  .socio-item img {
    max-width: 180px;
  }
}


/* ------------------- FOOTER ------------------- */
.footer {
  background-color: #000;
  color: #fff;
  padding: 2rem 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.logo-footer img {
  max-width: 100px;
  margin: 0 auto;
}

.footer strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-principal);
  font-weight: bold;
}

.footer .direccion,
.footer .contacto,
.footer .redes {
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer .redes a {
  color: #fff;
  margin: 0 0.5rem;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.footer .redes a:hover {
  color: var(--color-principal);
}

/* ------------------- WHATSAPP FLOTANTE ------------------- */
.whatsapp-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  z-index: 9999;
  gap: 10px;
  flex-wrap: nowrap;
}

.whatsapp-label {
  background-color: white;
  color: #25D366;
  padding: 10px 15px;
  border-radius: 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-container:hover .whatsapp-label {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.whatsapp-float {
  background-color: #25D366;
  color: #fff;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 2rem;
  text-decoration: none;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.45);
}

/* ------------------- BREAKPOINTS ------------------- */

@media (max-width: 768px) {
  .sectores-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .sectores-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .intro-section h2,
  .por-que-elegirnos h2,
  .sectores-aplicacion h2,
  .socios-comerciales h2 {
    font-size: 2rem;
  }

  .whatsapp-container {
    bottom: 15px;
    right: 15px;
    flex-direction: column-reverse;
    align-items: flex-end;
  }

  .whatsapp-label {
    margin-top: 6px;
  }
}
