/* ============================================================
1) CONFIGURACIONES GENERALES
============================================================ */
:root {
  --azul-claro: #00A9FF;
  --azul: #0073E6;
  --azul-oscuro: #0050A8;
  --fondo-oscuro: #001A33;
  --fondo-mas-oscuro: #000E1A;
  --gris-fondo: #f3f6fa;
  --sombra: rgba(0,0,0,0.25);
}

body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  background: var(--gris-fondo);
  color: #1a1a1a;
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
}

/* LOGO DEL AVE EN NAVBAR */
.logo-ave {
  width: 55px;
  height: auto;
  margin-right: 12px;
  filter: brightness(1) invert(0);
}

.texto-logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* CERRA MENU MOBILE */
/* BOTÓN CERRAR MENÚ */
.cerrar-menu {
  display: none;
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 2.5em;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.cerrar-menu:hover {
  color: var(--azul-claro);
  transform: scale(1.1);
}

/* ============================================================
2) HEADER — GLASS STYLE + MENÚ RESPONSIVE
============================================================ */
.header-glass {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(0, 26, 51, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 2.5em;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}

.header-left {
  display: flex;
  flex-direction: row;      
  align-items: center;      
  margin-right: 0;          
}

.logo {
  font-size: 1.8em;
  font-weight: 700;
  color: white;
  letter-spacing: 1.5px;
  margin-left: -8px;
}

.texto-logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: -8px;
}

.logo span {
  color: var(--azul-claro);
  margin-left: -10px;
}

.slogan {
  color: #b7d4ff;
  font-size: 0.9em;
  margin-top: -4px;
  margin-left: -8px;
}

/* --- NAV --- */
.nav {
  display: flex;
  align-items: center;
  gap: 1.7em;
}

.nav a {
  color: #e8f0ff;
  text-decoration: none;
  font-size: 1.05em;
  transition: 0.3s;
}

.nav a:hover {
  color: var(--azul-claro);
  text-shadow: 0 0 12px var(--azul-claro);
}

/* --- Carrito Badge --- */
#carrito-btn { /* borrar esto al activar MERCADO PAGO */
  display: none !important;
}

.carrito-link {
  position: relative;
}

.badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--azul-claro);
  color: white;
  padding: 3px 7px;
  font-size: 0.75em;
  border-radius: 50%;
  font-weight: bold;
}

/* --- Menú Hamburguesa --- */
.hamburger {
  display: none;
  font-size: 1.8em;
  color: white;
  cursor: pointer;
}

/* ============================================================
3) HERO — PARALLAX + ÍCONO ANIMADO
============================================================ */
.hero-parallax {
  height: 80vh;
  background: url("img/hero.jpg") center/cover fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  box-shadow: inset 0 0 100px rgba(0,0,0,0.6);
}

.hero-parallax::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 30, 60, 0.45);
}

.hero-content {
  z-index: 2;
}

.hero-icon {
  font-size: 3.5em;
  color: var(--azul-claro);
  margin-bottom: 0.4em;
  text-shadow: 0 0 15px var(--azul);
}

.hero-content h1 {
  font-size: 3.6em;
  text-shadow: 0 0 18px rgba(0,0,0,0.6);
}

.hero-content p {
  font-size: 1.3em;
  max-width: 600px;
  margin: 1em auto;
  color: #dce8ff;
}

/* --- Botón principal --- */
.btn-neon {
  display: inline-block;
  padding: 0.9em 2em;
  background: var(--azul);
  color: white;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 0 10px var(--azul);
  transition: 0.3s;
}

.btn-neon:hover {
  background: var(--azul-oscuro);
  box-shadow: 0 0 20px var(--azul-claro);
}

/* ============================================================
4) PROMOCIONES — TARJETAS MÁS PEQUEÑAS
============================================================ */
#promos {
  background: var(--fondo-oscuro);
  color: white;
  text-align: center;
  padding: 3em 1em;
}

#promos h2 {
  font-size: 2em;
  color: var(--azul-claro);
  margin-bottom: 1.5em;
}

.banner-promos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5em;
}

/* --- CARD DE PROMO REDUCIDA --- */
/* --- CARD DE PROMO — ESTILO SIMILAR A LAS CARD-3D --- */
.promo-item {
  background: white;
  border-radius: 18px;
  padding: 1em;
  width: 500px;
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
  transition: 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hover similar al de card-3d */
.promo-item:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 18px 35px rgba(0,0,0,0.25);
}

/* Imagen tipo card-3d */
.promo-item img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  background: #eef3f8;
  border-radius: 12px;
  padding: 10px;
}

