/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

:root {
  --color-principal: #80B2F2;
  --color-acento: orange;
}

/* valor por defecto de la fuente */
body,
.elementor-widget-woocommerce-cart .woocommerce {
	font-family: Montserrat, sans-serif;
}

/* detalles de privacidad en el formulario de contacto */
div.wpforms-container-full details dl dt {
	font-weight: 700;
}
/* logos del kit digital */
.logos-kit-digital {
	max-width: 100%;
	text-align: center;
}

/* woocommerce */
/* 1) Contenedor del “add to cart” en el loop: misma altura y alineado */
.woocommerce ul.products li.product form.cart {
  display: flex;
  align-items: stretch;    /* iguala alturas entre qty y botón */
  gap: 10px;
}

/* 2) Botones: centrado vertical y misma altura */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button,
.woocommerce ul.products li.product .product_type_variable,
.woocommerce ul.products li.product .single_add_to_cart_button {
  display: inline-flex;
  align-items: center;     /* centra verticalmente */
  justify-content: center; /* centra horizontalmente */
  min-height: 44px;        /* altura mínima uniforme de botón */
  line-height: 1.2;        /* evita textos “subidos” */
  padding: 0 16px;
  vertical-align: middle;
  box-sizing: border-box;
}

/* 3) Campo cantidad (qty): misma altura que el botón */
.woocommerce ul.products li.product .quantity .qty,
.woocommerce ul.products li.product .quantity input.qty {
  height: 44px;            /* igual a min-height del botón */
  line-height: 44px;       /* centra el valor dentro del input */
  padding: 0 12px;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: textfield;
}

/* 4) Por si algún tema fija alturas distintas: anula min-height heredados */
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product .button {
  min-height: 44px !important;
}

/* 5) Opcional: mismo ancho visual en la fila (queda muy limpio) */
.woocommerce ul.products li.product form.cart .quantity {
  min-width: 80px;   /* ajusta si quieres más/menos */
}

/* wordpress */
/* hero de las tiendas y el blog */
h1.elementor-heading-title {
	font-size: 65px;
	font-weight: 600;
	line-height: 1.2;
}

/* cabecera de la web */
#elementor-menu-cart__toggle_button {
	border: none;
}
header .elementor-icon,
header .elementor-icon:hover {
	color: var(--color-principal);
}
header .elementor-icon svg,
header .elementor-menu-cart__toggle .elementor-button svg {
	fill: var(--color-principal);
}
header a {
	color: var(--color-principal);
}

.menu-icons {
  display: flex;
  align-items: center;
  gap: 1rem; /* separación entre iconos */
}

.menu-icons.e-con {
	width: auto;
}

.menu-icons a:not(.elementor-menu-cart__main a),
.menu-icons i,
.menu-icons svg {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;   /* iguala el ancho */
  height: 40px;  /* iguala el alto */
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
}

.menu-icons svg {
  width: 20px;
  height: 20px;
}

/* menu */
.elementor-nav-menu a .sub-arrow {
	fill: var(--color-principal);
}
.elementor-nav-menu a:hover .sub-arrow,
.elementor-nav-menu a.highlighted .sub-arrow {
	fill: white;
}

/* === BARRA DE CATEGORÍAS === */
.barra-categorias {
  display: flex;
  justify-content: flex-start; /* 👈 alineada a la izquierda en móvil */
  background-color: var(--e-global-color-primary);
  padding: 15px 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Oculta scrollbar en Firefox */
}

/* Ocultar scrollbar en Chrome/Safari */
.barra-categorias::-webkit-scrollbar {
  display: none;
}

/* === LISTA === */
.barra-categorias ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
  align-items: center;
}

.barra-categorias li {
  flex: 0 0 auto; /* Evita que se estiren */
}

/* === BOTONES === */
.barra-categorias li a {
  display: inline-block;
  background-color: #fff;
  color: var(--e-global-color-primary);
  font-weight: 600;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 20px;
  transition: all 0.25s ease-in-out;
  white-space: nowrap;
  border: 2px solid transparent;
  box-shadow: 0 0 0 transparent;
}

/* Hover = mismo estilo que activo */
.barra-categorias li a:hover {
  background-color: var(--color-acento);
  color: #fff;
  border-color: #ff7a00;
  box-shadow: 0 4px 10px rgba(255, 122, 0, 0.3);
}

/* Activo */
.barra-categorias li.active a {
  background-color: var(--color-acento);
  color: #fff;
  border-color: #ff7a00;
}

/* === ESCRITORIO: CENTRADO === */
@media (min-width: 768px) {
  .barra-categorias {
    justify-content: center; /* 👈 centrada en escritorio */
  }
}

/** woocommerce */
.elementor-widget-woocommerce-cart .woocommerce .wc-proceed-to-checkout .checkout-button {
	background-color: var(--color-principal);
}
.elementor-widget-woocommerce-cart .woocommerce .wc-proceed-to-checkout .checkout-button:hover,
.elementor-widget-woocommerce-cart .woocommerce button.button:hover {
	background-color: var(--color-acento);
}

