:root {
  --color-bg: #7a7676; /* Fondo negro */
  --color-bg-alt: #ea0000; /*---Fondo de la barra superior---*/ 
  --color-text: #ffffffa8; /* Texto blanco */
  --color-text-muted: #fffdfd;
  --color-primary: #0f1821; /* Negro para el boton de comprar */
  --color-card: #1a1a1a;
  --shadow-soft: 0 8px 20px rgba(255, 239, 239, 0.3);
}



/* ===== Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
    font-size: 15px;  /* Reducir tamaño global */
}




/* Header */
.header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  background: var(--color-bg-alt);
  position: fixed;       /* Fijo para que quede arriba */
  top: 0;
  left: 0;
  z-index: 9999;         /* Muy alto para que siempre esté encima */
  box-shadow: var(--shadow-soft);
}

/* Ícono hamburguesa */
.hamburger {
  display: none;         /* Se muestra solo en móvil */
  cursor: pointer;
  font-size: 32px;
  color: var(--color-text);
  z-index: 10000;        /* Asegura que quede por encima de todo */
  background: transparent;
  border: none;
}

/* Mostrar solo en pantallas pequeñas */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  /* Menú lateral oculto por defecto */
  .nav {
    position: fixed;
    right: -250px;       /* fuera de la pantalla inicialmente */
    top: 0;
    width: 250px;
    height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: right .3s ease;
    z-index: 9999;
  }


  /*---Nav que edita el fondo del hamburger----*/
.nav {
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(6px);
    justify-content: center;
       align-items: center;       /* Centrado horizontal */
}


  /* Cuando el menú se despliega */
  .nav.show {
    right: 0;
  }
}


.logo {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--color-text);
}
.nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
}
.nav a {
  color: var(--color-text);
  font-weight: bold;
  text-decoration: none;
  transition: .2s ease;
}
.nav a:hover {
  color: var(--color-primary);
}


main {
  padding: 150px;
}

h1, h2 {
  margin-bottom: 15px;
}

/*transicion fluida css*/

.hero {
  opacity: 0;
  transition: opacity 1s ease;
}

.hero.visible {
  opacity: 1;
}


/* ===== Para mostrar el Menú Móvil (Lateral) ===== */
.hamburger {
  display: none;
  cursor: pointer;
  font-size: 28px;
  color: var(--color-text);
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    right: -250px;
    top: 0;
    width: 250px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: .3s ease;
  }

  .nav ul {
    flex-direction: column;
    text-align: center;
    gap: 35px;
  }

  .nav.show {
    right: 0;
  }

  .hamburger {
    display: block;
  }
}


/* ===== Footer Nuevo ===== */
.footer {
  margin-top: 100px;
  background: var(--color-bg-alt);
  display: flex;
  justify-content: space-around;
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid #222;
}
.footer-col h4 {
  color: var(--color-primary);
  margin-bottom: 10px;
}
.footer p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer {
    flex-direction: column;
    gap: 15px;
  }
}

.contenido {
  position: relative;
  text-align: center;
  z-index: 1;
  color:#e4e4e4
}

h1 {
  font-size: 3em;
  margin-bottom: 0.5em;
}

p {
  font-size: 1.2em;
  opacity: 0.9;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background-color: #000000;
  color: #ffffff;
  
}

/* ===== Hero Sección para telefonos ===== */
.hero {
  width: 100%;
  min-height: 100vh;
  padding-top: 70px; /* separación extra por el header fijo */
  background-size: cover;        /* Escala la imagen para cubrir todo */
  background-repeat: no-repeat;  /* No repetir la imagen */
  background-position: center;   /* Centrar la imagen */
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  color: var(--color-text);      /* Para que el texto se vea sobre la imagen */
}

/* Texto centrado sobre la imagen */
.hero-content {
  text-align: center;
  z-index: 2;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 1.4rem;
  color: var(--color-text-muted);
  margin-bottom: 25px;
}

.btn-primary {
  padding: 14px 32px;
  background: var(--color-primary);
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  color: white;
  transition: .2s ease;
}
.btn-primary:hover {
  opacity: 0.8;
}

