﻿/* ============================= */
/*      RESET / BASE SIMPLE      */
/* ============================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
    background: radial-gradient(circle at top, #19224f 0, #050814 60%, #02030a 100%);
    color: #eef3ff;
}

/* Contenedor central */

.em-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================= */
/*            HEADER             */
/* ============================= */

.em-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(20px);
    background: linear-gradient(to bottom, rgba(3, 6, 24, 0.92), transparent);
}

.em-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.5rem;
}

.em-header__logo a {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-decoration: none;
    color: #f4f6ff;
}

.em-header__logo span {
    color: #22c55e;
}

.em-nav {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
}

.em-nav a {
    color: #cfd6ff;
    text-decoration: none;
    position: relative;
    padding-bottom: 0.15rem;
}

.em-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #4be3ff, #27ff8c);
    transition: width 0.25s ease;
}

.em-nav a:hover::after {
    width: 100%;
}

.em-nav a.is-active {
    color: #f4f6ff;
}

.em-nav a.is-active::after {
    width: 100%;
}

/* ============================= */
/*             HERO              */
/* ============================= */

/* Layout principal del hero: texto a la izquierda, slider a la derecha */
.em-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: 3rem;
}

/* === HERO SLIDER NUEVO === */

.hero-slider {
  position: relative;
  width: 100%;
  max-width: 650px;
  height: 260px;
  overflow: hidden;
  border-radius: 22px;
  background: #020617;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Puntos del slider */
.hero-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  background: rgba(148, 163, 184, 0.7);
  cursor: pointer;
  transition: background 0.25s ease, width 0.25s ease;
}

.hero-dot.active {
  background: #22c55e;
  width: 22px;
}

.em-hero__tagline {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #9bb0ff;
    margin-bottom: 0.9rem;
}

.em-hero__title {
    font-size: clamp(2.2rem, 2.8vw + 1.4rem, 3rem);
    line-height: 1.2;
    margin-bottom: 0.9rem;
}

.em-hero__title span {
    color: #4be3ff;
}

.em-hero__subtitle {
    font-size: 0.98rem;
    color: #c3ccff;
    margin-bottom: 1.5rem;
}

.em-hero__search input {
    width: 100%;
    border-radius: 999px;
    border: 1px solid rgba(132, 157, 255, 0.5);
    background: radial-gradient(circle at top, rgba(73, 96, 186, 0.85), #040716);
    padding: 0.9rem 1.2rem;
    font-size: 0.95rem;
    color: #f4f6ff;
    outline: none;
    box-shadow: 0 18px 40px rgba(3, 5, 29, 0.9);
}

.em-hero__search input::placeholder {
    color: #9097c5;
}

.search-bar-wrapper {
    width: 100%;
}

.home-category-filters {
    margin: 24px auto 8px;
    max-width: 1100px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.category-pill {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: radial-gradient(circle at top left, #18294b, #050816);
    color: #e5e7eb;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease,
        border-color 0.15s ease;
    white-space: nowrap;
}

.category-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.8);
    border-color: #22c55e;
    background: radial-gradient(circle at top left, #1f3a63, #020617);
}

.category-pill--active {
    border-color: #22c55e;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.45);
}

.category-pill-appear {
    opacity: 0;
    transform: translateY(4px);
    animation: pill-appear 0.25s ease-out forwards;
}

@keyframes pill-appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================= */
/*   MOBILE HERO + CATEGORY UX   */
/* ============================= */
@media (max-width: 768px) {
  .em-hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding-top: 2rem;
  }

  .em-hero__left {
    order: 1;
    width: 100%;
  }

  .em-hero__right {
    order: 2;
    width: 100%;
  }

  /* Categorías en carrusel horizontal */
  .home-category-filters,
  .home-category-chips {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.75rem;
    padding: 0.75rem 0 1.25rem;
    margin-bottom: 0.5rem;
    scrollbar-width: none;
  }

  .home-category-filters::-webkit-scrollbar,
  .home-category-chips::-webkit-scrollbar {
    display: none;
  }

  .category-pill,
  .home-category-pill {
    white-space: nowrap;
    flex: 0 0 auto;
  }
}

@media (min-width: 769px) {
  .home-category-filters,
  .home-category-chips {
    display: flex;
    flex-wrap: wrap;
    row-gap: 0.75rem;
  }
}

/* ============================= */
/*          PAGE LOADER          */
/* ============================= */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #19224f 0, #050814 60%, #02030a 100%);
  color: #eef3ff;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader__logo {
  font-family: inherit;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
}

