:root {
  --primary-color: #00e5ff;
  --secondary-color: #00FFFF;
  --text-color: #f0f0f0;
  --bg-dark: #070e17;
  --bg-light: #18202b;
  --card-bg: #1c2530;

  --sf-contrast: var(--text-color);
  --sf-muted: #bfc9d6;
  --sf-accent: var(--primary-color);
  --sf-max-width: 1200px;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-dark) !important;
  color: var(--text-color);
}

.menu-toggle {
    display: none;
  }


/* ------------------ BODY - TITULOS ------------------ */


.services h2,
.product-showcase h2,
#formularioContacto h2 {
  color: var(--primary-color);
  font-size: 2.5rem;
  text-align: center;
  margin: 0;
  padding: 90px 0px 50px 0px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
}

/* ------------------ NAVBAR------------------ */

.main-header {
  background-color: var(--bg-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: 700;
}

nav a {
  color: var(--text-color);
  font-size: 1.1rem;
  text-decoration: none;
  margin-left: 20px;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--primary-color);
}

.cart-icon {
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 600;
}

.cart-icon:hover {
  color: var(--primary-color);
}


/* ------------------ HERO ------------------ */

.hero {
  background: url('../assets/licensed-image.jpg') no-repeat center center/cover;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.65);
}

.hero-content {
  z-index: 10;
}

.hero-content h1 {
  background: linear-gradient(to right, #fff 20%, var(--primary-color) 40%, var(--primary-color) 60%, #fff 80%);
  background-size: 200% auto;
  color: #000;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 3s linear infinite;
  font-size: 3.5em;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

.cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--bg-dark);
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  margin-top: 25px;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.4);
}

.cta-button:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.6);
}

/* ------------------TARJETAS DE SERVICIOS  ------------------ */

.service-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.service-item {
  flex-basis: 30%;
  min-width: 280px;
  padding: 40px 30px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;

  /* Efecto Cristal (Glassmorphism) */
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(0, 229, 255, 0.5);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);

  transition: all 0.4s ease;

  color: var(--primary-color);
}

.service-item h3 {
  font-weight: 600;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
  margin-bottom: 15px;
}

/* El resplandor inferior (Glow) */
.service-item::before {
  background: var(--secondary-color);
  content: "";
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  filter: blur(40px);
  opacity: 0.4;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.service-item:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--secondary-color);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.service-item:hover::before {
  opacity: 0.7;
}

/* ------------------ PRODUCTOS ------------------ */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 20px;
}

.price-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: 15px;
}

.precio {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.product-card {
  perspective: 1000px;
  padding: 5px;
  display: flex;
}

.product-info h3 {
  font-size: 1.7rem;
}

.product-glass {
  background: var(--card-bg);
  color: var(--primary-color);
  backdrop-filter: blur(15px);
  border: 1px solid var(--secondary-color);
  border-radius: 25px;
  padding: 15px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;

  width: 100%;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.floating-img {
  width: 90%;
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
  transform: translateY(-10px) rotate(-5deg);
  transition: 0.4s;
}

.product-glass:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.9);
}

.product-glass:hover .floating-img {
  transform: translateY(-30px) rotate(5deg) scale(1.1);
}

/* Botón circular de añadir */
.add-btn-circle {
  background: var(--primary-color);
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  color: #000;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.add-btn-circle:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.1);
}

/* --------------- CARRITO LATERAL ---------------*/

.side-cart {
  border-left: 1px solid var(--primary-color);
  position: fixed;
  right: -400px;
  top: 0;
  width: 350px;
  height: 100vh;
  backdrop-filter: blur(20px);
  z-index: 1000;
  transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.side-cart.active {
  right: 0;
}

#cart-overlay {
  background: rgba(0, 0, 0, 0.3);
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;
}

#cart-overlay.active {
  display: block;
}

/* ---- TITULO CARRITO LATERAL ----*/

.cart-header {
  color: var(--primary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--primary-color);
  padding-bottom: 15px;
  padding: 0 10px 15px 10px;
}

