/* ======== VARIABLES ======== */
:root {
  --color-primario: #0f2a44;
  --color-secundario: #2e2e2e;
  --color-acento: #ffcc00;
  --color-fondo: #f4f4f4;
  --color-texto: #222;
  --fuente-principal: "Poppins", sans-serif;
}

/* ======== GENERALES ======== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--fuente-principal);
  background: var(--color-fondo);
  color: var(--color-texto);
}
a {
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
}

/* ======== HEADER ======== */
.contenedor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-primario);
  padding: 15px 30px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
}

/* Menú escritorio */
.contenedor-header nav a {
  color: white;
  margin-left: 20px;
  font-weight: 600;
  transition: 0.3s;
}
.contenedor-header nav a:hover {
  color: white;
  opacity: 0.7;
}

/* Botón Contacto en Menú (Escritorio) */
.btn-nav-contacto {
  background: transparent;
  color: #ffffff !important;
  padding: 8px 15px;
  border-radius: 5px;
}

/* Botón Hamburguesa */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1300;
}
.menu-toggle .bar {
  width: 30px;
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

/* ======== HERO ======== */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  background-size: cover;
  background-position: center;
}
.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}
.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.btn-principal {
  background: #25d366;
  color: #ffffff;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  transition: transform 0.3s;
  display: inline-block;
}
.btn-principal:hover {
  transform: scale(1.05);
}

/* ======== SECCIONES ======== */
.contenedor-seccion {
  padding: 80px 20px;
  max-width: 1200px;
  margin: auto;
}
.titulo-seccion {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--color-primario);
}

/* Servicios */
.grid-servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.card {
  background: white;
  padding: 30px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.card .icono {
  font-size: 3rem;
  margin-bottom: 15px;
}

/* Nosotros */
.seccion-nosotros {
  background: white;
  padding: 80px 20px;
}
.contenedor-nosotros {
  max-width: 1000px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}
.texto-nosotros {
  flex: 1 1 400px;
}
.imagen-nosotros {
  flex: 1 1 400px;
}
.imagen-nosotros img {
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
.lista-ventajas {
  list-style: none;
  padding: 0;
}
.lista-ventajas li {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.lista-ventajas {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.lista-ventajas li {
  position: relative;
  padding-left: 30px; /* Espacio para que el texto no tape el punto */
  margin-bottom: 15px;
  font-size: 1.1rem;
  line-height: 1.4;
}

/* Esto dibuja el punto automáticamente */
.lista-ventajas li::before {
  content: "•"; /* Puedes cambiar este punto por '✔' si prefieres */
  position: absolute;
  left: 0;
  top: -5px;
  color: var(--color-acento); /* Se pinta amarillo */
  font-size: 2.5rem; /* Tamaño del punto */
  line-height: 1;
}

/* Contacto */
.seccion-contacto {
  background: var(--color-primario);
  color: white;
  text-align: center;
  padding: 80px 20px;
}
.btn-grande-whatsapp {
  background: #25d366;
  color: white;
  padding: 15px 40px;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 50px;
  display: inline-block;
  margin: 30px 0;
  text-shadow: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.datos-extra {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Footer */
footer {
  background: #050f1a;
  color: #aaa;
  text-align: center;
  padding: 20px;
}

/* ======== RESPONSIVE (MENÚ MÓVIL ORIGINAL) ======== */
@media (max-width: 768px) {
  /* Menú Overlay 100% Pantalla */
  nav#menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100vw;
    background: var(--color-primario);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1200;
  }

  nav#menu.active {
    transform: translateX(0);
  }

  /* Enlaces grandes y centrados */
  nav#menu a {
    font-size: 2rem;
    margin: 15px 0;
    color: white;
    display: block;
  }

  /* Botón Contacto en móvil (adaptado a texto grande) */
  nav#menu .btn-nav-contacto {
    background: transparent;
    color: white !important;
    font-size: 2.2rem;
    padding: 0;
  }

  .menu-toggle {
    display: flex;
  } /* Mostrar hamburguesa */

  .contenedor-nosotros {
    flex-direction: column-reverse;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
}

/* Animaciones */
.animar {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.6s;
}
.animar.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Para JS del toggle */
.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}
