/* ==========================================================
   SOGEOSA — Hoja de estilo principal (2025)
   ========================================================== */

/* ---------- Variables globales ---------- */
:root {
  --bg: #f6f7f9;
  --fg: #1a1a1a;
  --muted: #666;
  --red: #b22222;
  --red-dark: #8b1a1a;
  --white: #fff;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* ---------- Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  margin-top: 80px; /* evita que el header tape el contenido */
}

/* ---------- Contenedores ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
}

h1, h2, h3 {
  color: var(--fg);
  font-weight: 700;
}

p {
  color: var(--muted);
}

/* ==========================================================
   HEADER Y MENÚ SUPERIOR
   ========================================================== */

.site-header {
  background: var(--white);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.brand-accent {
  color: var(--red);
}

/* ---------- Menú principal ---------- */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* enlaces normales */
.nav-link {
  text-decoration: none;
  color: var(--fg);
  font-weight: 500;
  opacity: 0.85;
  transition: color 0.3s ease, opacity 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--red);
  opacity: 1;
}

/* ---------- Dropdown ---------- */
.dropdown {
  position: relative;
}

.dropdown-toggle::after {
  content: "";
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 0;
  min-width: 220px;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
  z-index: 100;
}

.dropdown-menu a {
  padding: 10px 16px;
  text-decoration: none;
  color: var(--fg);
  display: block;
  transition: background 0.3s ease, color 0.3s ease;
}

.dropdown-menu a:hover {
  background: var(--red);
  color: var(--white);
}

/* Hover (escritorio) */
.dropdown:hover .dropdown-menu {
  padding: 10px 0;
  max-height: 400px;
  opacity: 1;
  visibility: visible;
}

/* ---------- Activos ---------- */
.nav-link.active,
.dropdown-item.active {
  color: var(--red);
  font-weight: 600;
  position: relative;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}

.dropdown-item.active {
  background: var(--red);
  color: var(--white);
}

/* ---------- Botón menú móvil ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle .bar {
  height: 3px;
  width: 100%;
  background: var(--fg);
  margin: 4px 0;
  border-radius: 4px;
  transition: all 0.3s ease;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--white);
    border-top: 1px solid #eee;
    box-shadow: var(--shadow);
    padding: 10px 0;
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .nav-menu.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .dropdown-menu {
    position: static;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    box-shadow: none;
    padding-left: 20px;
    transition: all 0.3s ease;
  }

  .dropdown.active .dropdown-menu {
    max-height: 400px;
    opacity: 1;
    visibility: visible;
    padding: 8px 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

/* ==========================================================
   TARJETAS / SECCIONES
   ========================================================== */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: visible;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.card-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 14px;
  display: block;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover .card-img {
  transform: scale(1.03);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
  background: #fafafa;
  border-top: 1px solid #eee;
  padding: 30px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ==========================================================
   ANIMACIONES Y REVEAL
   ========================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================
   RESPONSIVIDAD EXTRA
   ========================================================== */
@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2rem;
  }
}
.empleados-hero {
  position: relative;
  min-height: 100vh;
  background: url('/assets/img/fondos/empleados-bg.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
}

.empleados-hero .overlay {
  background: rgba(0, 0, 0, 0.55);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empleados-container {
  max-width: 900px;
  padding: 40px 20px;
}

.empleados-container h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
  color: var(--white);
}

.empleados-container p {
  color: #ddd;
  margin-bottom: 50px;
  font-size: 1.05rem;
}

.empleados-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.empleado-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  padding: 40px 10px;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
}

.empleado-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.empleado-btn .emoji {
  font-size: 2.5rem;
  margin-bottom: 10px;
  display: block;
}

.empleado-btn span:last-child {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
/* ==========================================================
   PIE DE PÁGINA (FOOTER)
   ========================================================== */
.site-footer {
  background: #fafafa;
  border-top: 1px solid #eee;
  padding: 25px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-copy {
  color: var(--muted);
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.footer-links a {
  text-decoration: none;
  color: var(--fg);
  font-weight: 500;
  opacity: 0.8;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.footer-links a:hover {
  color: var(--red);
  opacity: 1;
}

@media (max-width: 640px) {
  .footer-links {
    flex-direction: column;
    gap: 8px;
  }
}