.close-cart {
  color: var(--primary-color);
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

/* ---- TARJETA DE COMPRAS LATERAL ----*/

.cart-items-container {
  flex-grow: 1;
  overflow-y: auto;
  margin-top: 15px;
}

.cart-item {
  color: var(--bg-dark);
  background: var(--primary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 15px;
  margin-bottom: 15px;
  padding: 8px 15px;
}

.remove-btn {
  color: var(--bg-dark);
  background: var(--primary-color);
  border: none;
  padding: 2px 10px;
  border-radius: 5px;
  cursor: pointer;
}

.total-row {
  color: var(--primary-color);
  border-top: 2px solid var(--primary-color);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  padding: 20px 10px 0 10px;
}

/* Botón carrito lateral */
.cart-footer .btn-primary {
  color: var(--bg-dark) !important;
  background: var(--primary-color);
  border: none !important;
  height: 50px;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.4);
  transition: all 0.3s ease;
}

.cart-footer .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 229, 255, 0.3);
  filter: brightness(1.1);
}

/* ----------------------- CONTACTO ----------------------------- */

.contact-section {
  background-color: var(--bg-dark);
  padding: 120px 0;
}

.contact-container {
  display: flex;
  gap: 50px;
  align-items: stretch;
  width: 100%;
  max-width: var(--sf-max-width);
  margin: 0 auto;
}

.contact-info,
.contact-form-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-info {
  color: var(--text-color);
  flex: 1;
}

.contact-info h2 {
  color: var(--primary-color);
  text-align: left !important;
  padding: 0 0 20px 0 !important;
}

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: 0.3s;
}

.glass-card i {
  color: var(--primary-color);
  background: rgba(0, 229, 255, 0.1);
  font-size: 1.5rem;
  padding: 15px;
  border-radius: 12px;
}

.glass-card h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--sf-muted);
}

.glass-card p {
  margin: 0;
  color: white;
  font-weight: 600;
}

.glass-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
  transform: translateX(10px);
}

/* Panel del Formulario */
.contact-form-panel {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);

  /* Bordes y sombras con luz */
  border: 1px solid rgba(0, 229, 255, 0.5);
  border-radius: 25px;
  padding: 40px;
  box-shadow: 0 25px 50px rgba(0, 229, 255, 0.2),
    inset 0 0 15px rgba(255, 255, 255, 0.05);

  transition: all 0.3s ease;
}

.contact-form-panel:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.4);
}

.contact-form-panel form {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 415px;
}

.contact-form-panel .form-label {
  color: var(--primary-color);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.contact-form-panel .form-control {
  background: rgba(0, 0, 0, 0.2) !important;
  border: 1px solid rgba(0, 229, 255, 0.2);
  color: var(--primary-color);
  backdrop-filter: blur(5px);
}

.contact-form-panel .form-control:focus {
  background: rgba(0, 0, 0, 0.5) !important;
  color: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
  outline: none;
}

.contact-form-panel .form-control::placeholder {
  color: rgba(0, 229, 255, 0.4);
  font-style: italic;
}

/* Botón formulario */
.contact-form-panel .btn-primary {
  color: var(--bg-dark) !important;
  background: linear-gradient(45deg, #0099aa, var(--primary-color)) !important;
  border: none !important;
  height: 50px;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
  transition: all 0.3s ease;
}

.contact-form-panel .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 229, 255, 0.5);
  filter: brightness(1.1);
}


/* ----------------------- FOOTER ----------------------------- */

.sf-footer {
  background: var(--bg-dark);
  color: var(--sf-contrast);
  font-family: 'Poppins', sans-serif;
  padding: 2rem 1rem !important;
  border-top: 5px solid var(--primary-color);
}

.sf-container {
  max-width: var(--sf-max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: flex-start;
  justify-content: space-between;
}

/* Marca */
.sf-brand {
  min-width: 220px;
  flex: 1 1 250px;
}

.sf-logo {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--primary-color);
}

