/* PrestaChile Theme - Custom CSS */
/* Autor: Ricardo Rebolledo */
@import url('https://fonts.googleapis.com/css?family=Oswald:100,200,300,400,500,600,700,800,900|Shadows+Into+Light|Open+Sans:300,400,600,700,800|Playfair+Display:400,700&display=swap');
@import url("buttons.css");

:root {
  --bg-color: #121212;
  --bg-white: #F8F8F8;
  --bg-card: #1e1e1e;
  --text-white: #f1f1f1;
  --text-primary: #f8f8f8;
  --text-dark: #1E1E1E;
  --text-secondary: #a0a0a0;
  --accent: #ff4081;
  --text-yellow: #f6a623;
  --text-yellow-hover: #925f0e;
  --accent-hover: #f50057;
  --border-color: #333333;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --header-height: 70px;
  --bottom-nav-height: 65px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-family);
  margin: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body#index p{
  color: var(--text-primary);
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; padding: 0; margin: 0; }

.hidden{
  display: none !important;
}
#wrapper {
  background-color: var(--bg-card);
}

/* Utilities */
.desktop-only { display: flex; }
.mobile-only { display: none; }

@media (max-width: 1024px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: flex !important; }
  body { padding-bottom: var(--bottom-nav-height); }
}
/* Forms */
.form-control{
  background: #FFF;
}
.form-control-label {
  padding-top: 0;
  margin-bottom: 0;
}
/* Header */
.shop-name{
  font-family: "Oswald", sans-serif;
  font-weight: 450;
  font-size: 25px;
}
header{
  color: var(--text-primary);
}
#header a{
  color: var(--text-primary);
  transition: var(--transition);
}
#header a:hover{
  color: var(--text-yellow);
}
#floating-mobile-nav a{
  color: var(--text-dark) !important;
}
.header-container {
  background-color: var(--bg-card);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);


}

.logo img {
  max-height: 40px;
  width: auto;
}

.header-menu ul {
  display: flex;
  gap: 2rem;
}
.main-menu-list{
  position: relative;
}
.menu-item{
  position: initial;
}
@media (min-width: 1025px) {
  li.menu-item.has-children a.menu-link {
    padding-right: 20px;
    position: relative;
  }

  li.menu-item.has-children a.menu-link:after {
    content: '>';
    font-size: 1.2rem;
    color: var(--text-yellow-hover);
    transition: var(--transition);
    position: absolute;
    right: 0;
    
    /* --- Centrado Vertical --- */
    top: 50%;
    display: inline-block;
    /* Combinamos la rotación con el ajuste de altura (-50%) */
    transform: translateY(-50%) rotate(90deg);
  }

  li.menu-item.has-children:hover a.menu-link:after {
    /* Mantenemos el translateY(-50%) para que no pierda el centrado al rotar */
    transform: translateY(-50%) rotate(-90deg);
  }
  .megamenu-col {
    flex: auto;
    min-width: 150px;
  }
}

.header-menu a {
  font-weight: 500;
  color: var(--text-primary);
}

.header-menu a:hover {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.header-actions .cart-block{
  position: relative;
}
.header-actions .cart-block .nav-item-no-text {
  width: 40px;
  height: 40px;
  line-height: 50px;
}
.header-actions .show-qty-cart{
  right: -5px !important;
}

.header-actions .icon {
  font-size: 1.3rem;
  color: var(--text-primary);
  cursor: pointer;
}

.header-actions .icon:hover {
  color: var(--accent);
}

/* Mobile Menu Button */
.layout_layout1 li:hover > a, .layout_layout1 li > a:hover, #header .layout_layout1 li:hover > a, #header .layout_layout1 .mm_columns_ul .mm_block_type_product .product-title > a:hover, #header .layout_layout1 li > a:hover {
  color: #FFF !important;
}

.ets_mm_megamenu_content .container {
  width: auto;
}
.menu-toggle {
  background: none;
  border: none;
  outline: none;
  padding: 5px;
}

/* Mobile Drawer (App-like) */
.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 450px;
  height: 100%;
  background-color: var(--bg-card);
  z-index: 2000;
  transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2rem;
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

.mobile-menu-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.drawer-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.drawer-close {
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
}

.mobile-menu-content {
  overflow-y: auto;
  max-height: calc(100vh - 100px);
}