.page-loader__logo span {
  color: #00ff6a;
}

.page-loader__spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #00ff6a;
  animation: loader-spin 0.8s linear infinite;
}

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}

body.is-loaded .page-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.has-loader:not(.is-loaded) {
  overflow: hidden;
}

/* ========== HEADER CART BADGE ========== */
.em-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cfd6ff;
  text-decoration: none;
}

.em-cart-icon {
  font-size: 1.1rem;
}

.em-cart-count {
  display: none;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #22c55e;
  color: #0b172a;
  font-size: 0.75rem;
  font-weight: 700;
  align-items: center;
  justify-content: center;
}

.em-cart-btn:hover .em-cart-count {
  display: inline-flex;
}

/* ========== FLOATING WHATSAPP ========== */
.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #22c55e;
  color: #052e16;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 35px rgba(34, 197, 94, 0.45);
  text-decoration: none;
  z-index: 90;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.floating-whatsapp:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 18px 45px rgba(34, 197, 94, 0.6);
}

.floating-whatsapp__icon {
  font-size: 1.3rem;
}

@media (max-width: 768px) {
  .floating-whatsapp {
    right: 14px;
    bottom: 70px;
  }
}

/* ========== ADMIN LOGIN ========== */
.admin-login-body {
  background: radial-gradient(circle at top, #0d1226 0, #050814 60%, #02030a 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
}

.admin-login {
  width: 100%;
  max-width: 420px;
  padding: 1.5rem;
}

.admin-login__card {
  background: rgba(8, 12, 26, 0.9);
  border: 1px solid rgba(99, 102, 241, 0.45);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.admin-login__form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.admin-login__form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.95rem;
}

.admin-login__form input {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.7);
  padding: 0.75rem 0.9rem;
  color: #e5e7eb;
}

.admin-login__error {
  color: #fca5a5;
  font-size: 0.9rem;
  margin: 0;
}

/* ========== CART PAGE ========== */
.em-cart-page {
  padding: 40px 16px 60px;
}

.cart-container {
  max-width: 1000px;
  margin: 0 auto;
  background: rgba(8, 12, 26, 0.9);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.cart-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.78rem;
  color: #9ca3af;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 14px;
  padding: 12px;
}

.cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.cart-item__info h3 {
  margin: 0 0 6px;
}

.cart-item__price {
  margin: 0 0 10px;
  color: #22c55e;
}

.cart-item__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.qty-btn,
.remove-btn {
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #e5e7eb;
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.qty-value {
  min-width: 20px;
  text-align: center;
}

.cart-item__subtotal {
  color: #cbd5f5;
  font-weight: 700;
}

.cart-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.cart-footer-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cart-empty {
  color: #9ca3af;
}

@media (max-width: 700px) {
  .cart-item {
    grid-template-columns: 80px 1fr;
  }

  .cart-container {
    padding: 16px;
  }
}

/* --- Right column (banner) --- */


/* ============================= */
/*           SECCIONES           */
/* ============================= */

.em-section {
    padding: 3.5rem 0;
}

.em-section--info {
    padding: 3rem 0 3.3rem;
    margin-top: 2.5rem;
    border-top: 1px solid rgba(15, 23, 42, 0.6);
}

.em-section--center {
    text-align: center;
}

.em-section h2 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.em-section p {
    color: #b6bdea;
    margin-bottom: 1.5rem;
}

/* Home - sección celulares */
.em-section--home-categoria {
    margin-top: 3.5rem;
}

.em-home-section-header {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 1.5rem;
}

.em-home-section-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #e5ecff;
}

.em-home-section-header p {
    color: #cbd5f5;
    font-size: 0.95rem;
}

