/* --- VARIABLES Y RESET FUTURISTA --- */
:root {
  --bg-color: #0a0d14;
  --panel-bg: rgba(18, 24, 38, 0.75);
  --border-cyan: rgba(0, 229, 255, 0.25);
  --accent-cyan: #00e5ff;
  --accent-purple: #8a2be2;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --header-height: 70px;
  --footer-height: 120px;
  --grid-bg: #161b22;
  --neon-cyan: #00f0ff;
  --neon-red: #ff003c;
  --text-color: #c9d1d9;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  /* Espacios para que el contenido no quede oculto detrás de la barra superior ni inferior */
  padding-top: var(--header-height);
  padding-bottom: var(--footer-height);
  min-height: 100vh;
}

/* --- ESTILOS DE BANNER (468x60) --- */
.banner-top-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 0 5px 0;
}

.banner-468x60 {
  width: 468px;
  height: 60px;
  max-width: 100%;
  background: rgba(0, 229, 255, 0.03);
  border: 1px dashed var(--accent-cyan);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.1);
}

/* --- HEADER SUPERIOR FIJO (SIEMPRE VISIBLE) --- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(10, 13, 20, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-cyan);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: 2px;
}

.logo span { color: var(--accent-cyan); }

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

.main-nav a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent-cyan);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

/* Menú Hamburguesa Móvil sin JS (CSS Hack) */
.menu-toggle { display: none; }
.hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.hamburger-btn span {
  width: 25px;
  height: 3px;
  background-color: var(--accent-cyan);
  border-radius: 2px;
}

/* --- CONTENEDOR DE CONTENIDO --- */
.content-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* --- Efecto de enlaces dentro de párrafos --- */
.main-container p a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed var(--border-cyan);
    transition: all 0.3s ease;
}

.main-container p a:hover {
    color: #ffffff;
    background-color: rgba(0, 243, 255, 0.15);
    border-bottom: 1px solid var(--border-cyan);
    box-shadow: 0 0 8px rgba(0, 243, 255, 0.4);
    padding: 0 3px;
    border-radius: 3px;
}

.page-title {
  font-size: 2rem;
  color: var(--accent-cyan);
  margin: 20px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

/* COMPONENTES DE DISEÑO */
.grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  background: var(--panel-bg);
  border: 1px solid var(--border-cyan);
  border-radius: 8px;
  padding: 25px;
  backdrop-filter: blur(8px);
}

.btn-action {
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

/* --- FOOTER INFERIOR FIJO (SIEMPRE VISIBLE) --- */
.main-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--footer-height);
  background: rgba(10, 13, 20, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-cyan);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5px 20px;
}

.footer-credits {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 5px;
  text-align: center;
}

/* --- RESPONSIVE MÓVIL --- */
@media (max-width: 768px) {
  .hamburger-btn { display: flex; }
  
  .main-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(10, 13, 20, 0.98);
    border-bottom: 1px solid var(--border-cyan);
    clip-path: circle(0% at 100% 0);
    transition: clip-path 0.4s ease-in-out;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 25px;
    text-align: center;
  }

  .menu-toggle:checked ~ .main-nav {
    clip-path: circle(150% at 100% 0);
  }
}

/* --- ESTILOS PARA TARJETAS DE TARIFAS --- */
.card.recommended {
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.15);
  position: relative;
  transform: scale(1.05); /* Hace que la tarjeta del medio sea ligeramente más grande */
  z-index: 1;
  background: rgba(18, 24, 38, 0.9);
}

.badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-cyan);
  color: #000;
  padding: 5px 15px;
  font-size: 0.85rem;
  font-weight: 800;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

/* Ajuste para que en teléfonos móviles no se superponga por el 'scale' */
@media (max-width: 768px) {
  .card.recommended {
    transform: scale(1);
    margin-top: 15px;
    margin-bottom: 15px;
  }
}

/* --- ESTILOS PARA IMÁGENES Y LISTAS (BLOG Y POST) --- */

