
/* --------------------
   ESTILOS PRINCIPALES LEGION
----------------------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Rubik', sans-serif;
  background-color: #f9f9f9;
  color: #1a1a1a;
  line-height: 1.8;
  font-size: 16px;
}

.header {
  background-color: #f9f9f9;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  flex-wrap: wrap;
}

.logo img {
  height: 50px;
}
.menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.menu a {
  color: #303ebe;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.menu a:hover,
.menu a.activo {
  color: #00ccff;
}

.hero {
  background-color: #f9f9f9;
  padding: 6rem 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  color: #555;
  margin-bottom: 2rem;
}

.btn {
  background: transparent;
  color: #007aff;
  border: 1px solid #007aff;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #007aff;
  color: white;
}

.ventajas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  padding: 4rem 2rem;
  background-color: #f9f9f9;
}

.ventaja {
  padding: 1rem 0;
  border-top: 1px solid #eaeaea;
}

.ventaja h3 {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.ventaja p {
  color: #555;
}

.footer {
  background: #f9f9f9;
  color: #888;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.85rem;
  border-top: 1px solid #eaeaea;
}

.seccion-titulo {
  text-align: center;
  padding: 4rem 2rem 2rem;
}

.seccion-titulo h1 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
  color: #003366;
}

.seccion-titulo p {
  font-size: 1rem;
  color: #555;
}

.grid-servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card-servicio {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 2rem;
  border-left: 5px solid #00ccff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;  /* quita subrayado */
  color: inherit;         /* hereda colores */
  cursor: pointer;        /* mano al pasar */
}

.card-servicio:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.card-servicio h3 {
  color: #003366;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.card-servicio p {
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  color: #444;
}

.card-servicio .precio {
  font-weight: bold;
  color: #00aacc;
}

.card-servicio img {
  max-width: 100%;
  border-radius: 6px;
  margin-bottom: 1rem;
  object-fit: contain;
}

.formulario-compra {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
}

.formulario label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
  color: #003366;
}

.formulario input,
.formulario select,
.formulario textarea {
  width: 100%;
  padding: 0.7rem;
  margin-bottom: 1.2rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
}

.formulario textarea {
  resize: vertical;
}

.formulario-donacion {
  max-width: 800px;
  margin: 3rem auto;
  padding: 2rem;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.formulario-donacion h1 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.formulario-donacion label {
  font-weight: bold;
  margin-bottom: 0.2rem;
}

.formulario-donacion input,
.formulario-donacion select,
.formulario-donacion textarea {
  padding: 0.6rem;
  border: 1px solid #aaa;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
}

.formulario-donacion textarea {
  resize: vertical;
  min-height: 100px;
}

.formulario-donacion button {
  align-self: flex-start;
  padding: 0.7rem 1.8rem;
  font-size: 1rem;
  background-color: #0053a0;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.formulario-donacion button:hover {
  background-color: #003f7d;
}

.aviso-iva {
  color: #888;
  font-size: 0.9rem;
  margin-top: -1rem;
}

.bottom-bar {
  display: None;
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #ffffff;
  border-top: 1px solid #ccc;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
  z-index: 999;
  justify-content: space-around;
}

.bottom-bar a {
  flex: 1;
  text-align: center;
  padding: 0.5rem 0;
  font-size: 0.75rem;
  color: #333;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bottom-bar img {
  width: 24px;
  height: 24px;
  margin-bottom: 0.3rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .menu ul {
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .grid-servicios {
    grid-template-columns: 1fr !important;
    padding: 1rem;
  }

  .card-servicio {
    padding: 1.5rem !important;
  }

  .card-servicio h3 {
    font-size: 1.1rem;
  }

  .card-servicio p,
  .card-servicio .btn {
    font-size: 0.95rem;
  }

  .header {
    display: flex;
    justify-content: center;
  }

  main.contenido-pagina {
    padding-bottom: 100px;
  }

  body {
    padding-bottom: 100px;
  }

  .bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background-color: #fff;
    border-top: 1px solid #ccc;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
    z-index: 999;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 0;
  }

  .bottom-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    color: #333;
    text-decoration: none;
  }

  .bottom-bar img {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
  }

  /* Estilos específicos para móviles muy pequeños (≤480px) */
  .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }

  .btn-azul, 
  .btn-verde {
    margin-right: 0;
  }

  .menu {
    display: none;
  }
}


.btn-azul {
  background-color: #006699;
  color: white;
  margin-right: 1rem;
}