.em-home-product-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 280px);
    gap: 1.2rem;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    scroll-snap-type: x mandatory;
}

.em-home-product-row::-webkit-scrollbar {
    height: 5px;
}
.em-home-product-row::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.6);
    border-radius: 999px;
}

.em-home-product-card {
    position: relative;
    scroll-snap-align: start;
    border-radius: 20px;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 55%), rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    gap: 0.6rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease, box-shadow 0.25s ease;
}

.em-home-product-card--visible {
    transform: translateY(0);
    opacity: 1;
}

.em-home-product-card:hover {
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
}

.em-home-product-card__image {
    width: 100%;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0.4));
    display: flex;
    align-items: center;
    justify-content: center;
}

.em-home-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.em-home-product-card__title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #e5ecff;
    min-height: 44px;
    display: flex;
    align-items: flex-end;
}

.em-home-product-card__desc {
    font-size: 0.82rem;
    color: #cbd5f5;
    min-height: 44px;
    display: flex;
    align-items: flex-start;
}

.em-home-product-card__price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #22c55e;
    margin-top: auto;
}

.em-home-product-card__actions {
    margin-top: 0.8rem;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.em-home-product-card__actions .em-btn {
    flex: 1;
    font-size: 0.8rem;
    padding-inline: 0.8rem;
}

/* Grid de productos (cuando traigas cosas de Firebase) */

.em-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.6rem;
}

/* Tarjetas genÃ©ricas de producto (por si las usÃ¡s) */

.em-product-card {
    background: rgba(10, 16, 46, 0.9);
    border-radius: 18px;
    padding: 1.1rem 1.2rem 1.3rem;
    border: 1px solid rgba(116, 140, 255, 0.35);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
}