/* Imagen principal para el listado del blog y cabecera del post */
.img-featured {
  width: 100%;
  height: auto;
  max-height: 350px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border-cyan);
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
}

/* Contenedor de contenido del Post */
.post-body {
  color: var(--text-main);
  line-height: 1.8;
}

/* Imágenes dentro del texto del Post */
.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px dashed var(--border-cyan);
  margin: 25px 0;
  display: block; /* Para evitar espacios indeseados debajo de la imagen */
}

/* Listas desordenadas (<ul>) Neo-Futuristas */
.post-body ul {
  margin: 20px 0 20px 20px;
  padding-left: 15px;
  list-style: none; /* Quitamos el punto por defecto */
}

.post-body ul li {
  margin-bottom: 12px;
  position: relative;
  color: var(--text-muted);
}

.post-body ul li::before {
  content: '▹'; /* Viñeta personalizada de flecha/triángulo */
  color: var(--accent-cyan);
  position: absolute;
  left: -20px;
  font-size: 1.2rem;
  line-height: 1.4;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}

/* Listas ordenadas (<ol>) Neo-Futuristas */
.post-body ol {
  margin: 20px 0 20px 20px;
  padding-left: 15px;
  list-style: none;
  counter-reset: mi-contador; /* Iniciamos un contador propio en CSS */
}

.post-body ol li {
  margin-bottom: 12px;
  position: relative;
  counter-increment: mi-contador;
  color: var(--text-muted);
}

.post-body ol li::before {
  content: counter(mi-contador) ".";
  color: var(--accent-purple); /* Usamos el tono púrpura para variar */
  position: absolute;
  left: -25px;
  font-weight: bold;
  font-family: monospace; /* Estilo código */
  text-shadow: 0 0 5px rgba(138, 43, 226, 0.5);
}

/* --- ESTILOS PARA ELEMENTOS COMPLEJOS DENTRO DE LISTAS --- */

/* Subtítulos dentro de las listas */
.post-body li h4 {
  color: var(--accent-cyan);
  font-size: 1.1rem;
  margin-top: 5px;
  margin-bottom: 10px;
  text-shadow: 0 0 5px rgba(0, 229, 255, 0.3);
}

/* Imágenes específicas dentro de las listas */
.post-body li img.list-img {
  width: 100%; /* Hace que ocupe el ancho disponible del contenedor li */
  max-width: 600px; /* Evita que la imagen se vea gigantesca en monitores anchos */
  height: auto; /* Mantiene la proporción sin deformarse (Responsivo) */
  border-radius: 4px;
  border: 1px dashed var(--border-cyan);
  margin: 15px 0;
  display: block;
}

/* Ajuste del párrafo complementario dentro de la lista */
.post-body li p {
  margin-bottom: 15px;
  color: var(--text-muted);
}

/* --- LAYOUT PARA IMAGEN Y TEXTO LADO A LADO DENTRO DE LISTAS --- */

/* Contenedor flex para alinear imagen y texto */
.list-item-layout {
  display: flex;
  gap: 20px; /* Espacio entre la imagen y el texto */
  align-items: flex-start; /* Alinea ambos elementos en la parte superior */
  margin-top: 10px;
  margin-bottom: 15px;
}

/* Variante para cuando quieres la imagen a la DERECHA */
.list-item-layout.img-right {
  flex-direction: row-reverse;
}

/* Imagen diseñada para estar al lado del texto */
.list-item-layout .list-img-side {
  width: 100%;
  max-width: 250px; /* Ancho máximo de la imagen (puedes ajustarlo) */
  height: auto;
  border-radius: 4px;
  border: 1px dashed var(--border-cyan);
  object-fit: cover;
  flex-shrink: 0; /* Evita que la imagen se encoja si hay mucho texto */
}

