/* ======================================================
   VARIABLES DE COLOR – PALETA PRINCIPAL
   ====================================================== */

 :root {
  /* Fondo general */
  --color-fondo: #121417;           
  --color-fondo-secundario: #1a1c20; 
  --color-fondo-card: #212429;       

  /* Texto */
  --color-texto: #e5e5e5;
  --color-texto-suave: #bbb;
  --color-titulo: #00ffc8;
  --color-texto-claro: #fafafa;

  /* Botones y acentos */
  --color-acento: #00ffc8;
  --color-acento-hover: #00bfa6;
  --color-destacado: #e63946;

  /* Fondo oscuro para header/footer */
  --color-header-footer: #141414;

  /* Sombras */
  --sombra-suave: rgba(0, 255, 200, 0.05);
  --sombra-media: rgba(0, 255, 200, 0.2);
  --sombra-fuerte: rgba(0, 255, 200, 0.3);
} 

/* ======================================================
   RESET 
   ====================================================== */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* altura mínima = alto total de la ventana */
}


body, ul, li, a {
  text-decoration: none;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

main {
  flex: 1; /* ocupa todo el espacio disponible */
}

/* ======================================================
   ESTILO GENERAL
   ====================================================== */
body {
  font-family: 'Roboto', sans-serif;
  background: var(--color-fondo);
  color: var(--color-texto);
}

/* ======================================================
   MENU DE NAVEGACION
   ====================================================== */
nav {
  background: var(--color-header-footer);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  box-shadow: 0 0 10px var(--sombra-fuerte);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-family: 'Orbitron', sans-serif;
  color: var(--color-acento);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo a{
  color: var(--color-acento-hover);
  text-decoration: none;
}

.logo:hover{
  color: var(--color-texto-claro);
}
.menu {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.menu li a {
  color: var(--color-texto);
  font-weight: 500;
  transition: color 0.3s, text-shadow 0.3s;
}

.menu li a:hover {
  color: var(--color-destacado);
}

/* ======================================================
   HERO SECTION
   ====================================================== */
.hero {
  text-align: center;
  padding: 6rem 2rem;
  background: radial-gradient(circle at center, #1f1f1f 0%, var(--color-fondo) 100%);
  color: var(--color-texto-suave);
}

.hero h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  color: var(--color-acento);
  text-shadow: 0 0 8px var(--color-acento);
}

.hero p {
  font-size: 1.1rem;
  margin-top: 1rem;
  color: var(--color-texto-suave);
}

.btn-cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 1.5rem;
  background: var(--color-acento);
  color: var(--color-header-footer);
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: all 0.3s;
}

.btn-cta:hover {
  background: var(--color-acento-hover);
  transform: scale(1.05);
}

/* ======================================================
   CONTENIDO PRINCIPAL
   ====================================================== */
main {
  text-align: center;
  padding: 2rem;
}

.info-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 2rem 1rem;  
}

.info-card {
  flex: 1 1 220px;
  max-width: 260px;
  background: #2a2b30;
  color: #fff;
  text-align: center;
  border-radius: 12px;
  padding: 1.5rem 1rem;
  box-shadow: 0 0 10px rgba(0, 255, 200, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(0, 255, 200, 0.2);
}

/* Iconos grandes y destacados */
.info-card i {
  font-size: 2rem;
  color: var(--color-acento, #00ffc8);
  margin-bottom: 0.8rem;
}

/* Título */
.info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

/* Texto */
.info-card p {
  color: #ccc;
  font-size: 0.9rem;
}

/* Contenedor principal */
.main-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  align-items: flex-start; 
  border-radius: 10px;
  gap: 2rem;
  margin: 0 auto;          
  padding: 4rem 0;         
  max-width: 1200px;
}

.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 1rem;
  max-width: 250px;
  text-align: center;
  transition: transform 0.2s;
  font-family: 'Poppins', sans-serif;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  border-radius: 10px;
}

.card h3 {
  font-size: 1.2rem;
  margin: 0.5rem 0;
  color: var(--color-fondo-card);
}

.card p {
  font-size: 0.9rem;
  color: #555;
}

.video-section {
  text-align: center;
  padding: 3rem 1rem;
  background: var(--color-fondo);
}

.video-section h2 {
  color: var(--color-acento);
  margin-bottom: 1.5rem;
  font-family: 'Orbitron', sans-serif;
  text-shadow: 0 0 8px rgba(200, 0, 255, 0.3);
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border: 3px solid rgba(180, 0, 255, 0.6);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(200, 0, 255, 0.4), 
              0 0 50px rgba(255, 0, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container:hover { 
  box-shadow: 0 0 35px rgba(220, 0, 255, 0.6),
              0 0 70px rgba(255, 0, 255, 0.3);
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ======================================================
   SECCION: productos
   ====================================================== */

.items-container {

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5rem, 1fr));
  gap: 1rem;
  max-width: 1100px;      
  margin: 0 auto; 
  justify-items: center;  
  padding: 0 2rem;
  margin-top: 6rem;

}
/* Cada card */
.item-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between; 
  align-items: center;
  width: 280px;         /* ancho fijo para uniformidad */
  min-height: 420px;    /* alto mínimo igual para todas */
  background: var(--color-fondo-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
  box-shadow: 0 0 12px var(--sombra-suave);
  transition: all 0.3s ease;
}

.item-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px var(--sombra-media);
}

/* Imagen */
.item-card img {
  width: 100%;
  height: 180px;          /* igual alto para todas */
  object-fit: cover;      /* mantiene proporción */
  border-radius: 10px;
  margin-bottom: 1rem;
}

/* Título */
.item-card h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  color: var(--color-acento);
  margin-bottom: 0.6rem;
}