.skeleton {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #0f172a, #111827, #0f172a);
    background-size: 200% 100%;
    animation: skeleton-loading 1.2s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.category-pill-skeleton {
    width: 90px;
    height: 32px;
    border-radius: 999px;
}

.home-skeleton-card {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 1.25rem;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-skeleton-image {
    width: 100%;
    height: 180px;
    border-radius: 1rem;
}

.home-skeleton-text {
    height: 12px;
    border-radius: 999px;
}

.home-skeleton-text-lg {
    width: 60%;
}

.home-skeleton-text-sm {
    width: 40%;
}

/* ============================= */
/*            BOTONES            */
/* ============================= */

.em-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.em-btn--primary {
    background: radial-gradient(circle at top, #4be3ff, #2af58b);
    color: #04101b;
    box-shadow: 0 16px 40px rgba(32, 243, 163, 0.45);
}

.em-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 50px rgba(32, 243, 163, 0.6);
}

.em-btn--whatsapp {
    background: linear-gradient(135deg, #1bd741, #05a63a);
    color: #eefdf1;
    box-shadow: 0 16px 40px rgba(5, 166, 58, 0.6);
}

.em-btn--whatsapp:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 56px rgba(5, 166, 58, 0.8);
}

/* ============================= */
/*            FOOTER             */
/* ============================= */

.em-footer {
    margin-top: 4rem;
    background: #0b1027;
    color: #dbe7ff;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.em-footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem 2.6rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    align-items: center;
}

.em-footer__logo {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.em-footer__logo span {
    color: #22c55e;
}

.em-footer__brand p {
    margin-top: 0.45rem;
    color: #c4d3ff;
    line-height: 1.6;
}

.em-footer__subscribe {
    width: 100%;
    max-width: 520px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    padding: 1.3rem 1.4rem 1.6rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.em-footer__subscribe h4 {
    margin: 0 0 0.9rem;
    font-size: 1rem;
    color: #e5ecff;
}

.em-footer__subscribe-form {
    display: flex;
    gap: 0.7rem;
    align-items: center;
}

.em-footer__subscribe-form input {
    flex: 1;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.8);
    color: #e5ecff;
    font-size: 0.95rem;
    outline: none;
}

.em-footer__subscribe-form input::placeholder {
    color: #93a0c2;
}

.em-footer__subscribe-form button {
    padding: 0.85rem 1.3rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #022c22;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.6);
}

.em-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem 1.4rem;
}

.em-footer__links a {
    color: #e2e8f0;
    font-size: 0.94rem;
    text-decoration: none;
}

.em-footer__links a:hover {
    text-decoration: underline;
}

.em-footer__legal {
    font-size: 0.8rem;
    color: rgba(219, 231, 255, 0.6);
    line-height: 1.5;
    max-width: 900px;
}


/* ============================= */
/*      CATALOGO + PAGE HERO     */
/* ============================= */

.em-page-hero {
    padding: 3rem 0 2rem;
    text-align: center;
}

.em-page-hero--catalogo {
    background: radial-gradient(circle at top left, #020617 0, #020617 40%, #020617 100%);
}

.em-page-hero h1 {
    font-size: 2rem;
    color: #e5ecff;
    margin-bottom: 0.4rem;
}

.em-page-hero p {
    color: rgba(148, 163, 184, 0.9);
    max-width: 640px;
    margin: 0 auto;
}

.em-catalog-page {
    padding-top: 2.5rem;
}


.em-catalog {
    padding: 2rem 0 3.5rem;
}

.em-catalog__layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 2rem;
    align-items: flex-start;
}

.em-catalog__filters {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 18px;
    padding: 1.5rem 1.6rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.7);
    color: #e2e8f0;
    font-size: 0.9rem;
}

.em-catalog__filters h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.em-catalog__filters-group {
    margin-bottom: 1.1rem;
}

.em-catalog__filters-group label {
    display: block;
    margin-bottom: 0.3rem;
    color: rgba(226, 232, 240, 0.9);
    font-size: 0.85rem;
}

.em-catalog__filters-row {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.em-catalog__filters input[type="number"],
.em-catalog__filters input[type="text"],
.em-catalog__filters select {
    width: 100%;
    padding: 0.5rem 0.7rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.95);
    color: #e5ecff;
    font-size: 0.85rem;
}

.em-catalog__filters input::placeholder {
    color: #94a3b8;
}

.em-catalog__results {
    min-height: 300px;
}

.em-product-grid--catalogo {
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .em-catalog__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .em-catalog__filters {
        order: -1;
    }
}

/* ============================= */
/* ============================= */
/*        PRODUCTO DETALLE       */
/* ============================= */

/* CONTENEDOR GENERAL PRODUCTO */
.em-product-page {
    max-width: 1120px;
    margin: 3rem auto 2rem;
    padding: 2rem;
    border-radius: 24px;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 55%),
                radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.1), transparent 55%),
                rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.35);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2.5rem;
}

/* IZQUIERDA: GALERÍA */
.em-product-media {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.em-product-media-main {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0.4));
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contenedor principal */
.em-product-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 20px auto;
}

.image-skeleton {
    width: 100%;
    padding-top: 120%;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
}

.em-product-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.em-image-hidden {
    opacity: 0;
}

/* MINIATURAS + SLIDER HORIZONTAL */
.em-product-thumbs-wrapper {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 0.75rem;
}

.em-product-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.25rem;
}

.em-product-thumbs::-webkit-scrollbar {
    height: 4px;
}
.em-product-thumbs::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.5);
    border-radius: 999px;
}

.em-thumb {
    flex: 0 0 82px;
    height: 82px;
    border-radius: 12px;
    border: 1px solid transparent;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    background: rgba(15, 23, 42, 0.9);
}

.em-thumb:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.em-thumb--active {
    opacity: 1;
    border-color: rgba(34, 197, 94, 0.8);
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.5);
}

.em-thumb-nav {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.em-thumb-nav:hover {
    background: rgba(30, 64, 175, 0.85);
    border-color: rgba(59, 130, 246, 0.9);
    transform: translateY(-1px);
}

/* DERECHA: INFO PRODUCTO */
.em-product-info {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1rem 0 0;
}

.em-product-category {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    color: rgba(56, 189, 248, 0.8);
}

.em-product-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #e5ecff;
}

.em-product-price {
    font-size: 2rem;
    font-weight: 800;
    color: #22c55e;
}