/* Responsive: Apilar en pantallas de teléfonos móviles */
@media (max-width: 768px) {
  .list-item-layout, 
  .list-item-layout.img-right {
    flex-direction: column; /* Cambia a una sola columna (uno debajo de otro) */
  }
  
  .list-item-layout .list-img-side {
    max-width: 100%; /* En teléfonos, la imagen ocupará todo el ancho disponible */
    margin-bottom: 10px;
  }
}

/* --- BOTONES DE COMPARTIR (REDES SOCIALES) --- */

.share-container {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-cyan);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.share-title {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-share {
  display: inline-block;
  padding: 6px 15px;
  font-size: 0.85rem;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.05);
  border: 1px solid var(--accent-cyan);
  border-radius: 4px;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.btn-share:hover {
  background: var(--accent-cyan);
  color: #000;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
}

/* --- COLORES NEO-FUTURISTAS POR RED SOCIAL --- */

/* X (Antiguo Twitter) - Blanco/Gris Claro */
.btn-x {
  color: #e7e9ea;
  border-color: #e7e9ea;
  background: rgba(231, 233, 234, 0.05);
}
.btn-x:hover {
  background: #e7e9ea;
  color: #000;
  box-shadow: 0 0 10px rgba(231, 233, 234, 0.6);
}

/* Facebook - Azul Neón */
.btn-facebook {
  color: #1877f2;
  border-color: #1877f2;
  background: rgba(24, 119, 242, 0.05);
}
.btn-facebook:hover {
  background: #1877f2;
  color: #fff;
  box-shadow: 0 0 10px rgba(24, 119, 242, 0.6);
}

/* LinkedIn - Azul Profesional Brillante */
.btn-linkedin {
  color: #0a66c2;
  border-color: #0a66c2;
  background: rgba(10, 102, 194, 0.05);
}
.btn-linkedin:hover {
  background: #0a66c2;
  color: #fff;
  box-shadow: 0 0 10px rgba(10, 102, 194, 0.6);
}

/* WhatsApp - Verde Tóxico / Neón */
.btn-whatsapp {
  color: #25d366;
  border-color: #25d366;
  background: rgba(37, 211, 102, 0.05);
}
.btn-whatsapp:hover {
  background: #25d366;
  color: #000;
  box-shadow: 0 0 10px rgba(37, 211, 102, 0.6);
}

/* Telegram - Cian Azulado */
.btn-telegram {
  color: #229ED9;
  border-color: #229ED9;
  background: rgba(34, 158, 217, 0.05);
}
.btn-telegram:hover {
  background: #229ED9;
  color: #fff;
  box-shadow: 0 0 10px rgba(34, 158, 217, 0.6);
}

/* Reddit - Naranja Radiactivo */
.btn-reddit {
  color: #ff4500;
  border-color: #ff4500;
  background: rgba(255, 69, 0, 0.05);
}
.btn-reddit:hover {
  background: #ff4500;
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 69, 0, 0.6);
}

/* Pinterest - Rojo Láser */
.btn-pinterest {
  color: #e60023;
  border-color: #e60023;
  background: rgba(230, 0, 35, 0.05);
}
.btn-pinterest:hover {
  background: #e60023;
  color: #fff;
  box-shadow: 0 0 10px rgba(230, 0, 35, 0.6);
}

/* Email - Amarillo Ámbar / Oro */
.btn-email {
  color: #ffb400;
  border-color: #ffb400;
  background: rgba(255, 180, 0, 0.05);
}
.btn-email:hover {
  background: #ffb400;
  color: #000;
  box-shadow: 0 0 10px rgba(255, 180, 0, 0.6);
}

/* --- ESTILOS PARA TABLAS (DATOS Y COMPARATIVAS) --- */

/* Contenedor responsivo para evitar que la tabla rompa la web en móviles */
.table-wrapper {
  width: 100%;
  overflow-x: auto; /* Activa el scroll horizontal solo si es necesario */
  margin: 30px 0;
  border: 1px solid var(--border-cyan);
  border-radius: 6px;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.05);
  background: rgba(18, 24, 38, 0.4); /* Fondo oscuro semitransparente */
}