/* ===== Carrusel Pantalla Completa ===== */
/* Contenedor del carrusel: debe ser 'relative' para que los hijos absolute
   se posicionen respecto a él, y ocultar overflow para recortar bien */
.carousel {
  position: relative;    /* MUY importante */
  width: 100%;
  height: 100vh;         /* ocupa toda la altura de la ventana */
  overflow: hidden;
  top: 0;
  left: 0;
}

/* Imágenes: ocupan todo el contenedor y se centran correctamente */
.carousel img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;         /* escala y recorta proporcionalmente */
  object-position: center;   /* centra la parte visible de la imagen */
  opacity: 0;
  transition: opacity .1s ease, transform .1s ease;
  transform: scale(1.02);    /* pequeño zoom para look 'hero' (opcional) */
}

.carousel img.active {
  opacity: 1;
  transform: scale(1);       /* quita el zoom cuando está activo */
}

/* Opcional: si quieres que la primera imagen cargue sin parpadeo */
.carousel img:first-child {
  will-change: opacity, transform;
}


/* ===== Responsividad ===== */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.0rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
}


/*---iconos centrados---*/

.nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav ul li a {
  display: flex;
  align-items: center; /* Centra verticalmente texto + icono */
  justify-content: space-between; /* Separa texto e icono uniformemente */
  gap: 8px; /* Espacio entre texto e icono */
  text-decoration: none;
}

.material-icons {
  font-size: 20px; /* Ajusta tamaño si lo necesitas */
  line-height: 1;
}


/*--- Colores de los iconos---*/


.nav ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  text-decoration: none;
  color: #ffffff; /* Color base del texto */
  transition: color 0.3s ease; /* Suaviza el cambio de color */
}

.material-icons {
  font-size: 22px;
  transition: color 0.3s ease, transform 0.3s ease; /* Animación para ícono */
}

/* Hover */
.nav ul li a:hover {
  color: #ffffff; /* Color del texto al pasar el mouse */
}

.nav ul li a:hover .material-icons {
  color: #ffffff; /* Color del icono */
  transform: scale(2.5); /* Efecto de ligero zoom */
}

/*----CSS para catalogo de productos----*/

.productos {
  padding: 40px;
  text-align: center;
}

.grid-productos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  background: #111;
  border-radius: 12px;
  padding: 15px;
  transition: transform .3s ease, box-shadow .3s ease;
}

.card img {
  width: 100%;
  border-radius: 10px;
}

.card h3 {
  margin: 10px 0 5px;
  color: #fff;
}

.precio {
  font-size: 1.1em;
  margin-bottom: 10px;
  color: #44a7ff;
  font-weight: bold;
}

.btn-agregar {
  background: #44a7ff;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .3s;
}

.btn-agregar:hover {
  background: #0077cc;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);

}


/*-----Carrito contenedor para el Controlador 25/11/25----*/

.carrito-container {
    max-width: 1000px;
    margin: 90px auto;
    background: #3c4542; /*Tabla exterior*/
    padding: 20px;
    border-radius: 48px;
}

/* TABLA DEL CARRITO — OCUPA TODO EL ANCHO */
.tabla-carrito {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 35px;  /* ⭐ separa claramente del total */
    background: #c6c8bf; /*Tabla interior */
       border-radius: 48px;
}

/* ENCABEZADOS Y CELDAS */
.tabla-carrito th, 
.tabla-carrito td {
    padding: 12px;
    border: 0px solid #c5c5c5;
    text-align: center;
    color: #000000;    /*texto interior de la tabla ---*/
    border-radius: 48px;
}

/* SOLO el contenido de la tabla (no afecta encabezados) */
.tabla-carrito td {
    color: #2b2b2b;       /* texto oscuro y legible */
    font-size: 17px;      /* tamaño adecuado */
    font-weight: 500;     /* un poco más grueso */
}

.tabla-carrito th {
    background: #ad0000;
    color: #fcfcfc;   /* ← CAMBIA ESTE COLOR */
    font-weight: bold;
    border-radius: 4px;
}

/* Esquinas superiores de la tabla */
.tabla-carrito thead th:first-child {
    border-top-left-radius: 20px;
}

.tabla-carrito thead th:last-child {
    border-top-right-radius: 20px;
}