.em-product-status {
    font-size: 0.95rem;
    font-weight: 600;
    color: #22c55e;
}

.em-product-status--no {
    color: #f97373;
}

.em-product-description {
    margin-top: 0.5rem;
    line-height: 1.6;
    color: #cbd5f5;
    font-size: 0.98rem;
}

.em-product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.5rem;
}

.em-product-tags span {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    font-size: 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: #e2e8f0;
}

.em-product-buttons {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

/* RELACIONADOS */
.em-related {
    margin-top: 2rem;
    background: #0d1224;
    border-radius: 16px;
    padding: 1.6rem 1.4rem 1.8rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
}

.em-related__header h2 {
    margin-bottom: 0.2rem;
}

.em-related__header p {
    color: #b6bfdf;
    margin-bottom: 1rem;
}

.em-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.em-related-card {
    background: rgba(13, 18, 36, 0.9);
    border: 1px solid rgba(116, 140, 255, 0.35);
    border-radius: 14px;
    padding: 0.9rem 1rem 1.1rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.em-related-card__image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #0b132b;
    border: 1px solid rgba(75, 227, 255, 0.35);
    margin-bottom: 0.3rem;
}

.em-related-card__image img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

/* RESPONSIVE */
@media (max-width: 960px) {
    .em-product-page {
        grid-template-columns: minmax(0, 1fr);
        margin-top: 1.5rem;
        padding: 1.5rem;
    }
    .em-product-media-main {
        padding: 1rem;
    }
}
.em-card {
    background: rgba(10, 14, 36, 0.9);
    border: 1px solid rgba(79, 70, 229, 0.3);
    border-radius: 18px;
    padding: 1.6rem;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.65);
}

.em-filters-card {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.em-filters-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.em-eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8ba5ff;
    margin-bottom: 0.2rem;
}

.em-filters-card__header h2 {
    font-size: 1.4rem;
}

.em-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #e5ecff;
}

.em-toggle input {
    width: 18px;
    height: 18px;
    accent-color: #22c55e;
}

.em-filters-card__body {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.em-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.em-filter-group__label {
    font-weight: 600;
    color: #e2e7ff;
}

.em-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.em-category-pill {
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 255, 0.35);
    background: rgba(13, 19, 45, 0.8);
    color: #dce6ff;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.em-category-pill:hover {
    transform: translateY(-1px);
    border-color: rgba(79, 70, 229, 0.75);
}

.em-category-pill--active {
    background: linear-gradient(135deg, #4be3ff, #2af58b);
    color: #03111b;
    border-color: transparent;
    font-weight: 700;
}

.em-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem 1.2rem;
}

.em-filter-price {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.em-filter-price input {
    width: 100%;
}

.em-filter-grid input,
.em-filter-grid select {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 255, 0.35);
    background: radial-gradient(circle at top, rgba(73, 96, 186, 0.7), #040716);
    color: #eef3ff;
    outline: none;
}

.em-filter-grid input::placeholder {
    color: #9facd6;
}

.em-catalog-results {
    margin-top: 2.2rem;
}

.em-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.4rem;
}

.em-empty-message {
    margin-top: 1.4rem;
    color: #c6cfef;
    text-align: center;
}

.em-product-card {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.em-product-card__badge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: #c6d1ff;
}

.em-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.em-badge--oferta {
    background: rgba(234, 179, 8, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.em-badge--destacado {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.em-product-card h3 {
    font-size: 1.1rem;
}

.em-product-card p {
    color: #c5cff5;
}

.em-product-card__price {
    font-weight: 700;
    color: #4be3ff;
    font-size: 1.05rem;
}

.em-product-card__status {
    font-size: 0.9rem;
    font-weight: 700;
}

.em-product-card__status--ok {
    color: #22c55e;
}

.em-product-card__status--no {
    color: #f87171;
}

.em-product-card__actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.7rem;
}

.em-btn--secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #e5e7ff;
    border: 1px solid rgba(148, 163, 255, 0.35);
}

.em-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 900px) {
    .em-filters-card__header {
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .em-filter-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .em-toggle {
        width: 100%;
    }
}


/* ============================= */
/*          RESPONSIVE           */
/* ============================= */

@media (max-width: 640px) {
    .em-header__inner {
        padding-inline: 1rem;
    }

    .em-nav {
        gap: 0.9rem;
        font-size: 0.85rem;
    }

    .em-hero__title {
        font-size: 1.9rem;
    }
}


    50% {
        transform: scale(1.03); /* pequeÃ±o zoom suave */
        box-shadow:
            0 40px 90px rgba(0, 0, 0, 0.9),
            0 0 40px rgba(75, 227, 255, 0.35);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 26px 60px rgba(0, 0, 0, 0.7);
    }
}