/* Estructura principal de la tabla */
.post-body table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px; /* Garantiza un ancho mínimo para que las columnas no se aplasten */
  text-align: left;
}

/* Cabecera de la tabla (TH) */
.post-body th {
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent-cyan);
  padding: 15px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--accent-cyan);
}

/* Celdas de la tabla (TD) */
.post-body td {
  padding: 12px 15px;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(0, 229, 255, 0.1);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

/* Efecto cebra: Filas pares con un fondo sutilmente diferente */
.post-body tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

/* Efecto Hover: Resplandor al pasar el ratón por encima de una fila */
.post-body tbody tr:hover {
  background: rgba(0, 229, 255, 0.08);
}

.post-body tbody tr:hover td {
  color: #fff; /* Resalta el texto a blanco puro */
}

/* Contenedor principal para centrar el video */
.contenedor-video {
  max-width: 800px; /* Puedes ajustar el ancho máximo */
  margin: 20px auto;
  padding: 0 15px;
}

/* Clase para que el iframe sea responsivo */
.video-responsive {
  position: relative;
  height: 0;
  overflow: hidden;
  padding-bottom: 56.25%; /* Proporción 16:9 */
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- LÍNEA SEPARADORA (HR) NEO-FUTURISTA --- */

hr.cyber-line {
  border: 0;
  height: 1px;
  /* Degradado: Transparente en los bordes, Cian en el centro */
  background: linear-gradient(to right, transparent, var(--accent-cyan), transparent);
  margin: 40px auto;
  position: relative;
  width: 90%; /* Para que no toque completamente los bordes de la pantalla */
  overflow: visible;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

/* Rombo brillante en el centro del HR */
hr.cyber-line::before {
  content: '';
  position: absolute;
  top: -5px; /* Ajusta para centrar el rombo verticalmente sobre la línea */
  left: 50%;
  transform: translateX(-50%) rotate(45deg); /* Gira un cuadrado para hacerlo rombo */
  width: 10px;
  height: 10px;
  background-color: #0b0f19; /* Debe coincidir con tu color de fondo principal */
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.8);
}

/* --- TEXTO RESALTADO (HIGHLIGHT) NEO-FUTURISTA --- */

/* Estilo principal en Cian */
mark {
  background-color: rgba(0, 229, 255, 0.15); /* Fondo cian muy sutil */
  color: #ffffff; /* Letra blanca para que resalte sobre el resto del texto */
  padding: 2px 6px;
  border-radius: 2px;
  border-bottom: 1px solid var(--accent-cyan); /* Línea inferior brillante */
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
  font-weight: 600;
  box-shadow: inset 0 0 8px rgba(0, 229, 255, 0.1);
}

/* Variante alternativa en Púrpura (para diferenciar conceptos) */
mark.alt {
  background-color: rgba(138, 43, 226, 0.15);
  border-bottom: 1px solid var(--accent-purple);
  text-shadow: 0 0 8px rgba(138, 43, 226, 0.6);
  box-shadow: inset 0 0 8px rgba(138, 43, 226, 0.1);
}

/* --- ENLACES EN TEXTO (HYPERLINKS) NEO-FUTURISTAS --- */

.post-body p a,
.post-body li a {
  color: var(--accent-cyan);
  text-decoration: none; /* Quitamos el subrayado feo por defecto */
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Creamos una línea láser debajo del enlace usando ::after */
.post-body p a::after,
.post-body li a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.8); /* Resplandor de la línea */
  
  /* Animación: Oculto por defecto y anclado a la derecha */
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

/* Efecto al pasar el cursor (Hover) */
.post-body p a:hover,
.post-body li a:hover {
  color: #fff; /* El texto se vuelve blanco puro */
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}

/* La línea láser se despliega hacia la izquierda al hacer hover */
.post-body p a:hover::after,
.post-body li a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* --- MODAL DE IMÁGENES (LIGHTBOX) NEO-FUTURISTA --- */

/* Indicador visual de que la imagen se puede ampliar */
.img-featured, 
.post-body img {
  cursor: zoom-in;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.img-featured:hover, 
.post-body img:hover {
  filter: brightness(1.2);
}

/* Contenedor principal del Modal oculto */
.cyber-modal {
  display: none; /* Oculto por defecto */
  position: fixed;
  z-index: 9999; /* Por encima de todo, incluido el menú */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 15, 25, 0.95); /* Fondo oscuro semitransparente */
  backdrop-filter: blur(8px); /* Desenfoque de lo que hay detrás */
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Clase para mostrar el modal con transición suave */
.cyber-modal.show {
  display: flex;
  opacity: 1;
}

/* Marco de la imagen (Sin espaciados internos) */
.modal-content {
  position: relative;
  max-width: 95vw; /* Ocupa hasta el 95% del ancho de la pantalla */
  max-height: 95vh; /* Ocupa hasta el 95% del alto de la pantalla */
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.2);
  display: flex;
  background: #000;
  border-radius: 4px;
}

/* La imagen dentro del modal */
.modal-content img {
  max-width: 100%;
  max-height: 95vh;
  object-fit: contain; /* Ajusta la imagen sin deformarla */
  display: block;
}

/* Botón de cerrar tipo HACKER (X) */
.close-modal {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 35px;
  height: 35px;
  background: #0b0f19;
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
  border-radius: 50%;
  font-size: 1.5rem;
  font-family: monospace;
  line-height: 33px; /* Centra la X verticalmente */
  text-align: center;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
  transition: all 0.3s ease;
}

.close-modal:hover {
  background: var(--accent-cyan);
  color: #000;
  transform: scale(1.1);
}

/* --- ESTILOS PARA LA PÁGINA "NOSOTROS" --- */

/* Grid de Estadísticas (Dashboard) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.stat-card {
  background: rgba(18, 24, 38, 0.6);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent-cyan);
  line-height: 1;
  margin-bottom: 10px;
  text-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
  font-family: monospace; /* Le da un toque de código/terminal */
}

.stat-label {
  color: var(--text-muted);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Grid de Tecnologías */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

.tech-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-cyan);
  padding: 15px 25px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
}

