/* =====================================================
   RESET Y BASE
===================================================== */
* {
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  background-color: #f9fafc;
  color: #333;
}

/* =====================================================
   HEADER
===================================================== */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #003366, #0066cc);
  color: #fff;
  padding: 15px 30px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: inherit;
}

.brand:hover {
  opacity: 0.95;
}

.brand img.logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.brand-title {
  color: white;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 1rem;
  margin: 0;
  color: #d6e9ff;
}

/* Iconos header */
.header-icons {
  display: flex;
  align-items: center;
  gap: 18px;
}

.icon-btn {
  position: relative;
  background: rgba(255,255,255,0.18);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.icon-btn:hover {
  background: #0066cc;
  color: #222;
  transform: scale(1.1);
}

#cart-count-header {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ff3b3b;
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 50%;
  font-weight: bold;
}

/* Hamburguesa */
.hamburger {
  background: rgba(255,255,255,0.18);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
}

/* CONTENEDOR FLOTANTE */
.floating-menu {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 2000;
  transition: transform 0.4s ease;
}

/* OCULTO AL BAJAR */
.floating-menu.hide {
  transform: translateY(-93%);
}

/* APARECE AL PASAR EL MOUSE */
.floating-menu:hover {
  transform: translateY(0);
}

/* =====================================================
   NAV
===================================================== */
.main-nav {
  background: linear-gradient(135deg, #003366, #0066cc);
  padding: 4px 0;
}

.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.main-nav li {
  margin: 10px 16px;
}

.main-nav a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 10px 18px;
  border-radius: 4px;
  transition: background 0.3s ease, color 0.3s ease;
}

.main-nav a:hover {
  background: #0066cc81;
  color: #222;
}

