/*
Theme Name: ONLINE VALLES
Template: hello-elementor

*/


/* Theme admin customization starts here
-------------------------------------------------------------- */
.sbi_notice,
.trp-notice.error,
.sbi_notice.sbi_review_notice_step,
.trp-notice.trp-narrow.notice.notice-info,
.trp-notice.trp-narrow {
	display: none;
}

.grecaptcha-badge { 
    visibility: hidden !important;
}



/* Theme customization starts here
-------------------------------------------------------------- */
body {
	overflow-x: hidden;
}

.burguer-menu .elementor-button .elementor-button-content-wrapper {
display: flex;
align-items: center;
}


.burguer-menu .elementor-button .elementor-button-icon {
font-size: 20px;
}

@media (max-width: 766px) {
	.burguer-menu .elementor-button .elementor-button-text {
		display: none;
	}
}


.menu-graella .border {
    
    border-image: linear-gradient(to bottom, white, rgba(0, 0, 0, 0)) 1 100%;

}





#megamenu {
	position: absolute;
	top: 80px;
	left: 0;
	right: 0;
	z-index: 90;
	height: 0;
	overflow: hidden;
	opacity: 1;
	visibility: hidden;
	transform: translateY(-180px); /* Inicialmente desplazado hacia arriba */
	transition: all 0.25s ease-in-out, transform 0.25s ease-in-out;
}


.postid-63 #megamenu,
#megamenu.show {
	height: auto;
	opacity: 1;
	visibility: visible;
	transform: translateY(0); /* Mostrar desplazándose hacia abajo */
}

@keyframes expandMenu {
	from {
		transform: translateY(-180px);
	}
	to {
		transform: translateY(0);
	}
}

@keyframes collapsedMenu {
	from {
		transform: translateY(0);
	}
	to {
		transform: translateY(-180px);
	}
}


.toggle-menu {
	display: flex;
}
.toggle-menu  a {
       padding: 0;
    border-radius: 0;
    outline: 0;
    min-height: 40px;
    position: relative;
	    display: flex;
    align-items: center;
    margin-left: 0;
}

.toggle-menu > a span {
  display: table-cell;
  vertical-align: middle;
}
.toggle-menu > a span em {
  /* this is the menu icon */
  display: block;
  position: relative;
  height: 2px;
  width: 32px;
  background-color: transparent;
  backface-visibility: hidden;
  /* this is the menu central line */
  margin: auto;
  transition: background-color 0.2s;
  background-color: var(--e-global-color-primary);
}
/*
@media screen and (prefers-color-scheme: dark) {
  .toggle-menu > a span em {
    background-color: transparent;
  }
}
*/
.toggle-menu > a span em::before,
.toggle-menu > a span em::after {
  /* this is the menu icon */
  display: block;
  height: 2px;
  width: 32px;
  background-color: var(--e-global-color-primary);
  backface-visibility: hidden;
  position: absolute;
  content: "";
  left: 0;
  transition: transform 0.2s;
}

/* Top line */
.toggle-menu > a span em::before {
  top: -10px;
  transform: rotate(0);
}

/* Bottom line */
.toggle-menu > a span em::after {
  top: 10px;
  transform: rotate(0);
}

/* Middle line */
.toggle-menu > a span em {
  display: block;
  position: relative;
  height: 2px;
  width: 32px;
  background-color: var(--e-global-color-primary);
  backface-visibility: hidden;
  transition: background-color 0.2s;
}

/* Hover state */


.toggle-menu > a.open span em {
  background-color: transparent;
}

.toggle-menu > a.open span em::before {
  transform: translateY(10px) rotate(45deg);
}

.toggle-menu > a.open span em::after {
  width: 30px;
  transform: translateY(-10px) rotate(-45deg);
}

.toggle-menu > a.open, .navbar-toggler:focus {
  box-shadow: none;
  
}







.align-center {
	display: flex;
	align-items: center;
}
.align-center .elementor-icon-wrapper {
	display: flex;
	align-items: center;
}

.post-content h2, 
.post-content h3, 
.post-content h4, 
.post-content h5, 
.post-content h6 {
    margin-top: 1.5em; /* Margen por defecto */
    margin-bottom: 0.5em;
}

/* Si un heading sigue a otro heading, sin margen */
.post-content :is(h2,h3,h4,h5,h6) + :is(h2,h3,h4,h5,h6) {
  margin-top: 0;
}

/* 1) Si el heading es el primer elemento dentro de .post-content → sin margen */
.post-content > :is(h2,h3,h4,h5,h6):first-child {
  margin-top: 0;
}


.post-content ul,
.post-content ol {
	margin-bottom: 1.5em; 
}

.post-content .wp-block-image,
.post-content .wp-block-embed,
.post-content .wp-block-table {
	margin: 1.5em auto;
}

.post-content a {
	text-decoration: underline !important;
}




.post-content table td, .post-content table th {
    padding: 6px 6px;
	font-size: 10px;
	line-height: 1.2;
}

@media (min-width: 1024px) {
	.post-content table td, .post-content table th {
		padding: 8px 16px;
		font-size: 12px;
	}
}



.product-content  .elementor-widget-text-editor > :is(h2,h3,h4,h5,h6):first-child {
  margin-top: 0;
}

.product-content h2, 
.product-content h3, 
.product-content h4, 
.product-content h5, 
.product-content h6 {
    color: var(--e-global-color-primary);
}


.product-content table strong,
.product-content table b {
	color: var(--e-global-color-primary);
}






.imagen-avanzada {
    width: 100%;
    overflow: hidden;
}