.em-product-card__image {
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: radial-gradient(circle at top, #1f2937, #020617);
}

.em-product-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}



/* ============================= */


.product-detail {
  max-width: 1100px;
  margin: 40px auto;
}

.product-detail-card {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 40px;
  padding: 32px;
  border-radius: 24px;
  background: radial-gradient(circle at top left, #0f172a, #020617);
}

.product-detail-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-main-image-wrapper {
  border-radius: 20px;
  overflow: hidden;
  background: #020617;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-main-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.product-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.product-thumbs img {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.product-thumbs img:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.product-thumbs img.thumb-active {
  border-color: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.45);
}

.product-detail-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 900px) {
  .product-detail-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-main-image-wrapper {
    max-width: 420px;
    margin: 0 auto;
  }
}

/* Layout general de páginas legales */
.em-legal {
  padding: 60px 16px 80px;
}

.legal-container {
  max-width: 960px;
  margin: 0 auto;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
  border-radius: 24px;
  padding: 32px 28px 36px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

/* Cabecera (título + última actualización) */
.legal-header h1 {
  margin: 0 0 4px;
  font-size: 1.9rem;
  font-weight: 800;
  color: #f9fafb;
}

.legal-updated {
  margin: 0 0 20px;
  font-size: 0.9rem;
  color: #9ca3af;
}

/* Contenido */
.legal-content {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #e5e7eb;
}

/* Títulos de secciones */
.legal-content h2 {
  margin-top: 26px;
  margin-bottom: 6px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #e0f2fe;
}

/* Primera sección un poco más pegada al título principal */
.legal-content h2:first-of-type {
  margin-top: 14px;
}

/* Párrafos y listas */
.legal-content p {
  margin: 4px 0 10px;
}

.legal-content ul {
  margin: 6px 0 12px 18px;
  padding: 0;
}

.legal-content li {
  margin-bottom: 4px;
}

/* Links dentro del texto legal */
.legal-content a {
  color: #38bdf8;
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

/* Separación visual suave entre secciones: línea tenue antes de cada h2 */
.legal-content h2 {
  position: relative;
  padding-top: 14px;
}

.legal-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, rgba(148, 163, 184, 0.3), transparent);
}

/* Responsive */
@media (max-width: 768px) {
  .legal-container {
    padding: 24px 18px 28px;
    border-radius: 18px;
  }

  .legal-header h1 {
    font-size: 1.6rem;
  }

  .legal-content {
    font-size: 0.95rem;
  }
}

/* Sección de Relacionados */
.product-related {
  max-width: 1100px;
  margin: 40px auto 60px;
  padding: 0 16px;
}

.product-related h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #fff;
}

.product-related p {
  margin: 0 0 14px;
  color: #9ca3af;
}

/* CONTENEDOR HORIZONTAL CON SCROLL */
.related-products-scroll {
  display: flex;
  flex-direction: row;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  align-items: stretch;
}

.related-products-scroll::-webkit-scrollbar {
  height: 6px;
}
.related-products-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.related-products-scroll::-webkit-scrollbar-thumb {
  background: rgba(30, 64, 175, 0.6);
  border-radius: 999px;
}

/* CARD DE PRODUCTO RELACIONADO */
.related-product-card {
  flex: 0 0 250px;
  scroll-snap-align: start;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.85);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  padding: 10px 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Imagen con skeleton */
.related-product-image-wrapper {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #020617;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.related-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.related-skeleton {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.related-product-image.image-hidden {
  opacity: 0;
}

