:root {
  --rojo: #FF0000;
  --amarillo: #FFD500;
  --plateado: #C0C0C0;
  --fondo: #0A0A0B;
  --blanco: #FFFFFF;
  --texto-oscuro: #1a1a1a;
}

/* Esto activa el scroll suave en toda la página y compensa el header sticky */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--fondo);
  color: rgb(255, 255, 255);
  overflow-x: hidden;
  width: 100%;
}


header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  align-items: center;
  background-color: #000000;
  border-bottom: solid #d23030;
}

.nav-links {
  display: flex;
  margin: 1rem;
  gap: 2rem;
}

.nav-links li {
  list-style-type: none;
  font-size: 1.2rem;
}

.nav-links li a {
  text-decoration: none;
  color: #fff9f9;
}

.nav-links a:hover {
  color: var(--amarillo);
}

.navbar .logo-text a img {
  width: 3.5rem;
  transition: width 0.3s ease;
}

/* Botón Hamburguesa (Oculto por defecto) */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  font-size: 1.8rem;
  color: white;
}

.icon-whatsapp {
  color: #25D366;
  transition: transform 0.3s ease;
}

/* Efecto para Instagram (Degradado característico) */
.icon-instagram {
  color: #E4405F;
  /* Color base */
  transition: transform 0.3s ease;
}

