/* =========================
   1. VARIABLES GLOBALES
========================= */
:root {
  --brand-navy: #092342;
}

/* =========================
   2. RESET Y BASE
========================= */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--brand-navy);
}
a{
  color:#092342;
  text-decoration:none;
}

/* =========================
   3. UTILIDADES
========================= */
.text-capitalize {
  text-transform: capitalize;
}

/* =========================
   4. HERO (SECCIÓN PRINCIPAL)
========================= */
.hero {
  position: relative;
  min-height: 100vh;
  background-image: url("./assets/rcj.webp");
  background-size: cover;
  background-position: center;
  place-items: center;
  padding: 2rem 1.2rem;
  isolation: isolate;
  color: var(--text);
}

.hero--white {
  --text: var(--brand-navy);
  --accent: var(--brand-navy);
  --email-border: rgba(9, 35, 66, 0.4);
  --divider: rgba(9, 35, 66, 0.35);
  --overlay-top: rgba(255, 255, 255, 0.2);
  --overlay-bottom: rgba(255, 255, 255, 0.582);
}

/* Overlay */
.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--overlay-top), var(--overlay-bottom));
  z-index: -1;
}

/* =========================
   5. CONTENIDO PRINCIPAL
========================= */
.content {
  width: min(980px, 100%);
  text-align: center;
}

.construction-notice {
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 20px;
}

/* =========================
   6. BRAND / LOGOS
========================= */
.brand {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 9vw, 8rem);
  font-weight: 600;
  line-height: 0.9;
}

.brand-logo {
  width: min(350px, 82vw);
  height: auto;
}

/* Control de logos por tema */
.brand-logo--blue {
  display: none;
}

.hero--white .brand-logo--light {
  display: none;
}

.hero--white .brand-logo--blue {
  display: inline-block;
}

/* =========================
   7. TEXTO Y TAGLINE
========================= */
.tagline {
  margin: 2.4rem auto 0;
  max-width: 860px;
  font-size: clamp(0.9rem, 1.2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--accent);
}

/* =========================
   8. GALERÍA DE EMPRESAS
========================= */
.galeria-section {
  padding: 0px 10px;
  text-align: center;
}

.galeria-section h2 {
  margin-bottom: 10px;
  font-size: 1rem;
  color: var(--brand-navy);
}

.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
}

.galeria img {
  width: 100%;
  height: 85px;
  object-fit: contain;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.galeria img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

/* =========================
   9. VISOR (ZOOM DE IMAGEN)
========================= */
#visor {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

#visor img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}


.correo-btn {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 3.9;
}


/* =========================
   10. REDES SOCIALES
========================= */
.social-media {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.8rem;
}

.social-link {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-link img {
  width: 22px;
}

.social-link:hover {
  transform: translateY(-2px);
}

.grid {
  display: grid;
  gap: 1rem;
  /* Mobile primero: 2 columnas */
  grid-template-columns: repeat(3, 1fr);
}
/* Tablet / desktop: 4 columnas */
@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}






/* =========================
   11. FOOTER
========================= */
footer{
  position: fixed;
  left: 0;
  bottom: 0;
  text-align: center;
  width: 100%;
}
.ppagina {
  padding: 0.5rem 1.5rem 1.5rem;
  text-align: center;
  font-family: sans-serif;
}

.footer-tagline {
  font-size: 14px;
  color: #1d285c;
  margin-bottom: 1rem;
}
.footer-section-label {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1d285c;
  margin-bottom: 10px;
}
.rsociales {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid #ddd;
  background: #fff;
  transition: background 0.15s;
}
.social-btn:hover { background: #f0f0f0; }
.social-btn.fb { color: #185FA5; }
.social-btn.ig { color: #993556; }
.social-btn.li { color: #0C447C; }
.footer-divider {
  border: none;
  border-top: 1px solid #662698;
  margin: 0 0 1rem;
}
.footer-copy { font-size: 12px; color: #1d285c;
}

/* =========================
   12. RESPONSIVE
========================= */
@media (max-width: 640px) {
  .hero {
    padding: 1.2rem 1rem 2.2rem;
  }

  .social-link {
    width: 38px;
    height: 38px;
  }

  .galeria img {
    height: 120px;
  }
}