.btn-verde {
  background-color: #25D366;
  color: #fff !important;   /* texto blanco */
  font-weight: 600;         /* más legible */
  display: inline-flex;     /* para alinear ícono + texto */
  align-items: center;
  gap: 8px;                 /* espacio entre ícono y texto */
}
.btn-azul:hover {
  background-color: #004d80;
}

.btn-verde:hover {
  background-color: #1ebd5b;
  color: #fff;              /* se mantiene blanco en hover */
}


.dark-mode body {
  background-color: #121212;
  color: #e0e0e0;
}

.dark-mode .card-servicio {
  background-color: #1e1e1e;
  border: 1px solid #333;
}

.dark-mode .precio {
  color: #4db8ff;
}

.dark-mode header,
.dark-mode .header {
  background-color: #1a1a1a;
}

.dark-mode a {
  color: #66ccff;
}


.toggle-label {
  font-size: 0.9rem;
  color: #fff;
}

.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:checked + .slider:before {
  transform: translateX(22px);
}
.dark-mode .footer {
  background-color: #1a1a1a;
  color: #ccc;
  border-top: 1px solid #333;
}

.dark-mode .footer a {
  color: #66ccff;
}

.dark-mode .bottom-bar {
  background-color: #1e1e1e;
  border-top: 1px solid #333;
}

.dark-mode .bottom-bar a {
  color: #f0f0f0;
}

.dark-mode .bottom-bar img {
  filter: brightness(0) invert(1);
}
.dark-mode {
  background-color: #121212;
  color: #f0f0f0;
}

.dark-mode .header,
.dark-mode .hero,
.dark-mode .ventajas,
.dark-mode .seccion-titulo {
  background-color: #121212;
  color: #f0f0f0;
}

.dark-mode .hero p,
.dark-mode .ventaja p,
.dark-mode .seccion-titulo p {
  color: #d0d0d0;
}

.dark-mode .card-servicio {
  background-color: #1e1e1e;
  border-color: #333;
}

.dark-mode .footer {
  background-color: #1a1a1a;
  color: #ccc;
}

.dark-mode .bottom-bar {
  background-color: #1a1a1a;
  border-top: 1px solid #333;
}

.dark-mode .bottom-bar a {
  color: #f0f0f0;
}

.dark-mode .bottom-bar img {
  filter: brightness(0) invert(1);
}
body,
.hero,
.header,
.footer,
.card-servicio,
.bottom-bar,
.ventajas,
.seccion-titulo {
  transition: background-color 0.4s ease, color 0.4s ease;
}
.dark-mode #logo {
  border-radius: 12px; /* O ajusta a tu gusto: 50% para hacerlo circular */
  background-color: #1e1e1e; /* opcional, si el logo tiene transparencia */
  padding: 4px; /* opcional, para separarlo del fondo */
}

.dark-mode h1,
.dark-mode .hero h1,
.dark-mode .seccion-titulo h1 {
  color: #ffffff; /* blanco puro para máximo contraste */
}
.dark-mode .formulario-compra {
  background-color: #1e1e1e;
  color: #f0f0f0;
}

.dark-mode .formulario input,
.dark-mode .formulario select,
.dark-mode .formulario textarea {
  background-color: #2a2a2a;
  color: #ffffff;
  border: 1px solid #444;
}

.dark-mode .formulario label {
  color: #e0e0e0;
}
.dark-mode h3,
.dark-mode .card-servicio h3,
.dark-mode .ventaja h3,
.dark-mode .formulario-donacion h3,
.dark-mode .formulario-compra h3 {
  color: #ffffff;
}

.dark-mode p,
.dark-mode .card-servicio p,
.dark-mode .ventaja p,
.dark-mode .footer p,
.dark-mode .formulario-compra p,
.dark-mode .formulario-donacion p {
  color: #dddddd;
}
/* Estilos para modo oscuro en tarjetas tipo flip */
.dark-mode .flip-card {
  background-color: transparent;
}

.dark-mode .flip-card-front,
.dark-mode .flip-card-back {
  background-color: #1e1e1e;
  color: #f0f0f0;
  border: 1px solid #333;
}

.dark-mode .flip-card h3 {
  color: #ffffff;
}

.dark-mode .flip-card p {
  color: #dddddd;
}

.dark-mode .flip-card .btn {
  background-color: #0053a0;
  color: white;
  border: none;
}

