 /* Variables de colores corporativos */
 :root {
  --color-gris: #707989;
  --color-azul: #2A2B7F;
  --color-verde: #00A1C0;
  --color-gris-claro: #f7fafc;
  --color-texto: #2d3748;
}

html {
  transition: background-color 0.5s, color 0.5s;
}

/* Estilos generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  color: var(--color-texto);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

section {
  padding: 80px 0;
}

h1, h2, h3 {
  margin-bottom: 20px;
  color: var(--color-gris);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  position: relative;
  padding-bottom: 15px;
}

h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--color-azul), var(--color-verde));
}

p {
  margin-bottom: 15px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--color-azul);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--color-verde);
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Header y Navegación */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 50px;
  margin-right: 10px;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.7));
}
.logo img {
  content: url('../images/logo.png');
}

.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--color-gris);
}

.logo-text span {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(90deg, #2b6cb0, #38a169);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-sub {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: #718096;
  margin-left: 4px;
}

.nav-links {
  display: flex;
  list-style: none;
  transition: all 0.3s ease;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-gris);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--color-azul);
}

.mobile-menu {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--color-gris-claro) 0%, white 100%);
  padding: 150px 0 100px;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--color-gris);
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
  color: var(--color-gris);
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--color-azul);
  color: var(--color-azul);
}

.btn-secondary:hover {
  background: var(--color-azul);
  color: white;
}

/* Servicios Section */
.servicios {
  background-color: white;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

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

.servicio-card {
  background: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.servicio-card:hover {
  transform: translateY(-10px);
}

.servicio-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--color-azul);
}

.servicio-card h3 {
  color: var(--color-gris);
}

/* Historia Section */
.historia {
  background-color: var(--color-gris-claro);
}

.historia-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.historia-text {
  padding-right: 20px;
}

.historia-img {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.historia-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* Líneas de Negocio */
.negocios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.negocio-card {
  background: white;
  border-left: 4px solid var(--color-verde);
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Contacto Section */
.contacto {
  background: linear-gradient(135deg, var(--color-azul) 0%, var(--color-verde) 100%);
  color: white;
}

.contacto h2 {
  color: white;
}

.contacto h2:after {
  background: white;
}

.contacto-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contacto-info h3 {
  color: white;
  margin-top: 30px;
  margin-bottom: 15px;
}

.contacto-info p {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.contacto-info i {
  margin-right: 10px;
  width: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: none;
  border-radius: 4px;
  background: rgba(255,255,255,0.9);
}

.contact-form button {
  width: 100%;
}

/* Footer */
footer {
  background-color: var(--color-gris);
  color: white;
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.footer-links h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #cbd5e0;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #718096;
}

.contacto a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contacto a:hover {
  color: var(--color-gris-claro);
}

/* Redes sociales en el footer */
.footer-links.redes {
  text-align: center;
}

.social-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  list-style: none;
  margin-top: 10px;
}

.social-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s, transform 0.2s;
}

.social-list a i {
  font-size: 1.3rem;
  transition: color 0.3s, transform 0.2s;
}

.social-list a:hover {
  color: var(--color-verde);
  transform: translateY(-3px);
}

.social-list a:hover i {
  color: var(--color-azul);
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 80px; /* debajo del header */
    left: 0;
    width: 100%;
    background-color: white;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 999;
    opacity: 0;
    transform: translateY(-15px);
    pointer-events: none;
    transition: all 0.3s ease-in-out;
  }
  
  .nav-links.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    animation: slideDown 0.4s ease forwards;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-15px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-links a {
    color: var(--color-gris);
    font-size: 1.1rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
  }

  .mobile-menu {
    display: block;
    font-size: 1.8rem;
    color: var(--color-gris);
    cursor: pointer;
  }
  
  .hero h1 {
      font-size: 2.2rem;
  }
  
  .historia-content,
  .contacto-content {
      grid-template-columns: 1fr;
  }
  
  .hero-btns {
      flex-direction: column;
      align-items: center;
  }
  
  .btn {
      width: 100%;
      max-width: 250px;
      margin-bottom: 10px;
  }
}

/* MODO OSCURO AUTOMÁTICO */
@media (prefers-color-scheme: dark) {
  .nav-links {
    background-color: #49505d;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  }
  .nav-links a {
    color: #e2e8f0;
  }
  .nav-links a:hover {
    color: var(--color-verde);
  }

  .social-list a {
    color: #a0aec0;
  }
  .social-list a:hover {
    color: #38a169;
  }
  .social-list a:hover i {
    color: #63b3ed;
  }
  .logo-text { color: #f7fafc; }
  .logo-sub { color: #a0aec0; }

  body {
      background-color: #1a202c;
      color: #e2e8f0;
  }

  .logo img {
    content: url('../images/logo.png');
  }

  header, footer {
      background-color: #2d3748;
      color: #e2e8f0;
  }

  .navbar a {
      color: #e2e8f0;
  }

  .navbar a:hover {
      color: var(--color-verde);
  }

  /* HERO SECTION OSCURO */
  .hero {
      background: linear-gradient(135deg, #1a365d 0%, #22543d 100%);
      color: #edf2f7;
  }

  .hero h1 {
      color: #ffffff;
  }

  .hero p {
      color: #e2e8f0;
  }

  .hero-btns .btn {
      background: var(--color-verde);
      color: #1a202c;
  }

  .hero-btns .btn:hover {
      background: var(--color-azul);
      color: #fff;
  }

  .btn.btn-secondary {
      background: transparent;
      border: 2px solid var(--color-verde);
      color: var(--color-verde);
  }

  .btn.btn-secondary:hover {
      background: var(--color-verde);
      color: #1a202c;
  }

    /* SERVICIOS SECTION OSCURO */
    .servicios {
      background-color: #1a202c; /* fondo general del bloque */
  }

  .section-header h2 {
      color: #f7fafc;
  }

  .section-header p {
      color: #cbd5e0;
  }

  .servicios-grid {
      gap: 30px;
  }

  .servicio-card {
      background-color: #2d3748;
      color: #edf2f7;
      border-radius: 8px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .servicio-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
  }

  .servicio-icon {
      color: var(--color-verde); /* íconos verdes para destacar */
  }

  .servicio-card h3 {
      color: #f7fafc;
  }

  .servicio-card p {
      color: #cbd5e0;
  }

  /* SECCIONES GENERALES */
  .servicio-card, .negocio-card {
      background-color: #2d3748;
      color: #e2e8f0;
      border-left-color: var(--color-verde);
  }

  .historia {
      background-color: #1a202c;
  }

  .contacto {
      background: linear-gradient(135deg, #1a365d 0%, #22543d 100%);
      color: #f7fafc;
  }

  .btn {
      background: var(--color-verde);
      color: #1a202c;
  }

  .btn:hover {
      background: var(--color-azul);
      color: white;
  }

  footer a {
      color: #a0aec0;
  }

  footer a:hover {
      color: white;
  }

  .contacto a {
    color: #edf2f7;
  }
  .contacto a:hover {
    color: #c6f6d5;
  }
}