/* ------------------------------
   HERO BANNER
--------------------------------*/
.hero-banner {
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
              url("Imagenes/banner0.png") center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
  border-radius: 10px;
  margin: 20px auto 40px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  animation: fadeInHero 1.5s ease;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.hero-btn {
  background:  #003366;
  color: white;
  font-weight: bold;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}

.hero-btn:hover {
  background: linear-gradient(135deg, #002244, #0055aa);
  transform: scale(1.03);
  color: #fff;
}

@keyframes fadeInHero {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   CATÁLOGO GENERAL
   ======================================== */

.main-content {
  padding: 30px 40px;
}   

.catalogo-section {
  display: contents;
  margin-bottom: 80px;
}

.catalogo-caja {
  margin: 20px;
   background: #f8fafc;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  overflow: hidden;
  font-size: 1.6rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.catalogo-caja.promociones {
  margin-bottom: 40px;
}

.catalogo-caja.destacados {
  margin-top: 40px;
}

.catalogo-caja.novedades {
  margin-top: 50px;
}

.catalogo-caja:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.home-section h2 {
  color:#003366;
  margin-bottom: 20px;
  font-size: 1.8rem; 
  border-left: 6px solid #0057b7;
  padding-left: 20px;
}


.catalogo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.catalogo-header h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
  color: #2c3e50;
}


.productos-grid {
  padding: 10px 20px 30px;
}

.ver-todo {
  font-size: 1rem;
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.ver-todo:hover {
  color: #2980b9;
  text-decoration: underline;
}

.catalogo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 24px;
}

.novedades .catalogo-grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* ========================================
   SIDEBAR - CARRUSEL
   ======================================== */
.sidebar {
  align-self: start;
  justify-content: center;
}

.carousel {
  margin: 20px auto;
  position: relative;
  width: 96%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.carousel-track img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  flex-shrink: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  font-size: 1.8rem;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.carousel-btn:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.carousel-btn.prev { left: 15px; }
.carousel-btn.next { right: 15px; }

@media (max-width: 1024px) {
  .carousel-track img { height: 300px; }
}
@media (max-width: 768px) {
  .carousel-track img { height: 200px; }
}

/* =====================================================
   MODALES - ESTILO FINAL (como tus referencias)
===================================================== */
.modal-custom {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-custom:not(.hidden) {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay:not(.hidden) {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #fff;
  border-radius: 20px;
  border: 2px solid #0066cc;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  overflow: hidden;
}

.cart-wide {
  max-width: 900px;
}

.modal-title {
  padding: 20px 24px 10px;
  font-size: 1.6rem;
  font-weight: bold;
  color: #003366;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-x {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #999;
  cursor: pointer;
}

.close-x:hover {
  color: #333;
}

.modal-body {
  padding: 0 24px 24px;
}

.modal-body label {
  display: block;
  margin: 20px 0 8px;
  font-size: 0.95rem;
  color: #333;
}

.modal-body input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
}

.pass-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.show-pass {
  font-size: 0.9rem;
  color: #0066cc;
  text-decoration: none;
  font-weight: 600;
}

.show-pass:hover {
  text-decoration: underline;
}

.forgot-pass {
  display: block;
  margin: 12px 0 20px;
  color: #0066cc;
  font-size: 0.9rem;
  text-align: right;
  text-decoration: none;
}

.forgot-pass:hover {
  text-decoration: underline;
}

.btn-main {
  width: 100%;
  padding: 14px;
  background: #003366;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  margin-top: 20px;
}

.btn-main:hover {
  background: #002244;
}

.modal-footer {
  text-align: center;
  padding: 20px 24px;
  background: #f8f9fa;
  border-top: 1px solid #eee;
  font-size: 0.95rem;
}

.modal-footer a {
  color: #0066cc;
  font-weight: bold;
  text-decoration: none;
}

.modal-footer a:hover {
  text-decoration: underline;
}

/* CARRITO - DISEÑO HORIZONTAL */
.cart-main {
  display: flex;
  max-height: 70vh;
}

.cart-left {
  flex: 2;
  padding: 20px 24px;
  border-right: 1px solid #eee;
  overflow-y: auto;
}

.cart-right {
  flex: 1;
  padding: 20px 24px;
  background: #f8f9fa;
  min-width: 300px;
}

.resumen-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 1rem;
}

.promo-text {
  color: #0066cc;
  font-size: 0.9rem;
  margin: 16px 0;
}

.resumen-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.3rem;
  font-weight: bold;
  margin: 20px 0;
}

.btn-pay {
  width: 100%;
  padding: 16px;
  background: #003366;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.2rem;
  cursor: pointer;
}

.btn-pay:hover {
  background: #002244;
}

.continue-shopping {
  display: block;
  margin-top: 20px;
  color: #0066cc;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
}

.continue-shopping:hover {
  text-decoration: underline;
}

/* =====================================================
   FOOTER
===================================================== */
.site-footer {
  background: #001833;
  color: #ffffff;
  padding: 40px 20px 10px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 30px;
}

.footer-section h4 {
  color: #00aaff;
  margin-bottom: 15px;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #cccccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #00aaff;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: #ffffff;
  background: #00aaff;
  padding: 10px;
  border-radius: 50%;
  transition: background 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  background: #0088cc;
  transform: scale(1.1);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 15px;
  text-align: center;
  font-size: 0.9rem;
  color: #cccccc;
}

@media (max-width: 1024px) {
  .footer-section { flex: 1 1 45%; }
}

@media (max-width: 600px) {
  .footer-section { flex: 1 1 100%; text-align: center; }
  .social-icons { justify-content: center; }
}






/*escritura main tarjetas productos */

/* ===============================
   SECCIÓN ESCRITURA
================================*/
/* ========================================
   SECCIÓN TÍTULO CON FONDO
   ======================================== */

.seccion-titulo {
  position: relative;
  padding: 70px 30px;
  text-align: center;
  color: #003366;
  border-radius: 14px;
  overflow: hidden;
  margin: 30px 20px;
  background-size: cover;
  background-position: center;
}


.seccion-titulo h2{
  font-size: 1.8em;
  position: relative;
  z-index: 1;
}
.seccion-titulo p {
  position: relative;
  z-index: 1;
}

/* Fondos por categoría */

.bg-escritura {
  background-image: url("Imagenes/Fescritura.png");
}

.bg-papeleria {
  background-image: url("Imagenes/Fpapeleria.png");
}

.bg-juegos {
  background-image: url("Imagenes/Fjuegos.jpg");
}

.bg-manualidades {
  background-image: url("Imagenes/Fmanualidades.png");
}

.bg-tecnologia {
  background-image: url("Imagenes/Ftecnologia.png");
}



.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
}
/* ===============================
   TARJETAS ESTILO REFERENCIA
================================*/

.producto-card {
  background: #ffffff;
  border-radius: 16px;
  text-align: center;
  padding: 18px;
  font-size: 17px;
  line-height: 1.7;


  /* BORDE DESTACADO */
  border: 2px solid #2563eb; /* azul fuerte */

  /* sombra para profundidad */
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, .15),
    0 12px 28px rgba(0,0,0,.25);

  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}


.producto-card:hover {
  transform: translateY(-6px);

  border-color: #1d4ed8; /* azul más intenso */

  box-shadow:
    0 0 0 3px rgba(37, 99, 235, .25), /* halo azul */
    0 18px 40px rgba(0,0,0,.35);
}

.producto-card h3,
.titulo-servicio {
  font-size: 16px;           /* título "Copias" */
  margin-bottom: 8px;
}

.producto-card p {
  font-size: 14px;           /* textos normales */
  margin: 5px 0;
}
.producto-card p strong {
  font-size: 14px;
}





/* Imagen */
.producto-img {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.producto-img img {
  max-width: 90%;
  max-height: 140px;
  object-fit: contain;
}

/* Texto */
.producto-nombre,
.orden-num {
  color: #1e3a8a; /* azul fuerte */
  font-weight: 700;
}

.producto-card p {
  color: #334155;
  margin: 6px 0;
}

.producto-card small {
  color: #64748b;
}


.producto-desc {
  font-size: 0.85rem;
  color: #777;
}

.producto-precio {
  display: block;
  font-weight: bold;
  margin: 8px 0 14px;
  font-size: 1rem;
}

/* Botón carrito */
.add-to-cart {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #ffcc33;
  color: #333;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.add-to-cart:hover {
  background: #ffb400;
  transform: scale(1.1);
}


/* ===============================
   MODAL PRODUCTO
================================*/
.product-modal-body {
  display: flex;
  gap: 30px;
  padding: 20px 24px;
}

.product-modal-left {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-modal-left img {
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
}

.product-modal-right {
  flex: 1;
}

.modal-price {
  font-size: 1.4rem;
  color: #003366;
  margin: 10px 0 20px;
}

/* Cantidad */
.cantidad-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.cantidad-box button {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #f5f5f5;
  font-size: 1.4rem;
  cursor: pointer;
}

.cantidad-box input {
  width: 60px;
  text-align: center;
  font-size: 1rem;
}


/*promociones estile*/
.producto-precios {
  display: flex;
  align-items: center;
  gap: 8px;
}

.precio-original {
  text-decoration: line-through;
  color: #999;
  font-size: 0.9rem;
}

.precio-descuento {
  color: #e53935;
  font-weight: bold;
  font-size: 1.1rem;
}

.badge-promo {
  background: #e53935;
  color: white;
  padding: 2px 6px;
  font-size: 0.75rem;
  border-radius: 6px;
}










/*contacto y servicios*/

/* =====================================================
   CONTACT SECTION
===================================================== */
.contacto {
  padding: 40px;
  text-align: center;
}

.contacto h2 {
  font-size: 1.8em;
  color: #0057b7;
  margin-bottom: 20px;
}


.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.info-item {
  background: #f8f8f8;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.info-item:hover {
  transform: translateY(-5px);
}

.info-item i {
  color: #0073e6;
  font-size: 1.8em;
  margin-bottom: 10px;
}

/* =====================================================
   TRABAJA CON NOSOTROS
===================================================== */
.trabaja {
  background: #eef6ff;
  padding: 50px 20px;
  text-align: center;
}

.trabaja h2 {
  color: #0057b7;
  margin-bottom: 10px;
}

.trabaja p {
  max-width: 800px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
  color: #333;
}

.form-trabajo {
  max-width: 600px;
  margin: 20px auto;
  text-align: left;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  font-weight: 600;
  color: #333;
  display: block;
  margin-bottom: 5px;
}

.form-trabajo input[type="text"],
.form-trabajo input[type="email"],
.form-trabajo input[type="file"] {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.btn-enviar {
  display: block;
  width: 100%;
  padding: 12px;
  background:  #003366;
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  font-size: 1.1rem;
  margin-top: 10px;
}

.btn-enviar:hover {
  background: linear-gradient(135deg, #002244, #0055aa);
  transform: scale(1.03);
}

/* =====================================================
   SOBRE NOSOTROS Y POLÍTICA DE PRIVACIDAD
===================================================== */
.sobre-nosotros,
.privacidad {
  padding: 45px 30px;
  margin: 50px auto;
  max-width: 950px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  animation: fadeSlideUp 0.9s ease forwards;
  position: relative;
  overflow: hidden;
}

/* Títulos con línea decorativa */
.sobre-nosotros h2,
.privacidad h2 {
  font-size: 2.3rem;
  color: #222;
  margin-bottom: 20px;
  text-align: center;
  position: relative;
}

.sobre-nosotros h2::after,
.privacidad h2::after {
  content: "";
  width: 70px;
  height: 4px;
  background: #007bff;
  display: block;
  margin: 10px auto 0;
  border-radius: 10px;
}

/* Icono decorativo de fondo */
.sobre-nosotros::before,
.privacidad::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 90px;
  position: absolute;
  right: 25px;
  top: 20px;
  opacity: 0.08;
  pointer-events: none;
}

.sobre-nosotros::before {
  content: "\f02d"; /* libro */
}

.privacidad::before {
  content: "\f023"; /* candado */
}

/* Fondos diferenciados */
.sobre-nosotros {
  background: linear-gradient(135deg, #ffffff 0%, #f4f7ff 100%);
}

.privacidad {
  background: linear-gradient(135deg, #fdfdfd 0%, #f3f3f3 100%);
}

/* Texto */
.sobre-nosotros p,
.privacidad p {
  font-size: 1.15rem;
  color: #333;
  line-height: 1.8;
  margin-top: 10px;
  text-align: justify;
}

/* Hover suave */
.sobre-nosotros:hover,
.privacidad:hover {
  transform: scale(1.01);
  transition: 0.3s ease;
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

/* Animación de entrada */
@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(25px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsivo para las tarjetas de contacto */
@media (max-width: 768px) {
  .contacto {
    padding: 30px 20px;
  }

  .trabaja {
    padding: 40px 20px;
  }

  .sobre-nosotros,
  .privacidad {
    padding: 35px 20px;
    margin: 40px auto;
  }

  .sobre-nosotros h2,
  .privacidad h2 {
    font-size: 2rem;
  }
}



/* =====================================================
   SERVICIOS
===================================================== */

.services-section {
  max-width: 1200px;
  margin: 120px auto 60px;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  color: #003366;
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 50px;
}

/* Grupo de servicios */
.services-group {
  margin-bottom: 60px;
}

.services-group h3 {
  font-size: 1.6rem;
  color:#003366; 
   
  margin-bottom: 25px;
  border-left: 6px solid #0057b7;
  padding-left: 15px;
}

/* Grid de tarjetas */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 23px;
}

/* Tarjeta de servicio */


.service-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px 22px 28px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.service-card h4 {
  font-size: 1.3rem;
  color: #092e53;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.93rem;
  color: #555;
  margin-bottom: 12px;
}

.service-card ul {
  padding-left: 18px;
  margin-bottom: 20px;
}

.service-card ul li {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 6px;
}

/* Botón solicitar servicio */
.btn-service {
  width: 100%;
  padding: 14px;
  background:  #003366;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-service:hover {
  background: linear-gradient(135deg, #002244, #0055aa);
  transform: scale(1.03);
}

/* Responsive */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .services-group h3 {
    font-size: 1.6rem;
  }
}


#dynamic-fields label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

#dynamic-fields input,
#dynamic-fields select {
  width: 100%;
  padding: 10px;
  margin-top: 4px;
  border-radius: 8px;
  border: 1px solid #ccc;
}





/**/
/* ===============================
   ENVÍOS Y DEVOLUCIONES
================================*/
.envios-devoluciones {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.info-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.info-box h2 {
  color: #003366;

  margin-bottom: 15px;
}

.info-list {
  padding-left: 20px;
}

.info-list li {
  margin-bottom: 10px;
}

.form-section {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 40px;
}

.form-section h2 {

  margin-bottom: 10px;

}

.form-servicio label {
  display: block;
  margin-top: 15px;
  font-weight: 600;
}

.form-servicio input,
.form-servicio textarea,
.form-servicio select {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-top: 6px;
}

/* =====================================
   ENVÍOS Y DEVOLUCIONES – LAYOUT
===================================== */

.info-service-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  margin: 50px 0;
  align-items: center;
}

/* Caja informativa */
.info-box {
  background: linear-gradient(135deg, #ffffff, #f4f7ff);
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.info-box h2 {
  color: #003366;
  margin-bottom: 15px;
  font-size: 1.7rem;
}

.info-box p {
  font-size: 1.05rem;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.6;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  margin-bottom: 10px;
  font-size: 1rem;
}

/* Ajuste cuando solo hay una tarjeta */
.services-grid.single {
  display: flex;
  justify-content: center;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .info-service-row {
    grid-template-columns: 1fr;
  }

  .services-grid.single {
    justify-content: stretch;
  }
}

/* =====================================
   FAQ
===================================== */

.faq-section {
  padding: 70px 20px;
  background: #f9f9f9;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  margin-bottom: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 18px 22px;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 22px;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}

/* CTA FAQ */
.faq-contact {
  text-align: center;
  padding: 50px 20px;
}

/* Sección preguntas frecuentes */
.faq-contact .btn-service,
.btn-service[data-modal="modal-preguntas"] {
  
  margin-bottom: 10px;
}



.hidden {
  display: none !important;
}





/*cambios desde roless*/

/* cuando hay sesión */
body.sesion-activa .btn-login-open {
  display: none;
}

body.sesion-activa .perfil-usuario {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* admin */
body.rol-admin {
  --color-principal: #6a1b9a;
}

body.rol-admin .site-header {
  border-bottom: 3px solid var(--color-principal);
}


/*perfil parte */
.perfil-usuario {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #333;
}

.nav-roles {
  list-style: none;
  display: flex;
  gap: 16px;
}

@media (max-width: 768px) {
  .nav-roles {
    display: none;
  }
}


/*login*/

/* =====================================================
   PANELES DE ROLES (ADMIN / EMPLEADO / CLIENTE)
===================================================== */

.panel-container {
  max-width: 1100px;
  margin: 140px auto 60px;
  padding: 30px;
}

.panel-title {
  font-size: 2rem;
  color: #003366;
  margin-bottom: 30px;
  border-left: 6px solid #0057b7;
  padding-left: 15px;
}

/* GRID DE ACCIONES */
.panel-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* TARJETA */
.panel-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 25px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.panel-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.panel-card h3 {
  color: #003366;
  margin-bottom: 10px;
}

.panel-card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 20px;
}

/* BOTONES */
.panel-btn {
  display: inline-block;
  width: 100%;
  padding: 14px;
  background: #003366;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.panel-btn:hover {
  background: linear-gradient(135deg, #002244, #0055aa);
  transform: scale(1.03);
}

/* BOTÓN PELIGRO (ELIMINAR) */
.panel-btn.danger {
  background: #c62828;
}

.panel-btn.danger:hover {
  background: #b71c1c;
}

/* =====================================================
   MIS COMPRAS (CLIENTE)
===================================================== */

.compras-lista {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.compra-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.compra-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: bold;
  color: #003366;
}

.compra-total {
  font-size: 1.2rem;
  color: #2e7d32;
}

.compra-items {
  font-size: 0.95rem;
  color: #555;
}

/* =====================================================
   RESTRICCIONES VISUALES POR ROL
===================================================== */

/* empleado NO ve eliminar */
body.rol-empleado .solo-admin {
  display: none !important;
}

/* cliente solo ve compras */
body.rol-cliente .solo-admin,
body.rol-cliente .solo-empleado {
  display: none !important;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 768px) {
  .panel-container {
    padding: 20px;
    margin-top: 120px;
  }
}

/* ===============================
   MIS COMPRAS - TARJETAS
================================*/

.compra-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-left: 6px solid #003366;
}

.compra-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.18);
}

.compra-card h3 {
  margin: 0 0 10px;
  color: #e7eaee;
  font-size: 1.2rem;
}

.compra-info {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.95rem;
  color: #000000;
}

.compra-estado {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  text-transform: capitalize;
}

/* estados */
.estado-pendiente {
  color: #d97706;
  font-weight: 700;
}

.estado-completado {
  color: #16a34a;
  font-weight: 700;
}

.estado-cancelado {
  background: #f8d7da;
  color: #721c24;
}

/* ===============================
   LINK MIS COMPRAS (HEADER)
================================*/

.main-nav a,
.floating-menu a {
  color: #ffffff !important;
  font-weight: 600;
}

.main-nav a:hover {
  color: #ffdd57 !important;
  text-decoration: underline;
}

/* si "Mis compras" tiene clase propia */
.mis-compras-link {
  color: #ffffff !important;
  font-weight: 700;
}
.main-nav a {
  padding: 8px 14px;
  border-radius: 20px;
}

.main-nav a:hover {
  background: rgba(255,255,255,0.2);
}
.user-menu a {
  color: #ffffff !important;
  font-weight: 600;
}

.user-menu a:hover {
  background: rgba(255,255,255,0.25);
  border-radius: 18px;
  padding: 6px 12px;
}
/* ===== FIX VISUAL MIS COMPRAS / LINKS HEADER ===== */

.floating-menu .main-nav ul li a {
  color: #ffffff !important;
  font-weight: 600;
}

/* hover */
.floating-menu .main-nav ul li a:hover {
  background-color: rgba(255,255,255,0.25);
  border-radius: 18px;
  padding: 6px 14px;
}
/* ===============================
   GRID EMPLEADO (ventas / compras)
================================ */

.grid-empleado {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.grid-empleado .producto-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.grid-empleado .producto-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.18);
}

.grid-empleado .producto-nombre {
  font-size: 1.1rem;
  color: #003366;
  margin-bottom: 8px;
}
.btn-danger {
  background: #c62828;
}

.btn-danger:hover {
  background: #a91d1d;
}
.btn-pdf {
  display: inline-block;
  margin: 8px 0;
  padding: 8px 12px;
  background: #047857;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
}

.btn-pdf:hover {
  background: #065f46;
}

.sin-pdf {
  color: #b91c1c;
  font-size: 13px;
}

.sin-detalle {
  font-style: italic;
  color: #6b7280;
}
.datos-cliente {
  background: #f1f5f9;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
}

.datos-cliente p {
  margin: 4px 0;
}

/* ===============================
   PERFIL USUARIO HEADER
=============================== */

.perfil-usuario {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0d6efd;
  padding: 6px 12px;
  border-radius: 20px;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

.perfil-usuario i {
  font-size: 16px;
}

/* ===============================
   MENU USUARIO
=============================== */

.user-menu {
  position: relative;
}

.user-dropdown {
  position: absolute;
  top: 52px;
  right: 0;
  width: 230px;
  background: linear-gradient(135deg, #0a58ca, #0d6efd);
  color: #fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 15px 35px rgba(0,0,0,.35);
  z-index: 1000;
  animation: fadeDown .25s ease;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===============================
   INFO USUARIO
=============================== */

.user-info {
  display: flex;
  flex-direction: column;
  text-align: center;
  margin-bottom: 10px;
}

.user-info strong {
  font-size: 15px;
  font-weight: 700;
}

.user-info small {
  font-size: 12px;
  opacity: .85;
  text-transform: capitalize;
}

.user-dropdown hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,.3);
  margin: 10px 0;
}

/* ===============================
   LINKS Y BOTONES
=============================== */

.user-dropdown a,
.user-dropdown button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px;
  margin-top: 6px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .25s ease;
}

/* Panel admin */
.user-dropdown a {
  background: #fff;
  color: #0d6efd;
  text-decoration: none;
}

.user-dropdown a:hover {
  background: #e6ecff;
}

/* Logout */
.logout-btn {
  background: rgba(255,255,255,.18);
  color: #fff;
}

.logout-btn:hover {
  background: rgba(255,255,255,.35);
}

/* =====================================================
   FIX REAL MENÚ MÓVIL (FLOATING MENU)
===================================================== */
@media (max-width: 768px) {

  /* el header flotante */
  .floating-menu {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, #003366, #0057b7);
    z-index: 5000;
  }

  /* menú dentro del flotante */
  .floating-menu .main-nav ul {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: #003366;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .floating-menu .main-nav ul.active {
    max-height: 100vh;
    padding-bottom: 20px;
  }

  .floating-menu .main-nav li {
    margin: 0;
  }

  .floating-menu .main-nav a {
    display: block;
    padding: 14px 20px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.15);
    color: #fff;
  }

  /* empujar contenido para que no quede debajo */
  .main-content {
    margin-top: 120px;
  }
}