/* Título */
.promo-info h3 {
  font-size: 1.2em;
  color: #003f7e;
  margin-top: 0.7em;
  font-weight: 600;
}

/* Precio en promoción */
.promo-info p {
  font-size: 1.2em;
  color: var(--azul);
  font-weight: bold;
  margin: 0.5em 0 1em 0;
}

/* BOTÓN AGREGAR AL CARRITO PARA PROMOS */
.promo-item .agregar-carrito {
  background: var(--azul);
  color: white;
  padding: 0.7em 1.4em;
  border: none;
  border-radius: 12px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
  width: 100%;
  margin-top: 10px;
  box-shadow: 0 4px 12px rgba(0, 115, 230, 0.4);
}

.promo-item .agregar-carrito:hover {
  background: var(--azul-oscuro);
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 169, 255, 0.6);
}

/* Botón */
.btn-ver {
  background: var(--azul);
  color: white;
  padding: 0.6em 1.4em;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn-ver:hover {
  background: var(--azul-oscuro);
  box-shadow: 0 0 12px var(--azul-claro);
}

/* ============================================================
5) PRODUCTOS — TARJETAS 3D
============================================================ */
.title-line {
  text-align: center;
  font-size: 2.4em;
  color: #003f7e;
  margin-top: 1em;
}

.title-line::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  margin: auto;
  background: var(--azul-claro);
  border-radius: 2px;
  margin-top: 8px;
}

.grid-productos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2em;
  padding: 2em;
}

/* --- Card 3D --- */
.card-3d {
  background: white;
  border-radius: 18px;
  padding: 1.2em;
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
  transform-style: preserve-3d;
  transition: 0.3s;

  /* CENTRAR TODO */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-3d:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 18px 35px rgba(0,0,0,0.25);
}

.card-3d img {
  border-radius: 12px;
  height: 190px;         
  width: 100%;
  object-fit: contain;   
  background: #eef3f8;  
  padding: 10px;       
}

.precio {
  font-size: 1.4em;
  color: var(--azul-oscuro);
  font-weight: bold;
}

.card-3d .agregar-carrito {
  background: var(--azul);
  color: white;
  padding: 0.7em 1.4em;
  border: none;
  border-radius: 12px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 115, 230, 0.4);
}

.card-3d .agregar-carrito:hover {
  background: var(--azul-oscuro);
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 169, 255, 0.6);
}

/* ============================================================
6) FORMULARIO DE CONTACTO
============================================================ */
.form-contacto {
  background: var(--fondo-oscuro);
  color: white;
  text-align: center;
  padding: 3em 1em;
}

.form-contacto h2 {
  color: var(--azul-claro);
  margin-bottom: 1.5em;
}

.form-contacto form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2em;
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-group label {
  margin-bottom: 0.5em;
  font-weight: 600;
  color: #dce8ff;
}

.form-group input,
.form-group textarea {
  padding: 0.8em 1em;
  border-radius: 8px;
  border: none;
  outline: none;
  font-size: 1em;
}

.form-group input {
  height: 40px;
}

.form-group textarea {
  resize: vertical;
}

.feedback {
  margin-top: 0.8em;
  font-size: 0.95em;
  color: #ffb3b3;
}

/* ============================================================
7) SERVICIOS — FOOTER SUPERIOR
============================================================ */
.footer-servicios {
  background: var(--fondo-oscuro);
  color: white;
  padding: 3em 1em;
  margin-top: 0.5em;
  text-align: center;
}

.footer-servicios h2 {
  font-size: 2.2em;
  color: var(--azul-claro);
}

.lista-servicios {
  list-style: none;
  padding: 0;
}

.lista-servicios li {
  font-size: 1.2em;
  margin: 0.9em 0;
}

/* ============================================================
8) SECCIÓN REDES SOCIALES 
============================================================ */

/* SECCIÓN REDES EN LÍNEA */
.redes-section {
  background: var(--fondo-oscuro);
  color: white;
  text-align: center;
  padding: 3em 1em;
  margin-top: 0.5em;
}

.redes-section h2 {
  font-size: 2.2em;
  color: var(--azul-claro);
  margin-bottom: 1.2em;
}

/* CONTENEDOR QUE PONE TODO EN LÍNEA */
.redes-container {
  display: flex;
  justify-content: center;
  gap: 3em;
  flex-wrap: wrap;
}

/* TARJETAS INDIVIDUALES */
.red-card {
  width: 240px;
  padding: 1em;
  text-align: center;
}

/* ÍCONOS GRANDES */
.red-icon {
  font-size: 3.5em;
  margin-bottom: 0.4em;
}