/* Descripción */
.item-card p {
  color: var(--color-texto-suave);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

/* Precio */
.item-card .precio {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--color-texto-claro);
  margin-bottom: 1rem;
}

/* Botón */
.btn-add {
  background: var(--color-acento);
  color: var(--color-header-footer);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  align-self: center; 
  width: auto;
  margin-bottom: 0.5rem;
}

.btn-add i {
  margin-right: 6px;
}

.btn-add:hover {
  background: var(--color-acento-hover);
  
}


/* ===== CARRUSEL DE RESEÑAS ===== */
.reviews-section {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(180deg, #1c1c1c 0%, #242424 100%);
  color: #eee;
  position: relative;
}

.carrusel {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.review-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.review {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
}

.review.active {
  opacity: 1;
  position: relative;
}

.review-text {
  font-size: 1.2rem;
  font-style: italic;
  color: #cfcfcf;
}

.review h4 {
  font-weight: 500;
  color: #7fc4ff;
  margin-top: 0.5rem;
}

/* Botones del carrusel */
.btn-carrusel {
  background: #2a2a2a;
  border: 1px solid #555;
  color: #7fc4ff;
  font-size: 1.2rem;
  padding: 0.6rem 1rem;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 2;
}

.btn-carrusel:hover {
  background: #7fc4ff;
  color: #121212;
  transform: scale(1.1);
}

.prev {
  position: absolute;
  left: -3rem;
}

.next {
  position: absolute;
  right: -3rem;
}

@media (max-width: 600px) {
  .prev { left: -1.5rem; }
  .next { right: -1.5rem; }
}


/* Animación automática del carrusel */
@keyframes cambio {
  0%, 33% { transform: translateX(0); }
  34%, 66% { transform: translateX(-100%); }
  67%, 100% { transform: translateX(-200%); }
}

/* ======================================================
   SECCION CONTACTO
   ====================================================== */
.contacto {
  background: var(--color-fondo-secundario);
  padding: 4rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.titulo-contacto {
  font-family: 'Orbitron', sans-serif;
  color: var(--color-acento);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px var(--sombra-media);
}

.contacto p {
  color: var(--color-texto-suave);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.form-contacto {
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
  background: var(--color-fondo-card);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 15px var(--sombra-suave);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.campo {
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
}

.campo label {
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--color-texto);
}

.campo input,
.campo textarea {
  padding: 0.8rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #2a2d32;
  color: var(--color-texto);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.campo input:focus,
.campo textarea:focus {
  border-color: var(--color-acento);
  box-shadow: 0 0 8px var(--sombra-media);
}

.btn-enviar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-acento);
  color: var(--color-header-footer);
  font-weight: bold;
  border: none;
  border-radius: 6px;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  font-size: 1rem;  
}

.btn-enviar:hover {
  background: var(--color-acento-hover);
  transform: scale(1.05);
}

/* ======================================================
   FOOTER
   ====================================================== */
footer {
  text-align: center;
  padding: 1rem;
  background: var(--color-header-footer);
  font-size: 0.9rem;
  color: #aaa;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.05);
}

/* ======================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 1rem;
  }

  .menu {
    flex-direction: column;
    align-items: center;
  }

  .hero h2 {
    font-size: 1.6rem;
  }
}

/*  Tablets (entre 768px y 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
  .items-container {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas */
    max-width: 800px;
    gap: 2rem;
  }
}

/* Móviles (menor a 768px) */
@media (max-width: 767px) {
  .items-container {
    grid-template-columns: 1fr; 
    max-width: 400px;
    gap: 1.5rem;
    padding: 1.5rem 1rem;
  }

  .item-card {
    width: 100%; 
    min-height: 380px; 
  }

  .item-card img {
    height: 160px;
  }

  .item-card h2 {
    font-size: 1rem;
  }

  .btn-add {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}