/** area de usuario */
/* === Área de cliente: pestañas como cajas de icono === */

/* === WooCommerce Mi Cuenta: cajas de icono horizontales con ancho automático === */

/* Contenedor principal */
.woocommerce-MyAccount-navigation {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  background: transparent;
  padding: 20px 0;
  border-bottom: 2px solid #eee;
}

/* El UL debe ser flex */
.woocommerce-MyAccount-navigation ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 15px; /* separación horizontal */
  row-gap: 20px;   /* separación vertical entre filas ✅ */
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Los LI uno al lado del otro */
.woocommerce-MyAccount-navigation li {
  width: auto;
  flex: 0 0 auto;
}
.elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce .woocommerce-MyAccount-navigation ul li {
	width: auto;
}

/* Caja de icono adaptable */
.woocommerce-MyAccount-navigation a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: auto; /* ✅ ancho automático */
  min-width: 110px; /* ancho mínimo para consistencia visual */
  height: 120px;
  padding: 0 15px; /* espacio horizontal variable */
  padding-bottom: 10px; /* 👈 más espacio debajo del texto */
  background: #fff;
  border: 2px solid #eee;
  border-radius: 16px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  text-decoration: none;
  font-weight: 600;
  color: #333;
  text-align: center;
  transition: all 0.3s ease;
}
.elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce .woocommerce-MyAccount-navigation ul li a,
.elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce .woocommerce-MyAccount-navigation ul li.is-active a {
	background-color: white;
	text-align: center;
	height: 120px;
	border-radius: 15px;
}

/* Hover y activo */
.woocommerce-MyAccount-navigation a:hover,
.woocommerce-MyAccount-navigation li.is-active a {
  border-color: var(--e-global-color-primary, #f58a00);
  color: var(--e-global-color-primary, #f58a00);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

/* Iconos */
.woocommerce-MyAccount-navigation a::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 22px;
  margin-bottom: 6px;
  display: block;
}

/* Iconos específicos */
.woocommerce-MyAccount-navigation-link--dashboard a::before { content: "\f015"; } /* casa */
.woocommerce-MyAccount-navigation-link--orders a::before { content: "\f291"; } /* caja */
.woocommerce-MyAccount-navigation-link--downloads a::before { content: "\f019"; } /* descarga */
.woocommerce-MyAccount-navigation-link--edit-address a::before { content: "\f3c5"; } /* ubicación */
.woocommerce-MyAccount-navigation-link--payment-methods a::before { content: "\f09d"; } /* métodos de pago */
.woocommerce-MyAccount-navigation-link--edit-account a::before { content: "\f007"; } /* usuario */
.woocommerce-MyAccount-navigation-link--customer-logout a::before { content: "\f2f5"; } /* salida */

/* Responsive */
@media (max-width: 600px) {
  .woocommerce-MyAccount-navigation a {
    min-width: 45%;
    height: 90px;
  }
}

/* --- Distribuir equitativamente las cajas de icono en toda la barra --- */

/* El UL será un contenedor flexible horizontal */
.woocommerce-MyAccount-navigation ul {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* Cada LI ocupa el mismo espacio */
.woocommerce-MyAccount-navigation li {
  flex: 1 1 0; /* 👈 Todos los elementos se reparten equitativamente */
  display: flex; /* permite centrar el contenido del enlace */
  justify-content: center;
  align-items: stretch;
}

/* Cada enlace ocupa todo el ancho de su LI */
.woocommerce-MyAccount-navigation a {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100px;
  background: #fff;
  border: 2px solid #eee;
  border-radius: 16px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
}

/* Hover y activo */
.woocommerce-MyAccount-navigation a:hover,
.woocommerce-MyAccount-navigation li.is-active a {
  border-color: var(--e-global-color-primary, #f58a00);
  color: var(--e-global-color-primary, #f58a00);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

/* Iconos */
.woocommerce-MyAccount-navigation a::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 32px;
  margin-bottom: 6px;
  display: block;
}

/* Responsive: dos por fila en móvil */
@media (max-width: 600px) {
  .woocommerce-MyAccount-navigation ul {
    flex-wrap: wrap;
  }
  .woocommerce-MyAccount-navigation li {
    flex: 1 1 50%; /* dos por fila */
  }
  .woocommerce-MyAccount-navigation a {
    height: 90px;
  }
}


/* --- Fondo azul en toda la barra de navegación del área de cliente --- */
/* --- Franja azul a pantalla completa, sin mover nada --- */
.woocommerce-MyAccount-navigation {
  position: relative;
  z-index: 1;
  padding: 20px 0;
}

/* pseudo-elemento que pinta el fondo */
.woocommerce-MyAccount-navigation::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background: var(--color-principal);
  z-index: -1; /* se queda detrás del contenido */
}

/* UL y botones normales */
.woocommerce-MyAccount-navigation ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px 15px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1200px;
}