.sf-tagline {
  color: var(--text-color);
  margin: 0.75rem 0 0;
  font-size: 0.98rem;
}

.sf-links,
.sf-social {
  flex: 1 1 180px;
  min-width: 160px;
}

.sf-heading {
  color: var(--primary-color);
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.sf-contact-list,
.sf-links-list,
.sf-social-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sf-links-list li {
  margin-bottom: 0.5rem;
}

.sf-link {
  color: var(--sf-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.sf-link:hover,
.sf-link:focus {
  color: var(--sf-accent);
  text-decoration: none;
}

.sf-social-list {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-top: 1rem;
}

.sf-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--card-bg);
  border-radius: 50%;
  text-decoration: none;
  transition: transform 150ms ease, background 150ms ease;
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.sf-social-link:focus {
  box-shadow: 0 0 0 3px rgba(0, 170, 255, 0.18);
  border-radius: 50%;
}

.sf-social-link:hover {
  transform: translateY(-4px) scale(1.05);
  background: var(--primary-color);
}

.sf-icon {
  width: 24px;
  height: 24px;
  fill: var(--sf-contrast);
  display: block;
  transition: fill 0.15s;
}

.sf-social-link:hover .sf-icon {
  fill: var(--bg-dark);
}

.sf-legal {
  border-top: 1px solid var(--primary-color);
  margin-top: 1rem;
  padding-top: 1rem;
  text-align: center;
}

.sf-legal-text {
  color: var(--sf-muted);
  margin: 0;
  font-size: 0.9rem;
}

/* ----------------- RESPONSIVE ----------------- */

@media (max-width: 992px) {

  /* 1. Navbar  */

  .menu-toggle {
    display: block !important;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 2rem;
    cursor: pointer;
    order: 2;
  }

  .main-header {
    padding: 10px 20px;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .logo {
    order: 1;
  }

  .cart-icon {
    color: var(--primary-color);
    padding: 10px 20px;
    order: 3;
    position: relative;
    z-index: 1050;
    cursor: pointer;
  }

  .cart-overlay {
    z-index: 1999;
}

  nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    text-align: center;
    background: rgba(7, 14, 23, 0.95);
    backdrop-filter: blur(10px);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 20px 0;
    border-bottom: 2px solid var(--primary-color);
    order: 4;
  }

  nav.active {
    display: flex;
  }

  nav a {
    margin: 15px 0 !important;
    font-size: 1.2rem;
  }

  /* Ocultar botón en escritorio */
  .menu-toggle {
    display: none;
  }

  /* 2. Hero */

  .hero {
    height: 400px;
    padding: 0 20px;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  /* 3. Títulos de Secciones */
  .services h2,
  .product-showcase h2,
  #formularioContacto h2 {
    font-size: 1.8rem;
    padding: 60px 20px 30px 20px;
  }

  /* 4. Servicios */
  .service-item {
    flex-basis: 100%;
    margin: 0 15px;
  }

  /* 5. Productos */
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  /* 6. Contacto */
  .contact-container {
    flex-direction: column;
    padding: 0 20px;
    gap: 30px;
  }

  .contact-info h2 {
    text-align: center !important;
  }

  .contact-form-panel {
    padding: 25px;
    height: auto;
  }

  .contact-form-panel form {
    height: auto;
    gap: 15px;
  }

  /* 7. Carrito lateral*/
  .side-cart {
    z-index: 2000;
    width: 100%;
    right: -100%;
  }

  /* 8. Footer */
  .sf-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .sf-social-list {
    justify-content: center;
  }

  .sf-footer {
    padding: 1.5rem 1rem !important;
  }

  .sf-brand,
  .sf-links,
  .sf-social {
    flex: 1 1 100%;
    text-align: center;
    margin-bottom: 10px;
  }

  .sf-heading {
    margin-bottom: 0.5rem;
  }

  .sf-social-list {
    justify-content: center;
    margin-top: 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .logo {
    font-size: 1.5rem;
  }
}