.tech-item:hover {
  background: rgba(0, 229, 255, 0.1);
  border-style: solid;
}

/* Las imágenes de los logos de las tecnologías */
.tech-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: grayscale(100%) brightness(200%); /* Hace que los logos se vean grises/blancos */
  transition: filter 0.3s ease;
}

.tech-item:hover .tech-logo {
  filter: grayscale(0%) brightness(100%); /* Recuperan su color original al pasar el ratón */
}

.tech-name {
  color: var(--text-main);
  font-weight: bold;
  letter-spacing: 1px;
}

/* Bloque de Infraestructura Destacado */
.infrastructure-block {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(18, 24, 38, 0.9), rgba(0, 0, 0, 0.8));
  border-left: 4px solid var(--accent-purple);
  padding: 30px;
  border-radius: 4px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .infrastructure-block {
    flex-direction: column;
    text-align: center;
  }
}

/* --- AJUSTE PERFECTO PARA IMÁGENES DEL PORTAFOLIO --- */

/* Asumiendo que la imagen está dentro de una tarjeta o contenedor en portafolio.html */
.portfolio-card img,
.portfolio-item img,
.portfolio-image img {
  width: 100%;   /* Ocupará el 100% del ancho disponible de su caja */
  height: auto;  /* Mantendrá la proporción exacta sin achatarse */
  aspect-ratio: 912 / 547; /* Le dice al navegador la proporción exacta de tus imágenes */
  object-fit: cover;  /* Si la caja tiene un alto forzado, recorta el sobrante sin deformar */
  display: block;  /* Elimina un pequeño margen blanco fantasma que dejan los navegadores debajo de las imágenes */
  border-radius: 4px; /* Opcional: bordes ligeramente redondeados para que combine con el estilo JonWol */
  
  /* Un pequeño efecto al pasar el ratón para mantener la estética */
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Efecto hover sutil para el portafolio */
.portfolio-card:hover img,
.portfolio-item:hover img {
  transform: scale(1.02);
  filter: brightness(1.1);
}

/* IMPORTANTE: Si el contenedor de la imagen tiene un desbordamiento, lo ocultamos para que el zoom del hover no se salga de la caja */
.portfolio-card, .portfolio-item, .portfolio-image {
  overflow: hidden;
}

/* --- FORMULARIO DE CONTACTO NEO-FUTURISTA --- */
.contact-form {
  background: rgba(18, 24, 38, 0.6);
  border: 1px solid rgba(0, 229, 255, 0.2);
  padding: 30px;
  border-radius: 8px;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-main);
  font-weight: bold;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  background: #0b0f19;
  border: 1px solid #2a344a;
  border-radius: 4px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* El CAPTCHA Nativo */
.captcha-box {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(0, 0, 0, 0.5);
  padding: 15px;
  border: 1px dashed var(--accent-purple);
  border-radius: 4px;
}

.captcha-question {
  color: var(--accent-cyan);
  font-family: monospace;
  font-size: 1.2rem;
  font-weight: bold;
}

/* Botón de Enviar */
.btn-submit {
  background: var(--accent-cyan);
  color: #000;
  border: none;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  background: #fff;
  box-shadow: 0 0 15px var(--accent-cyan);
}

/* Mensajes de Alerta (Éxito / Error) */
.alert {
  padding: 15px;
  margin-bottom: 25px;
  border-radius: 4px;
  font-weight: bold;
}

.alert-success {
  background: rgba(0, 255, 128, 0.1);
  border-left: 4px solid #00ff80;
  color: #00ff80;
}

.alert-error {
  background: rgba(255, 64, 129, 0.1);
  border-left: 4px solid #ff4081;
  color: #ff4081;
}

/* --- AVISO DE TARIFAS (DISCLAIMER) --- */
.pricing-disclaimer {
  text-align: center;
  margin: 50px auto 20px auto;
  padding: 20px;
  max-width: 700px;
  border-top: 1px dashed var(--accent-purple);
  border-bottom: 1px dashed var(--accent-purple);
  background: rgba(18, 24, 38, 0.4);
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  border-radius: 4px;
}

.pricing-disclaimer .highlight {
  color: var(--accent-cyan);
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 8px;
}

/* Fondo oscuro que cubre toda la pantalla */
.modal-cyber {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Oscurece el fondo */
    backdrop-filter: blur(5px); /* Efecto cristal en el fondo */
}

/* El contenedor del juego flotante */
.modal-contenido-cyber {
    position: relative;
    margin: 5vh auto; /* Centrado vertical y horizontal */
    width: 90%;
    max-width: 900px; /* Ancho máximo para que no se vea gigante en PC */
    height: 85vh; /* Alto del 85% de la pantalla */
    background: var(--panel-bg, #111);
    border: 1px solid var(--border-cyan, #0ff);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3); /* Resplandor cyan */
}

/* Redondear las esquinas del iframe para que coincida con el borde */
.modal-contenido-cyber iframe {
    border-radius: 8px;
}

/* Botón de Cerrar (Estilo llamativo) */
.cerrar-modal {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #ff0055;
    color: white;
    font-size: 24px;
    font-weight: bold;
    width: 35px;
    height: 35px;
    line-height: 33px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    z-index: 10000;
    transition: 0.3s ease;
}

.cerrar-modal:hover {
    background: #cc0044;
    transform: scale(1.1);
}

h2 {
    color: var(--border-cyan);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}
.subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 14px;
}
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #334155;
    border-radius: 4px;
    color: var(--text-main);
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--border-cyan);
    box-shadow: 0 0 8px rgba(0, 243, 255, 0.3);
}
.checkbox-group, .radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin-top: 5px;
}

