/* ============================================================
   BASE.CSS — Grupo Ríos Castañeda
   Estilos compartidos por TODAS las páginas: reset, tipografía,
   encabezado/menú de navegación y pie de página.
   Cárgalo siempre ANTES del CSS propio de cada página.
   ============================================================ */

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

body {
  font-family: 'Open Sans', sans-serif;
  color: #333;
  line-height: 1.6;
}

h1, h2, h3, h4, .logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

/* ===== ENCABEZADO / NAVEGACIÓN ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.4s ease;
  background: transparent;
  padding: 15px 0;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

nav {
  width: 90%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.8em;
  color: #fff;
  transition: color 0.3s ease;
  letter-spacing: 1px;
}

header.scrolled .logo {
  color: #003366;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 35px;
}

nav li a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  transition: color 0.3s;
  font-size: 0.95em;
}

header.scrolled nav li a {
  color: #333;
}

nav li a:hover,
nav li a.active {
  color: #0077cc;
}

/* Menú móvil (botón hamburguesa) */
.menu-toggle {
  display: none;
  font-size: 1.8em;
  cursor: pointer;
  color: #fff;
  transition: color 0.3s;
}

header.scrolled .menu-toggle {
  color: #333;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: absolute;
    left: 25px;
  }

  .logo {
    margin-left: 40px;
  }

  nav ul {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 60px;
    gap: 35px;
    transition: left 0.3s ease;
  }

  nav ul.show {
    left: 0;
  }

  nav ul li {
    margin: 15px 0;
  }

  nav ul li a {
    font-size: 1.3em;
  }

  header.scrolled ul {
    background: rgba(255, 255, 255, 0.98);
  }

  header.scrolled ul li a {
    color: #333;
  }
}

/* ===== PIE DE PÁGINA ===== */
footer {
  background: #003366;
  color: white;
  padding: 50px 20px 25px;
}

.footer-simple {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-resumen h3 {
  color: white;
  font-size: 1.8em;
  margin-bottom: 20px;
  text-align: center;
}

.footer-resumen > p {
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin-bottom: 35px;
  line-height: 1.7;
  font-size: 1.05em;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.info-resumida {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.info-item i {
  color: #00aaff;
  margin-top: 5px;
  font-size: 1.1em;
  min-width: 25px;
  text-align: center;
}

.info-item span {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-size: 1em;
  text-align: left;
}

.info-item em {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9em;
  font-style: italic;
  display: block;
  margin-top: 5px;
}

.footer-redes-simple {
  text-align: center;
  margin: 40px 0;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-redes-simple h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.3em;
}

.redes-links {
  display: flex;
  justify-content: center;
  gap: 25px;
}

.redes-links a {
  color: white;
  font-size: 1.4em;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.redes-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.redes-links a:nth-child(1):hover { background: #25D366; } /* WhatsApp */
.redes-links a:nth-child(2):hover { background: #1877F2; } /* Facebook */
.redes-links a:nth-child(3):hover { background: #E1306C; } /* Instagram */
.redes-links a:nth-child(4):hover { background: #0077B5; } /* LinkedIn */

.footer-copy-simple {
  text-align: center;
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9em;
}

@media (max-width: 768px) {
  footer {
    padding: 30px 15px 15px;
  }

  .info-item {
    font-size: 0.9em;
  }

  .redes-links {
    gap: 15px;
  }

  .redes-links a {
    width: 35px;
    height: 35px;
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  .footer-resumen h3 {
    font-size: 1.5em;
  }

  .footer-resumen > p {
    font-size: 0.95em;
  }

  .info-item span {
    font-size: 0.9em;
  }

  .redes-links {
    gap: 20px;
  }

  .redes-links a {
    width: 45px;
    height: 45px;
    font-size: 1.2em;
  }
}