/* Drawer Menu Styling */
.mobile-menu-content ul {
  display: flex;
  flex-direction: column;
  /* gap: 1.5rem; */
}

.mobile-menu-content a {
  font-size: 1.2rem;
  font-weight: 500;
  display: block;
}

/* Mobile Bottom Navigation - Floating Vignette Style */
.mobile-bottom-nav {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 600px;
  height: 55px;
  background-color: rgba(255,255,255,0.9);
  border-radius: 50px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 2000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  padding: 0 10px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
}

.mobile-bottom-nav.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #121212;
  font-family: "Oswald", sans-serif;
  font-weight: 450;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  flex: 1;
  height: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}
.nav-item-no-text {
  width: 40px;
  text-align: center;
  display: inline-block;
}
.nav-cart-item .show-qty-cart{
  position: absolute;
  top: 0px;
  right: 1px;
  background-color: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  text-align: center;
  display: inline-block;
  line-height: 22px;
  z-index: 10;
}

.nav-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background-color: #ffffff;
}

.nav-item:hover {
  color: var(--accent);
  letter-spacing: 2px;
}

/* Ajuste específico para que el botón se comporte como los links */
button.nav-item {
  line-height: 1;
  padding: 0;
}

/* Footer Innovador - Bootstrap Based */
#footer{
  padding-top:0px;
}

footer p,footer a {
  color: var(--text-primary) !important;
}

.footer-main {
  background-color: var(--bg-card);
  color: var(--text-primary);
  margin-top: 1px;
}

/* 1. Newsletter Area */
.footer-newsletter {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(135deg, var(--bg-card) 0%, #1a1a1a 100%);
}

.newsletter-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.newsletter-desc {
  color: var(--text-secondary);
  font-size: 1rem;
}

.newsletter-form .input-group {
  display: flex;
  background: var(--bg-color);
  padding: 5px;
  border-radius: 8px;
  border: 1px solid #c0c0c0;
}

.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-white);
  padding: 0.5rem 1rem;
  outline: none;
}

.form-check-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* 2. Brand Identity */
.footer-brand-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-color);
}

.big-brand {
  font-size: 2.5rem !important;
  color: var(--text-primary);
  letter-spacing: -1px;
}

.social-links {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

@media (max-width: 767px) {
  .social-links { justify-content: center; margin-top: 1.5rem; }
  .big-brand { text-align: center; }
}

.social-icon {
  width: 45px;
  height: 45px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-primary);
  transition: var(--transition);
}

.social-icon:hover {
  border-color: var(--accent);
  background-color: var(--accent);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 64, 129, 0.4);
}

/* 3. Main Links Section */
.footer-links-section {
  padding: 5rem 0 3rem;
}

.footer-title {
  color: var(--text-primary);
  margin-bottom: 2rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

.footer-list li {
  margin-bottom: 12px;
}

.footer-list a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-list a i {
  color: var(--accent);
  font-size: 0.8rem;
  transition: var(--transition);
}

.footer-list a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.store-desc-alt {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* 4. Legal Bar */
.footer-legal {
  padding: 2rem 0 4rem;
  background-color: var(--bg-color);
  border-top: 1px solid var(--border-color);
}

.legal-links {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.legal-links a:hover { color: var(--text-primary); }

.copyright-text {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0;
}

@media (max-width: 767px) {
  .legal-links { justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
}
/* GENERAL */
.page-header h1,
.newsletter-title h3{
  text-align: center;
  font-family: "Oswald", sans-serif;
}
#main .page-content, #main .page-header {
  border-radius: 10px;
}

/* PRODUCT */
body#product section#wrapper {
  background-color: #FFF;
}
/* CATEGORY */
body#category section#wrapper {
  background-color: #FFF;
}
/* PAGES */
.layout-header-footer.elementor-page header.page-header {
  display: none;
}
.elementor-tab-content p:not(#e), .elementor-widget-text-editor p:not(#e){
  color: var(--text-dark);
}
/* AUTH */
.page-authentication #content {
  max-width: 100% !important;
}
/* --- Contenedor Split de Autenticación --- */
.auth-split-container {
  display: flex;
  align-items: stretch;
  min-height: 500px;
  background: var(--bg-card); /* Usando la variable de tu custom.css */
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  margin: 2rem 0;
}