/* Hacemos que el contenedor sea una etiqueta interactiva */
.checkbox-item .radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 14px;
    border-radius: 4px;
    border: 1px solid #1e293b;
    cursor: pointer; /* Cambia el cursor a manito en todo el cuadro */
    transition: all 0.2s ease;
}

/* Efecto visual sutil cuando el mouse pasa por encima de todo el cuadro */
.checkbox-item:hover {
    border-color: var(--border-cyan);
    background: rgba(0, 243, 255, 0.05);
}

.checkbox-item .radio-item input {
    accent-color: var(--border-cyan);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* El texto dentro de la etiqueta */
.checkbox-item span {
    color: var(--text-main);
    font-size: 14px;
    user-select: none; /* Evita que se seleccione el texto por accidente al hacer doble clic */
}

fieldset {
    border: 1px solid #00e5ff;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
    background: rgba(0, 0, 0, 0.2);
}
legend {
    color: var(--accent-cyan);
    font-weight: bold;
    padding: 0 10px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}
.btn-enviar {
    background: transparent;
    color: var(--accent-cyan);
    border: 2px solid var(--accent-cyan);
    padding: 14px 25px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}
.btn-enviar:hover {
    background: var(--accent-cyan);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--accent-cyan);
}
.alert {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}
.alert.success {
    background: rgba(0, 255, 100, 0.1);
    border: 1px solid #00ff64;
    color: #00ff64;
}
.alert.error {
    background: rgba(255, 0, 85, 0.1);
    border: 1px solid var(--neon-red);
    color: var(--neon-red);
}