/* Texto */
.related-product-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f9fafb;
}

.related-product-price {
  margin: 0;
  font-weight: 700;
  color: #22c55e;
}

/* Botón */
.btn-related-detail {
  align-self: flex-start;
  margin-top: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: transparent;
  color: #e5e7eb;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-related-detail:hover {
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.85);
  transform: translateY(-1px);
}

/* Card final "Ver catálogo completo" */
.related-final-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(30, 41, 59, 0.8);
  border: 1px dashed rgba(148, 163, 184, 0.5);
}

.related-final-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.related-final-title {
  font-size: 1rem;
  font-weight: 600;
  color: #e5e7eb;
}

/* Responsive */
@media (max-width: 768px) {
  .related-product-card {
    flex-direction: column;
    flex: 0 0 220px;
  }
}

/* Precio grande y limpio */
.product-price {
  font-size: 2.4rem;
  font-weight: 800;
  color: #22c55e;
  margin: 8px 0 4px;
  letter-spacing: 0.03em;
  text-shadow: 0 0 18px rgba(34, 197, 94, 0.35);
}

.product-price-currency {
  font-size: 1.6rem;
  margin-right: 4px;
}

/* Estado */
.product-status {
  font-size: 0.95rem;
  font-weight: 600;
  color: #4ade80;
  margin-bottom: 20px;
}

/* Contenedor de botones */
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* Estilo base para todos los botones */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

/* Botón principal: WhatsApp */
.btn-primary {
  background: radial-gradient(circle at top left, #22c55e, #16a34a);
  color: #ecfdf5;
  box-shadow: 0 18px 40px rgba(22, 163, 74, 0.55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 55px rgba(22, 163, 74, 0.7);
}

/* Botón secundario: volver al catálogo */
.btn-secondary {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.5);
  color: #e5e7eb;
}

.btn-secondary:hover {
  transform: translateY(-1px);
  border-color: #64748b;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.9);
}

.product-actions a {
  text-decoration: none;
}
.em-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.85);
  background: radial-gradient(circle at top, #020617, #020617 50%, #020617 100%);
  padding: 28px 16px 32px;
  color: #e5e7eb;
  font-size: 0.9rem;
}

.em-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Marca */
.em-footer-brand p {
  margin: 2px 0;
}

.em-footer-logo {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 800;
}

.em-footer-logo span {
  color: #22c55e;
}

/* Links del footer */
.em-footer-links {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.em-footer-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s ease, text-shadow 0.15s ease;
}

.em-footer-links a:hover {
  color: #e5e7eb;
  text-shadow: 0 0 14px rgba(148, 163, 184, 0.5);
}

/* Copyright */
.em-footer-copy {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #6b7280;
}

.footer-centered {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  height: 36px;
  margin-bottom: 8px;
}

.footer-contact {
  margin: 0;
  color: #e5e7eb;
}

.footer-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.footer-links a {
  color: #e5e7eb;
  text-decoration: none;
  transition: 0.2s;
}

.footer-links a:hover {
  color: #22c55e;
}

.footer-copy {
  margin-top: 16px;
  color: #94a3b8;
  font-size: 0.9rem;
}
.product-main-image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #020617;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.image-hidden {
  opacity: 0;
}

.skeleton {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    #020617 0%,
    #111827 25%,
    #020617 50%,
    #111827 75%,
    #020617 100%
  );
  background-size: 400% 100%;
  animation: skeleton-loading 1.2s ease-in-out infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

/* ============================= */
/*           ENVIOS              */
/* ============================= */
.envios-section {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

#shipping-address {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.85);
  padding: 0.95rem 1rem;
  color: #e5ecff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#shipping-address::placeholder {
  color: #93a0c2;
}

#shipping-address:focus {
  border-color: #22c55e;
  box-shadow: 0 12px 35px rgba(34, 197, 94, 0.25);
  background: rgba(15, 23, 42, 0.95);
}

#shipping-result {
  font-size: 1rem;
  line-height: 1.5;
}

#shipping-status {
  min-height: 1.2em;
}