/* Efecto de aumento al pasar el mouse para que resalten */
.nav-links li a:hover .icon-whatsapp,
.nav-links li a:hover .icon-instagram {
  transform: scale(1.2);
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero {
  display: flex;
  justify-content: center;
  padding: 1rem;
  margin: 3rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero img {
  width: 40rem;
  height: auto;
  border-radius: 100%;
}

/* Estilo de Secciones con Transparencia 92% */
.section {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 4rem 2rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  color: var(--blanco);
  text-align: center;
}

.section h2 {
  color: #ffffff;
}

.subtitle {
  color: var(--amarillo);
  font-weight: bold;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.subtitle-about {
  color: var(--amarillo);
  font-weight: bold;
  font-size: 3rem;
}

.text-gradient {
  background: linear-gradient(90deg, var(--amarillo), #FF8C00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  text-shadow: 0 0 20px rgba(255, 213, 0, 0.3);
}

::selection {
  background: var(--rojo);
  color: var(--blanco);
}

/* Estadísticas fijas sobre el fondo oscuro */
.stats-container {
  display: flex;
  justify-content: space-around;
  max-width: 1000px;
  margin: -50px auto 20px;
  padding: 2rem;
}

.stat-item {
  text-align: center;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: scale(1.05);
}

.stat-item strong {
  display: block;
  font-size: 2rem;
  color: var(--blanco);
  transition: color 0.3s ease;
}

.stat-item span {
  font-size: 0.8rem;
  color: #888;
  transition: color 0.3s ease;
}

.stat-item:hover strong,
.stat-item:hover span {
  color: var(--amarillo);
}

/* Side by Side (Imagen y Texto) */
.side-by-side {
  display: flex;
  align-items: center;
  gap: 3rem;
  text-align: left;
  color: #ffffff;
}

.side-by-side-about {
  display: flex;
  flex-direction: column;
  justify-items: center;
  gap: 1rem;
  text-align: center;
  padding: 1rem;
  color: #f9f6f6;
}

.side-by-side-about .aboutText p {
  line-height: 1.8;
}

hr {
  background: #FF0000;
  height: 0.15rem;
  color: red;
  opacity: 10;
  margin-left: auto;
  margin-right: auto;
  width: 70%;
}

.text-block {
  flex: 1;
}

.image-block {
  flex: 1;
  height: 350px;
  background: #ddd;
  border-radius: 20px;
  overflow: hidden;
}

.image-block img {
  flex: 1;
  width: 100%;

}

.side-by-side-about .imgLogo img {
  width: 20rem;
}

/* Lista de checks */
.check-list {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.check-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-list i {
  color: var(--amarillo);
}

/* Botones */
.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.cta {
  background: var(--rojo);
  color: white;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.cta:hover {
  background: #cc0000;
}

.cta-outline {
  border: 2px solid var(--plateado);
  color: var(--plateado);
  padding: 13px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.cta-outline:hover {
  background: var(--plateado);
  color: var(--fondo);
}

/* Footer Final */
.footer-cta {
  background: var(--rojo);
  padding: 6rem 2rem;
  text-align: center;
  color: white;
}

.footer-cta .cta {
  background: white;
  color: var(--rojo);
}

.footer-cta .cta:hover {
  background: var(--plateado);
  color: var(--texto-oscuro);
}

.footer-cta .cta-outline {
  border-color: white;
  color: white;
}

.footer-cta .cta-outline:hover {
  background: white;
  color: var(--rojo);
}

/* =========================================
   NUEVOS ESTILOS: GALERÍA EXPANDIBLE
   ========================================= */

.expanding-gallery {
  display: flex;
  width: 100%;
  height: 450px;
  gap: 15px;
  margin-top: 2rem;
  padding: 0 10px;
  box-sizing: border-box;
}

.expanding-card {
  position: relative;
  flex: 1;
  /* Todos inician con el mismo tamaño */
  border-radius: 20px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: flex 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* Efecto elástico suave */
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  text-decoration: none; /* Asegura que no haya subrayado por el enlace */
}

/* Al pasar el mouse, la tarjeta crece */
.expanding-card:hover {
  flex: 5;
}

/* Capa oscura para legibilidad del texto */
.expanding-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.1));
  z-index: 1;
}

/* Contenido (Icono y Texto) */
.card-content {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 2;
  color: white;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Iconos circulares (ahora rojos) */
.icon-wrapper {
  background: var(--rojo);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 4px 10px rgba(255, 0, 0, 0.4);
}

.text-wrapper h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.text-wrapper p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0;
  /* Oculto por defecto */
  max-height: 0;
  transition: all 0.5s ease;
  overflow: hidden;
}

/* Mostrar descripción solo al hacer hover */
.expanding-card:hover .text-wrapper p {
  opacity: 1;
  max-height: 100px;
  margin-top: 10px;
}

/* --- RESPONSIVE (MÓVIL) --- */
@media (max-width: 768px) {
  /* Navbar Móvil */
  .navbar {
    padding: 0.8rem 1.5rem;
  }

  .navbar .logo-text a img {
    width: 2.5rem;
  }

  .menu-toggle {
    display: block; /* Aparece en móvil */
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: 0;
    transform: translateX(100%); /* Ahora se esconde sin estirar la pantalla */
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    width: 100%;
    height: calc(100vh - 70px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    transition: transform 0.4s ease; /* Animación más suave */
    margin: 0;
    z-index: 1000;
  }

  .nav-links.active {
    transform: translateX(0); /* Se desliza hacia adentro */
  }

  .nav-links li {
    font-size: 1.5rem;
  }

  /* Hero Móvil (EL CAMBIO IMPORTANTE) */
  .hero {
    margin: 1.5rem;
  }

  .hero img {
    width: 80% !important;
    max-width: 280px; /* Tamaño ideal iPhone */
    height: auto;
    border-radius: 20px; /* Menos redondeado para que no parezca un círculo perfecto si no lo es */
  }

  .hero h1 {
    font-size: 1.8rem !important;
    text-align: center;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
    padding: 0 1rem;
  }

  .stats-container {
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 0;
  }

  .stat-item {
    width: 45%;
  }

  .side-by-side {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .check-list li {
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 15px;
  }

  .image-block {
    width: 100%;
    height: 250px;
    order: 2; /* Manda la imagen debajo del texto */
  }

  .text-block {
    order: 1;
  }

  .expanding-gallery {
    flex-direction: column;
    height: auto;
  }

  .expanding-card {
    height: 250px;
    flex: none;
    width: 100%;
  }

  .text-wrapper p {
    opacity: 1;
    max-height: 100px;
    margin-top: 10px;
  }
}

/* =========================================
   NUEVOS ESTILOS: FORMULARIO DE CONTACTO
   ========================================= */
.contact-section {
  background: rgba(255, 255, 255, 0.05);
  /* Fondo sutil para el contenedor */
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5rem 2rem;
}

.contact-header h2 {
  color: var(--blanco) !important;
  /* Forzamos blanco para que no se pierda */
  margin-bottom: 3rem;
}

.contact-form {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Cuadrícula para los 4 campos superiores */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Dos columnas */
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

/* CORRECCIÓN DE LETRAS: Ahora son blancas */
.form-group label {
  font-size: 0.9rem;
  color: var(--blanco);
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
}


.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.07);
  /* Fondo oscuro pero visible */
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 15px;
  border-radius: 12px;
  color: var(--blanco);
  /* Texto que escribe el usuario en blanco */
  font-size: 1rem;
  transition: all 0.3s ease;
}

/* Efecto al hacer clic en el campo */
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--rojo);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

/* El área de mensaje ocupa todo el ancho */
.full-width {
  width: 100%;
}

.btn-submit {
  align-self: center;
  /* Centra el botón */
  padding: 18px 60px;
  font-size: 1.1rem;
  cursor: pointer;
  border: none;
  transition: 0.3s;
}

.btn-submit:hover {
  background-color: #cc0000;
  transform: scale(1.05);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
    /* En celular, una sola columna */
  }

  .contact-header h2 {
    font-size: 1.8rem;
  }

  .btn-submit {
    width: 100%;
    /* Botón ancho completo en móvil */
  }
}

/* =========================================
   SOPORTE TÉCNICO VISTA (SPA)
   ========================================= */
.support-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 100px);
  padding: 2rem 1rem;
}

.box-soporte {
  width: 100%;
  max-width: 600px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  transition: opacity 0.4s ease;
  z-index: 10;
}

.box-soporte h2 {
  color: var(--amarillo);
  margin-bottom: 1.5rem;
  text-align: center;
}

.user-status {
  text-align: center;
  color: var(--plateado);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
/* Estilos anteriores de .text-blue eliminados para evitar conflictos */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.full-width { grid-column: span 2; }

/* Slider de Urgencia Personalizado */
.urgency-slider-container { margin: 1rem 0; width: 100%; }
.urgency-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  border-radius: 4px;
}
.urgency-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--amarillo);
  cursor: pointer;
  transition: background 0.3s ease;
}
.urgency-slider.level-2::-webkit-slider-thumb { background: #ff8c00; }
.urgency-slider.level-3::-webkit-slider-thumb { background: var(--rojo); }

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-weight: bold;
  color: var(--plateado);
  font-size: 0.85rem;
}
.slider-labels span { transition: color 0.3s; }
.slider-labels .active { color: white; }

/* Input Archivos Customizado */
.file-upload-container {
  border: 2px dashed rgba(255,255,255,0.3);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-top: 5px;
  cursor: pointer;
  transition: border-color 0.3s;
  background: rgba(0,0,0,0.2);
}
.file-upload-container:hover { border-color: var(--amarillo); }
.file-upload-container i { font-size: 1.8rem; color: var(--plateado); margin-bottom: 8px; }
.file-upload-container input[type="file"] { display: none; }

/* Ajustes Responsive para Soporte */
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .full-width { grid-column: span 1; }
  .box-soporte { padding: 20px; }
}