/* ENCABEZADOS */
.tabla-carrito th {
    background:  #ea0000;
    font-weight: bold;
       border-radius: 0px;
}

/* IMÁGENES */
.img-carrito {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 16px;
}

/* BOTONES */
.btn-remove, 
.btn-clear {
    display: inline-block;
    padding: 6px 12px;
    background: #e74c3c;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
}

.btn-remove:hover, 
.btn-clear:hover {
    background: #c0392b;
}

.total-carrito {
    text-align: left;
    font-size: 1.3em;
    display: block;
    margin-top: 15px;
    padding-top: 15px;

    border-top: 2px solid #c6c5c5;  /* ⭐ separa visualmente de la tabla */
    color: #cfcfcf;   /* texto para el Total S  */
}

.vacio {
    font-size: 1.2em;
    color: #fff;
    text-align: center;
}


/* --- BURBUJA DEL CARRITO (Nueva y mejorada) --- */
.icono-carrito {
  position: relative;
  font-size: 28px;
}

/* Burbuja */
.contador-carrito {
  position: absolute;
  top: -10px;
  right: -10px;

  background: #ff0000;
  color: white;
  font-size: 13px;
  font-weight: bold;

  width: 22px;
  height: 22px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 0 5px rgba(0,0,0,0.4);
  z-index: 99999;
}


/*----Animacion al Agregar al Carrito---*/


.btn-agregar {
  background: #44a7ff;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .5s, transform .3s;
}

.btn-agregar:active {
  transform: scale(0.92);
}

/* Efecto al agregar */
.btn-agregar.added {
  background: #00c853;
  animation: bounce .6s ease;
}

@keyframes bounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.15); }
  60% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

/*---2do Efecto Carrito ----*/


.icono-carrito.anim {
  animation: pulse .5s ease;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* --- Imagen voladora --- */
.fly-img {
  position: fixed;
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  pointer-events: none;
  z-index: 5000;
  transition: transform 0.9s cubic-bezier(0.55, 0.09, 0.68, 0.53),
              opacity 0.9s ease;
  transform-origin: center;
}

/*----CSS para Modal en Ventana de Inicio de Sesion---*/


/* Fondo oscuro detrás del modal */
.modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(3px);
}

/* Caja del modal */
.modal-content {
    background: #111;
    margin: 10% auto;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    color: white;
}

/* Botón cerrar */
.close {
    float: right;
    font-size: 26px;
    cursor: pointer;
    color: white;
}

.modal-content input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 6px;
    border: none;
    background: #222;
    color: white;
}

.btn-login-submit {
    width: 100%;
    padding: 12px;
    background: #0f1821;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.btn-login-submit:hover {
    background: #162534;
}

/*----Boton Checkout CSS----*/


.btn-pagar {
    display: inline-block;
    padding: 10px 18px;
    background: #27ae60;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    margin-right: 10px;
    transition: 0.3s ease;
}

.btn-pagar:hover {
    background: #1e8449;
}

/* Estilo para logos de método de pago */
.payment-card img { height: 32px; display: inline-block; }


.mastercard-info {
    text-align: center;
    margin: 10px 0;
}

.mastercard-logo {
    height: 55px;
    cursor: pointer;
    transition: transform .2s ease;
}

.mastercard-logo:hover {
    transform: scale(1.05);
}

.mastercard-how a {
    font-size: 13px;
    color: #E67E22;
    text-decoration: none;
}

.mastercard-how a:hover {
    text-decoration: underline;
}
.payment-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.badge-logo {
    height: 55px;
}


/*---CSS para la seccion CONTACTO----*/

/* === FORMULARIO DE CONTACTO === */

.form-contacto {
    width: 100%;
    max-width: 600px;
}

.form-contacto label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-contacto input,
.form-contacto textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 19px;
    background: #fff;
}

.form-contacto textarea {
    height: 180px; /* ← Aumentar tamaño del área de texto */
    resize: none;  /* Evita que se deforme */
}

.form-contacto .btn-enviar {
    display: inline-block;
    padding: 12px 20px;
    font-size: 16px;
    background: black;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: 0.2s ease;
}

.form-contacto .btn-enviar:hover {
    background: #333;
}