.dark-mode .flip-card .btn:hover {
  background-color: #007aff;
}
.animacion-legion {
  background-color: #121212;
  padding: 2rem 1rem;
  display: flex;
  justify-content: center;
}

.contenedor-animacion {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.palabras {
  position: relative;
  width: 220px;
  height: 100px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.palabras span {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: cambiar 22s infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  left: 0;
  font-size: 2.5rem;
  color: #fff;
}

.palabras span:nth-child(1)  { animation-delay: 0s; }
.palabras span:nth-child(2)  { animation-delay: 2s; }
.palabras span:nth-child(3)  { animation-delay: 4s; }
.palabras span:nth-child(4)  { animation-delay: 6s; }
.palabras span:nth-child(5)  { animation-delay: 8s; }
.palabras span:nth-child(6)  { animation-delay: 10s; }
.palabras span:nth-child(7)  { animation-delay: 12s; }
.palabras span:nth-child(8)  { animation-delay: 14s; }
.palabras span:nth-child(9)  { animation-delay: 16s; }
.palabras span:nth-child(10) { animation-delay: 18s; }
.palabras span:nth-child(11) { animation-delay: 20s; }

.logo-animacion img {
  max-height: 100px;
}

@keyframes cambiar {
  0%   { opacity: 0; transform: translateY(100%); }
  10%  { opacity: 1; transform: translateY(0); }
  20%  { opacity: 1; }
  30%  { opacity: 0; transform: translateY(-100%); }
  100% { opacity: 0; }
}
.informacion-detallada {
  background-color: #f9fbfd;
  border-radius: 12px;
  padding: 2rem;
  margin: 3rem auto;
  max-width: 960px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.06);
}

.informacion-detallada h2 {
  color: #003366;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #00ccff;
  padding-bottom: 0.5rem;
}

.informacion-detallada ul,
.informacion-detallada ol {
  padding-left: 1.5rem;
  margin-bottom: 2rem;
  color: #333;
  line-height: 1.6;
}

.informacion-detallada li {
  margin-bottom: 0.5rem;
}

.informacion-detallada .faq p {
  margin-bottom: 1rem;
  color: #444;
}

.informacion-detallada strong {
  color: #000;
}
.flip-card {
      background-color: transparent;
      width: 100%;
      height: 100%;
      perspective: 1000px;
    }
.flip-card-inner {
      position: relative;
      width: 100%;
      height: 100%;
      text-align: center;
      transition: transform 0.8s;
      transform-style: preserve-3d;
    }
.flip-card:hover .flip-card-inner {
      transform: rotateY(180deg);
    }
.flip-card-front, .flip-card-back {
      position: absolute;
      width: 100%;
      height: 100%;
      backface-visibility: hidden;
      border: 1px solid #ccc;
      border-radius: 12px;
      padding: 1rem;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
.flip-card-front {
      background-color: #fff;
    }
.flip-card-back {
      background-color: #f4f4f4;
      transform: rotateY(180deg);
    }
.grid-servicios {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.5rem;
      padding: 2rem;
    }
    .flip-card.rotada .flip-card-inner {
  transform: rotateY(180deg);
}

.card-servicio.alto-rendimiento {
  border: 2px solid #e60023;
}

.iframe-thumb {
  width: 100%;
  height: 250px;       /* altura de la miniatura */
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.iframe-thumb iframe {
  width: 2450px;       /* ancho real de la web */
  height: 1300px;      /* alto real de la web */
  transform: scale(0.2); /* cuanto quieres reducir */
  transform-origin: top left;
  border: 0;
  position: absolute;
  top: 0;
  left: 0;
}
.divisor-azul {
  border: none;
  height: 4px;
  width: 80%;       /* o 100% si quieres que abarque todo */
  margin: 2rem auto;
  background-color: #006699; /* azul corporativo */
  border-radius: 2px;
}

/* Estilos para enlaces externos */
.card-servicio[href^="http"] h3::after {
  content: " ↗";
  font-size: 0.9em;
  color: #006699;
}

.card-servicio[href^="http"] .btn::after {
  content: " →";
  margin-left: 5px;
}

/* Mejoras de accesibilidad */
.card-servicio:focus {
  outline: 2px solid #006699;
  outline-offset: 2px;
}

.btn:focus {
  outline: 2px solid #006699;
  outline-offset: 2px;
}

/* Mejor contraste para modo oscuro */
.dark-mode .btn {
  border-color: #4db8ff;
}

.dark-mode .btn:hover {
  background-color: #4db8ff;
  color: #121212;
}