/* Proporciones aplicadas directamente a la imagen */
.imagen-avanzada.land43  img { aspect-ratio: 4 / 3; }
.imagen-avanzada.land32  img { aspect-ratio: 3 / 2; }
.imagen-avanzada.land169 img { aspect-ratio: 16 / 9; }
.imagen-avanzada.land21  img { aspect-ratio: 2 / 1; }
.imagen-avanzada.land31  img { aspect-ratio: 3 / 1; }
.imagen-avanzada.land41  img { aspect-ratio: 4 / 1; }
.imagen-avanzada.port34  img { aspect-ratio: 3 / 4; }
.imagen-avanzada.port23  img { aspect-ratio: 2 / 3; }
.imagen-avanzada.square  img { aspect-ratio: 1 / 1; }

.imagen-avanzada img {
    width: 100%;
    height: auto;            /* importante */
    object-fit: cover;
    display: block;
    transition: transform 300ms ease-in-out;
}


.imagen-avanzada a:hover img {
    /* Escalar la imagen un 5% (ejemplo) */
    transform:  scale(1.1) rotate(-3deg);
    
}



/* CONTENEDOR GENERAL */
.formulario {
	max-width: 900px;
	margin: 0 auto;
	font-family: inherit;
}

.formulario p, .formulario div {
	margin: 0;
}

/* GRID DE COLUMNAS */
.formulari-row {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	column-gap: 10px;
	row-gap: 10px;
}

@media (min-width: 766px) {
	.formulari-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.formulario .column.one  {
		grid-column: span 2;
	}
}

.formulario .column {
	padding: 0;
	box-sizing: border-box;
	margin: 0;
}

.formulario .one-second {
	width: 100%;
}

.formulario .one {
	width: 100%;
}

/* LIMPIAR FLOATS */
.formulario::after {
	content: "";
	display: block;
	clear: both;
}

/* LABELS */
.formulario label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 6px;
	color: var(--e-global-color-primary);
}

/* INPUTS / TEXTAREA */
.formulario input[type="text"], .formulario input[type="email"], .formulario input[type="tel"], .formulario input[type="number"], .formulario textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 14px;
	transition: all 0.3s ease;
	box-sizing: border-box;
	margin: 8px 0;
}

/* EFECTO FOCUS */
.formulario input:focus, .formulario textarea:focus {
	border-color: #0073aa;
	outline: none;
	box-shadow: 0 0 0 2px rgba(0,115,170,0.15);
}

/* CHECKBOX Y RADIO */
.formulario .wpcf7-checkbox, .formulario .wpcf7-radio {
	margin-top: 16px;
	display: flex;
}

.formulario .wpcf7-list-item {
	display: inline-block;
	margin-right: 15px;
	font-size: 14px;
}

/* BOTÓN */
.formulario input[type="submit"] {
	background: #0073aa;
	color: #fff;
	border: none;
	padding: 14px 28px;
	border-radius: 30px;
	font-size: 15px;
	cursor: pointer;
	transition: all 0.3s ease;
}

/* HOVER BOTÓN */
.formulario input[type="submit"]:hover {
	background: #005f8d;
	transform: translateY(-1px);
}

/* CHECK PRIVACIDAD */
.formulario .wpcf7-acceptance {
	font-size: 13px;
}

.formulario .wpcf7-acceptance a {
	color: #0073aa;
	text-decoration: underline;
}

/* MENSAJES CF7 */
.formulario .wpcf7-response-output {
	margin-top: 20px;
	padding: 10px;
	border-radius: 6px;
	font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
	.formulario .one-second {
		width: 100%;
	}
}

.elementor .drets a {
	text-decoration: underline;
}


.drets label {
	line-height: 1.1;
	display: flex;
	align-items: center;
	gap: 10px;
}

.drets .wpcf7-list-item {
	margin: 0;
	width: 100%;
}

.drets .wpcf7-list-item-label {
	width: calc(100% - 30px);
	text-align: left;
}



.wpcf7-list-item {
	margin: 0;
}

.wpcf7-acceptance [type=checkbox] {
	appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #1e1e1c;
    background: transparent;
    border-radius: 0;
    position: relative;
    cursor: pointer;

}


.wpcf7-acceptance input[type="checkbox"]:checked {
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='20' viewBox='0 0 24 24' width='20' fill='%23000000'%3E%3Cpath d='M0 0h24v24H0V0z' fill='none'/%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
}











.product-loop-image img {
	object-fit: cover;
	aspect-ratio: 400 / 400;
	width: 100%;
	height: auto;
	display: block;
}

.product-loop .img-featured {
	width: 100%;
	opacity: 0;
	transition: opacity 200ms ease;

}

.product-loop:hover .img-featured {
	width: 100%;
	opacity: 1;

}


/* Contenedor cantidad */
.quantity {
    display: flex;
    align-items: center;
}

/* Botones + y - */
.quantity button {
    width: 35px;
    height: 35px;
    background: #eee;
    border: 1px solid #ccc;
    cursor: pointer;
    font-size: 18px;
	padding: 0 !important;
	margin: 0 !important;
}

/* Input cantidad */
.quantity input.qty {
    width: 50px;
    text-align: center;
    border-left: 0;
    border-right: 0;
	 pointer-events: none;
	border: 0;
	width: 2.5rem !important;
}

/* Quitar flechas en Chrome, Safari, Edge */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Quitar flechas en Firefox */
input[type=number] {
    -moz-appearance: textfield;
}




.woocommerce   table.shop_attributes td p {
    margin: 0;
    padding: 0;
}
.woocommerce  table.shop_attributes td {
	padding: 8px;
}
.woocommerce table.shop_attributes th {
	width: 30%;
}
.tabla table td, .tabla table th {
	border: 0;
}



.woocommerce div.product form.cart .variations td, .woocommerce div.product form.cart .variations th {
    background: transparent;
}