.red-icon.insta {
  color: #1877f2;
}

.red-icon.face {
  color: #1877f2;
}

.red-icon.web {
  color: #1877f2;
}

/* Estilo del texto */
.red-card p {
  font-size: 1.1em;
  color: #dce8ff;
  margin-bottom: 0.8em;
}

/* Botones */
.red-btn {
  display: inline-block;
  margin-top: 0.5em;
  background: var(--azul);
  color: white !important;
  padding: 0.8em 2em;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0,0,0,0.4);
  transition: 0.3s;
}

.red-btn:hover {
  background: var(--azul-oscuro);
  transform: translateY(-4px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.5);
}

/* ============================================================
9) FOOTER FINAL
============================================================ */
.footer-final {
  background: var(--fondo-mas-oscuro);
  color: #88b7e6;
  text-align: center;
  padding: 0.5em;
  border-top: 3px solid var(--azul-oscuro);
}

.footer-final a {
  color: var(--azul-claro);
  text-decoration: none;
}

/* --- MODAL --- */
.modal-carrito {
  display: none; /* oculto al inicio */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

/* CONTENIDO DEL MODAL CARRITO */
/* --- MODAL --- */
.modal-carrito {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

/* CONTENIDO DEL MODAL */
.modal-contenido {
  width: 90%;
  max-width: 450px;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  animation: scaleIn 0.3s ease;
  text-align: center;
  position: relative;
  transform-style: preserve-3d;
}

/* EFECTO GLASS */
.glass-effect {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
}

/* ANIMACIONES */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { transform: perspective(600px) rotateX(15deg) scale(0.8); opacity: 0; }
  to { transform: perspective(600px) rotateX(0deg) scale(1); opacity: 1; }
}

/* BOTON X */
.cerrar-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  cursor: pointer;
  color: #fff;
  transition: color 0.3s;
}

.cerrar-modal:hover {
  color: #ff4d4d;
}

/* LISTA DEL CARRITO */
#lista-carrito {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  max-height: 300px;
  overflow-y: auto;
}

#lista-carrito li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  text-align: left;
  color: #fff;
}

/* BOTONES */
.btn-neon {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 2px solid #0ff;
  padding: 10px 20px;
  margin: 5px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0,255,255,0.5);
}

.btn-neon:hover {
  background: #0ff;
  color: #000;
  box-shadow: 0 0 20px #0ff, 0 0 40px #0ff, 0 0 60px #0ff;
}

/* ============================================================
10) UTILIDADES
============================================================ */
.oculto {
  display: none;
}

/* WHATSAPP */
/* BOTÓN FLOTA DE WHATSAPP */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #0ffd66;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 10000;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

/* ============================================================
11) RESPONSIVE
============================================================ */

/* --- Tablets y móviles --- */
@media (max-width: 768px) {

  /* Mostrar hamburguesa */
  .hamburger {
    display: block;
  }

  /* Menú oculto */
  .nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;

    background: rgba(0, 26, 51, 0.98);
    backdrop-filter: blur(12px);

    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5em;

    z-index: 9999;
  }

  /* Menú abierto */
  .nav.nav-open {
    display: flex;
  }

  /* Botón X */
  .cerrar-menu {
    display: none;
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2.5em;
    color: #fff;
    cursor: pointer;
  }

  /* Mobile + menú abierto */
  @media (max-width: 768px) {
    .nav.nav-open .cerrar-menu {
      display: block;
    }
  }

  .nav a {
    font-size: 1.5em;
  }

  .hero-content h1 {
    font-size: 2.4em;
  }

  .grid-productos {
    grid-template-columns: 1fr;
  }

  .promo-item {
    width: 200px;
  }

  .promo-item img {
    height: 130px;
  }

  .logo {
    font-size: 1.4em;
  }

  .slogan {
    font-size: 0.75em;
  }

  .redes-container {
    flex-direction: column;
    align-items: center;
    gap: 2em;
  }
}

@media (max-width: 480px) {

  .logo {
    font-size: 1.2em;
  }

  .slogan {
    font-size: 0.7em;
  }

  .hero-content h1 {
    font-size: 2em;
  }

  .btn-neon {
    padding: 0.7em 1.4em;
  }

  .promo-item {
    width: 170px;
  }

  .promo-item img {
    height: 110px;
  }

  .form-contacto form {
    gap: 0.9em;
  }

  .form-group input,
  .form-group textarea {
    font-size: 0.95em;
    padding: 0.6em 0.9em;
  }
}

@media (min-width: 769px) {
  .cerrar-menu {
    display: none !important;
  }

  .hamburger {
    display: none;
  }
}