/* Columna de Beneficios (Izquierda) */
.auth-benefits-col {
  background: var(--bg-card);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border-color);
}

.auth-benefits-content {
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}

.benefits-image-wrapper {
  margin-bottom: 2rem;
}

.auth-img {
  border-radius: 12px;
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.benefits-text h2 {
  font-family: "Oswald", sans-serif;
  color: var(--text-yellow);
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.benefits-text p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.benefits-list {
  text-align: left;
  display: inline-block;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.benefits-list li i {
  color: var(--text-yellow);
  font-size: 1.1rem;
}

/* Columna de Formulario (Derecha) */
.auth-form-col {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--bg-white);
}
.login-form .form-control-label{
  color: var(--text-dark);
}
.login-form .forgot-password{
  text-align: center;
  color: var(--text-dark);
}
/* .login-form {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.login-form .form-control {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  color: white;
  padding: 0.8rem;
} */

.no-account {
  margin-top: 2rem;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border-color);
}

.no-account a {
  color: var(--text-dark);
  font-weight: 500;
}

.no-account a:hover {
  text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .auth-split-container {
      flex-direction: column;
  }
  .auth-benefits-col {
      border-right: none;
      border-bottom: 1px solid var(--border-color);
      padding: 2rem;
  }
  .auth-form-col {
      padding: 2rem;
  }
}

.carousel {
  box-shadow: 0 0 0;
}
.carousel .carousel-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  color: #fff;
  max-width: 100%;
  display: flex; /* Activa flexbox */
  flex-direction: column; /* Asegura que los elementos se apilen verticalmente */
  justify-content: center; /* Centra verticalmente */
  align-items: center; /* Centra horizontalmente */
  text-align: center; /* Alinea el texto al centro */
  padding: 20px; /* Opcional: agrega espacio interno */
}
@media (max-width: 991px) {
  .carousel .carousel-item {
    height: 100%;
    min-height: 300px;
  }

  .carousel .carousel-item .caption-description{
    display: block;
  }

  h3.elementor-heading-title {
    font-size: 40px !important;
  }
  .customSection90mtop {
    margin-top: 0px !important;
  }
}
.digiDefaultFont{
  font-family: "Poppins", sans-serif;
}
h3.elementor-icon-box-title {
  font-family: "Poppins", sans-serif !important;
}


/* PAGE ELEMENTOR*/
h3.elementor-heading-title {
  color: #000;
}
h2.elementor-heading-title {
  color: #000;
}
h1.elementor-heading-title {
  color: #000;
}

/* CHECKOUT */

/* Contenedor principal */
.digi-checkout-flow {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}

/* Cada paso */
.digi-checkout-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  text-align: center;
  cursor: pointer;
}

/* Línea conectora entre pasos */
.digi-checkout-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15px; /* Mitad del alto del círculo para centrarla */
  left: 50%;
  width: 100%;
  height: 2px;
  background-color: #e5e5e5; /* Gris claro */
  z-index: 1;
}

/* Círculo con el número */
.digi-checkout-step-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #f1f1f1; /* Círculo inactivo */
  color: #fff; /* Texto inactivo */
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 14px;
  z-index: 2; /* Se sobrepone a la línea conectora */
  margin-bottom: 8px;
}

/* Texto del paso */
.digi-checkout-step-text {
  font-size: 12px;
  color: #a1a1a1;
  text-transform: capitalize;
}

/* --- ESTADOS (Pendiente, Activo, Completado) --- */

/* Estado Activo / Completado */
.digi-checkout-step.active .digi-checkout-step-number,
.digi-checkout-step.completed .digi-checkout-step-number {
  background-color: #f39c12; /* Naranja de tu sitio (puedes cambiarlo a azul si prefieres) */
  color: #fff;
}

.digi-checkout-step.active .digi-checkout-step-text,
.digi-checkout-step.completed .digi-checkout-step-text {
  color: #333;
  font-weight: 600;
}

/* Opcional: Línea conectora pintada si el paso está completado */
.digi-checkout-step.completed:not(:last-child)::after {
  background-color: #f39c12;
}
body#checkout #header .header-nav{
  background: var(--bg-card);
}

.checkout-step.-reachable {
  display: none;
}
.checkout-step.-reachable.-current {
  display: block;
}