.btn-verificar {
    background: rgba(0, 243, 255, 0.1);
    color: var(--border-cyan);
    border: 1px solid var(--border-cyan);
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    height: 100%;
    transition: 0.3s;
}
.btn-verificar:hover {
    background: var(--border-cyan);
    color: #000;
}
.res-disponible { color: #00ff64; background: rgba(0,255,100,0.1); padding: 8px; border:1px solid #00ff64; border-radius:4px;}
.res-ocupado { color: #ff0055; background: rgba(255,0,85,0.1); padding: 8px; border:1px solid #ff0055; border-radius:4px;}
.res-espera { color: #00f3ff; }

/* --- ESTILOS DE LA SECCIÓN FAQ --- */
.faq-container {
    max-width: 850px;
    margin: 40px auto;
    background: var(--panel-bg, rgba(17, 24, 39, 0.75));
    border: 1px solid var(--border-cyan, #00f3ff);
    border-radius: 8px;
    padding: 35px;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.15);
}

.faq-container h2 {
    color: var(--border-cyan, #00f3ff);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.faq-container .subtitle {
    text-align: center;
    color: var(--text-muted, #94a3b8);
    margin-bottom: 30px;
    font-size: 14px;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Contenedor de cada pregunta (<details>) */
.faq-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #1e293b;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item[open] {
    border-color: var(--border-cyan, #00f3ff);
    box-shadow: 0 0 12px rgba(0, 243, 255, 0.2);
}

/* Cabecera de la pregunta (<summary>) */
.faq-question {
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main, #e2e8f0);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none; /* Oculta la flecha por defecto de HTML */
    user-select: none;
    transition: background 0.2s ease, color 0.2s ease;
}

/* Quita la flecha por defecto en navegadores WebKit/Safari */
.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question:hover {
    background: rgba(0, 243, 255, 0.05);
    color: var(--border-cyan, #00f3ff);
}

/* Icono indicador (+ / -) */
.faq-icon {
    font-size: 20px;
    font-weight: bold;
    color: var(--border-cyan, #00f3ff);
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg); /* Gira el '+' para que parezca una 'x' o '−' */
    color: var(--neon-red, #ff0055);
}

/* Bloque de la respuesta */
.faq-answer {
    padding: 0 20px 18px 20px;
    color: var(--text-muted, #94a3b8);
    font-size: 15px;
    line-height: 1.6;
    border-top: 1px dashed rgba(0, 243, 255, 0.15);
    margin-top: 5px;
}

.faq-answer p {
    margin: 10px 0 0 0;
}

/* Bloque final con botón a contacto */
.faq-contact-box {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #1e293b;
    text-align: center;
}

.faq-contact-box p {
    color: var(--text-main, #e2e8f0);
    font-size: 15px;
    margin-bottom: 18px;
}

.btn-faq-contact {
    display: inline-block;
    background: transparent;
    color: var(--border-cyan, #00f3ff);
    border: 2px solid var(--border-cyan, #00f3ff);
    padding: 12px 28px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-faq-contact:hover {
    background: var(--border-cyan, #00f3ff);
    color: #0b0f19;
    box-shadow: 0 0 15px var(--border-cyan, #00f3ff);
}


/* --- Corrección y Estilo para Listas (UL / OL) --- */
.main-container ul, 
.main-container ol, 
.faq-answer ul, 
.faq-answer ol {
    margin: 12px 0 12px 25px;
    padding-left: 10px;
}

.main-container ul li, 
.faq-answer ul li {
    list-style-type: square; /* Usa un cuadrado sutil en lugar del punto redondo tradicional */
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.5;
}

.main-container ol li, 
.faq-answer ol li {
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Resalta un poco los números de las listas ordenadas con el color cian */
.main-container ol li::marker,
.faq-answer ol li::marker {
    color: var(--border-cyan);
    font-weight: bold;
}

/* --- Estilo neón para enlaces dentro de las respuestas del FAQ --- */
.faq-answer a {
    color: var(--border-cyan, #00f3ff);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed var(--border-cyan, #00f3ff);
    padding: 0 2px;
    transition: all 0.3s ease;
}

.faq-answer a:hover {
    color: #ffffff;
    background-color: rgba(0, 243, 255, 0.15);
    border-bottom: 1px solid var(--border-cyan, #00f3ff);
    box-shadow: 0 0 8px rgba(0, 243, 255, 0.4);
    border-radius: 3px;
}

/* --- Estilo Cyberpunk para Blockquote en Entradas del Blog --- */
/* --- Cita/Blockquote dentro del contenido del post (.post-body) --- */
.post-body blockquote {
    position: relative !important;
    display: block !important;
    margin: 25px 0 !important;
    padding: 20px 25px 20px 30px !important;
    background: rgba(0, 243, 255, 0.04) !important;
    border-left: 4px solid var(--border-cyan, #00f3ff) !important;
    border-top: 1px solid rgba(0, 243, 255, 0.1) !important;
    border-right: 1px solid rgba(0, 243, 255, 0.1) !important;
    border-bottom: 1px solid rgba(0, 243, 255, 0.1) !important;
    border-radius: 0 6px 6px 0 !important;
    color: var(--text-main, #e2e8f0) !important;
    font-style: italic !important;
    box-shadow: inset 0 0 15px rgba(0, 243, 255, 0.03) !important;
}

/* Comillas gigantes de adorno en la esquina */
.post-body blockquote::before {
    content: "“";
    position: absolute;
    top: -5px;
    right: 20px;
    font-size: 60px;
    color: rgba(0, 243, 255, 0.15);
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}

/* Párrafos o texto dentro del blockquote */
.post-body blockquote p {
    margin: 0 !important;
    color: var(--text-main, #e2e8f0) !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
}

/* Autor o firma si usas <cite> */
.post-body blockquote cite {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: var(--border-cyan, #00f3ff);
    font-style: normal;
    font-weight: bold;
    text-align: right;
}

/* --- Estilo Reutilizable: Subtítulo Cyber HUD --- */
.cyber-sub {
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.2rem;
    border-left: 4px solid var(--border-cyan, #00f3ff);
    padding-left: 12px;
    margin-top: 35px;
    background: linear-gradient(90deg, rgba(0, 243, 255, 0.08) 0%, transparent 100%);
    padding-top: 6px;
    padding-bottom: 6px;
}

