/*
 Theme Name:     alecook 2025
 Theme URI:      https://example.com/twentytwentyfive-child
 Description:    Site theme
 Author:         Alecook
 Author URI:     https://example.com
 Template:       twentytwentyfive
 Version:        1.0
 Text Domain:    twentytwentyfive-child
*/


h1, h2, h3, h4, h5, h6 {
  /* font-family: var(--wp--preset--font-family--brix-slab);
  color: var(--wp--preset--color--primario); */
  /* font-weight: 700; */
} 

strong {
    font-weight: 700;
}

/* Siempre oculto o visible */
.d-none {
  display: none !important;
}
.d-block {
  display: block !important;
}

/* Mostrar solo a partir de cierto ancho */
@media (min-width: 768px) {
  .d-md-block {
    display: block !important;
  }
  .d-md-none {
    display: none !important;
  }
}

@media (min-width: 992px) {
  .d-lg-block {
    display: block !important;
  }
  .d-lg-none {
    display: none !important;
  }
}

.no-padding {
  padding: 0 !important;;
}
*:focus,
*:focus-visible,
*:active {
  outline: none !important;
  box-shadow: none !important;
}


.table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  color: #333;
}

.table th,
.table td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
}

.table thead {
  background-color: #f0f0f0;
  font-weight: bold;
}

.table tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

.table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}
/* Esconder rango de precios
.wc-block-components-product-price > span:nth-child(1) > bdi:nth-child(1) {
  display: none !important;
}*/

/* Botones */ 
    /* Botones de WooCommerce con estilo global */
    .woocommerce a.button,
    .woocommerce button.button,
    .woocommerce input.button,
    .woocommerce-page a.button,
    .woocommerce-page button.button,
    .woocommerce-page input.button {
        background-color: var(--wp--preset--color--primario);
        color: var(--wp--preset--color--blanco);
        font-family: var(--wp--preset--font-family--open-sans);
        text-transform: uppercase;
        padding: 12px 24px;
        border-radius: 5px;
        border: none;
        cursor: pointer;
        text-decoration: none;
        display: inline-block;
        font-weight: 600;
        text-align: center;
    }
    
    .woocommerce a.button:hover,
    .woocommerce button.button:hover,
    .woocommerce input.button:hover {
        opacity: 0.85;
    }
    
    
.wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent;
    color: var(--wp--preset--color--primario);
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0 0;
    margin: 0;
    border-radius: unset;
    font-family: var(--wp--preset--font-family--inter);
}

.wp-block-button.is-style-relleno-negro .wp-block-button__link {
  background-color: var(--wp--preset--color--negro);
  color: var(--wp--preset--color--blanco);
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 5px;
  font-family: var(--wp--preset--font-family--inter);
}

/* ! Cabecera */


    /* posiciona fijo */ 
        /* Fija toda la cabecera */
        header.wp-block-template-part {
          position: fixed;
          top: 0;
          width: 100%;
          z-index: 9999;
          transition: padding 0.3s ease, box-shadow 0.3s ease;
          background-color: #000; /* ajusta según necesidad */
        }
        
        body {
          margin-top: 160px; 
        }
        html {
            margin-top: 0 !important;
        }
        
        /* Transición del logo */
        header.wp-block-template-part figure.wp-block-image img {
          max-width: 180px;
          transition: max-width 0.3s ease;
        }
        
        /* Cuando se hace scroll, reducimos el logo */
        header.wp-block-template-part.is-scrolled figure.wp-block-image img {
          max-width: 140px;
        }
        
        /* (Opcional) Reducir también padding de bloques internos */
        header.wp-block-template-part.is-scrolled .wp-block-group.alignwide {
          padding-top: var(--wp--preset--spacing--10);
          padding-bottom: var(--wp--preset--spacing--10);
        }



   
    @media screen and (max-width: 991px) {
        header .logo {
            width: 80px;
            bordeR: 1px solid blue;
        }
        header img {
            max-width: 120px !important;
        }
    }
    
    .wp-block-navigation ul {
       /* font-family: var(--wp--preset--font-family--brix-slab); 
    } */
    
    .wp-block-navigation ul li.current-menu-item a {
        text-decoration: underline;
    }
    
    .wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
    padding: .5rem;
    }

@media (max-width: 768px) {
    .wp-block-navigation__container > li > a {
        border-bottom: 1px solid white;
        display: block;
        width: 100%;
    }
    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container ul {
        padding: 0 !important;
        margin: 0 0 .5em 0!important;

    }
    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container ul li a {
        font-weight: normal !important;
        text-transform: none !important;
    }
}



/* Hack para que el menú salte a los 920px de ancho */ 

    /* Forzar menú móvil a partir de 920px */
    @media (max-width: 920px) {
    .wp-block-navigation__responsive-container-open {
        display: flex !important; /* Mostrar el botón del menú móvil */
    }
    
    .wp-block-navigation__responsive-container {
        display: none !important; /* Ocultar menú de escritorio */
    }
    
    .wp-block-navigation__responsive-container.is-menu-open {
        display: block !important; /* Mostrar el menú móvil cuando está activo */
    }
    
    .wp-block-navigation__container {
        display: none !important; /* Ocultar el contenedor horizontal del menú */
    }
    
    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
        display: flex !important; /* Mostrar los elementos del menú móvil */
        flex-direction: column;
    }
    }



/* Hack para cuando hay 5 columnas */ 
  .wc-block-grid.has-5-columns .wc-block-grid__product {
    font-size: 1rem;
  }


/* --- Contenedor General del Formulario --- */
.wpcf7-form {
    max-width: 600px;
    /* font-family: var(--wp--preset--font-family--nimbus-sans); */
    color: var(--wp--preset--color--negro);
}

/* --- Estilos de los Campos de formulario --- */

    /* Contenedor principal del formulario */
    .form-container {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        align-items: flex-start;
        justify-content: space-between;
    }
    
    /* Columnas */
    .form-left, .form-right {
        flex: 1;
        min-width: 300px;
    }
    
    /* Estilos de los campos */
    .form-container label {
        display: block;
        font-weight: bold;
        position: relative;
        margin-bottom: 20px;
    }
    
    .form-container input,
    .form-container textarea {
        width: 100%;
        padding: 10px;
        font-size: 16px;
        border: 1px solid #ccc;
        border-radius: 5px;
    }
    
    /* Establecer altura del textarea */
    .form-container textarea {
        height: 120px;
        resize: vertical;
    }
    
    /* Estilos para el checkbox */
    .checkbox-container {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 10px;
    }
    
    .checkbox-container input {
        width: auto;
        margin: 0;
    }
    
    /* Botón de enviar alineado a la derecha */
    .form-submit {
        display: flex;
        justify-content: flex-end;
        margin-top: 20px;
    }
    
    /* Estilos para labels flotantes */
    .form-container label {
        position: relative;
    }
    
    .form-container input:focus + label,
    .form-container textarea:focus + label {
        font-size: 12px;
        color: var(--wp--preset--color--primario);
        position: absolute;
        top: -10px;
        left: 10px;
        background: white;
        padding: 0 5px;
        transition: all 0.3s ease-in-out;
    }



.grecaptcha-badge {
    display: none !important;
}

h2 .fas {
    font-size: .5em;
    vertical-align: middle;
}

.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 700;
}
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content:hover {
    text-decoration: none;
    color: var(--wp--preset--color--secundario);
}

.wp-block-cb-carousel .slick-slide {
    margin-bottom: 2rem;
}
.wp-block-cb-carousel .slick-slide figure {
    padding: 0;
}
.wp-block-cb-carousel .slick-slide h3, 
.wp-block-cb-carousel .slick-slide p {
    padding: 0 2rem;
    margin: 0;
}

.slick-dots li button::before {
  font-size: 1rem;
  line-height: 20px;
  content: '•';
}


.am-lite-footer {
    display: none;
}
.amelia-v2-booking #amelia-container.am-fs__wrapper {
    box-shadow: 0 10px 10px #0000001f !important;
    border: 2px solid white;
}

.amelia-v2-booking #amelia-container p  {
    color: #fff !important;
}
:where(.wp-site-blocks) > * {
    margin-block-start: 0;
}


.wp-block-cb-carousel .slick-next::before, .wp-block-cb-carousel .slick-prev::before {
  color: #000;

}
.slick-prev::before {
  content: '←';

}
.slick-next::before, .slick-prev::before {
  font-size: 2rem;
}


.page-template-wp-custom-template-plantilla-landings header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 10000;
}
.page-template-wp-custom-template-plantilla-landings .entry-content {
    margin-top: 80px;
}
.block_hints.datepick {
    display: none;
}
.wpbc_calendar_wraper.wpbc_change_over_triangle > div:nth-child(2) {
    display: none;
}


/*  invierte las columnas en móvil */ 

@media screen and (max-width: 781px) {
    .banner-home {
        padding: 0;
    }
    .banner-home img {
        max-width: 75%;
    }
    .columnas-invertidas > div:nth-child(1) {
        order: 2;
    }
    .columnas-invertidas > div:nth-child(2) {
        order: 1;
    }
}


/* Carrito de la compra lateral */ 
.wc-block-components-product-name {
    color: var(--wp--preset--color--negro);
    font-family: var(--wp--preset--font-family--inter);
    font-size: 1.5rem;
    line-height: 1.5rem !important;
    font-weight: 700;
    text-decoration: none;
}

.wc-block-cart__submit-button,
.wc-block-mini-cart__footer .wc-block-mini-cart__footer-actions .wc-block-components-button {
    border-radius: .5rem;
}
.wc-block-cart__submit-button,
.wc-block-mini-cart__footer .wc-block-mini-cart__footer-actions .wc-block-components-button.contained {
    background-color: var(--wp--preset--color--primario);
    color: var(--wp--preset--color--blanco);
    font-weight: bold;
}
@media screen and (max-width: 992px) {
    .page-id-485 .wp-block-cover .wp-block-group.is-style-default.has-primario-background-color .wp-block-button a {
        padding: .8rem !important;
    }
    .page-id-485 .wp-block-cover .wp-block-spacer {
        display: none;
    }
}




.woocommerce.wp-block-group.alignwide {
    max-width: none;
}
/* Contenedor principal */
.checkout.woocommerce-checkout {
  position: relative;
}

/* Sección izquierda - datos del cliente */
#customer_details {
  width: 55%;
    float: left;
}

#customer_details .col-1,
#customer_details .col-2 {
  width: 100%;
}

/* Fuerza los campos de facturación a una sola columna */
#customer_details .form-row {
  width: 100% !important;
  float: none !important;
  clear: both;
}

/* Sección derecha - resumen del pedido */
#order_review {
  width: 40%;
    float: right;
}

/* Eliminar márgenes innecesarios y asegurar buena visualización */
.shop_table.woocommerce-checkout-review-order-table,
.woocommerce-checkout-review-order-table {
  width: 100% !important;
    max-width: none;
}

@media (max-width: 992px) {
  
  #customer_details,
  #order_review {
    width: 100%;
        float: none;
  }
}




.woocommerce-billing-fields__field-wrapper .form-row {
    clear: both;
}
.woocommerce-billing-fields__field-wrapper .form-row label {
    display: block;
    float: left;
    width: 40%;
}
.woocommerce-shipping-fields__field-wrapper .form-row label,  
.woocommerce-billing-fields__field-wrapper .form-row label {
    display: block;
    float: left;
    width: 40%;
}
.woocommerce-shipping-fields__field-wrapper .form-row .woocommerce-input-wrapper, 
.woocommerce-billing-fields__field-wrapper .form-row .woocommerce-input-wrapper {
    display: block;
    float: right;
    width: 60%;
}
@media (max-width: 575px) {
    .woocommerce-shipping-fields__field-wrapper .form-row label, 
    .woocommerce-shipping-fields__field-wrapper .form-row .woocommerce-input-wrapper, 
    .woocommerce-billing-fields__field-wrapper .form-row label,
    .woocommerce-billing-fields__field-wrapper .form-row .woocommerce-input-wrapper {
        display: block;
        float: none;
        width: 100%;
    }
}



.wp-block-cover__inner-container {
    position: relative;
    width: 100%;
    height: 100%;
}
.wp-block-cover .cover-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

.wp-block-cover .cover-link a {
  display: block;
  width: 100%;
  height: 100%;
  text-indent: -9999px; /* Oculta el texto visualmente */
}


/* ! Página de producto */ 
		
/* quitamos "desde"*/ 
.woocommerce div.product span.price {
    display: none !important;
} 
	.price .from {
   display: none !important;
}

.woocommerce-variation-price, 
.wc-block-components-product-price {
    font-weight: bold;
    font-size: 1.4rem;
}

.woocommerce span.onsale {
  background: var(--wp--preset--color--primario);
  border-radius: 4px;
  color: var(--wp--preset--color--blanco);
  display: inline-block;
  font-size: .875em;
  font-weight: 600;
  left: auto;
  padding: .5em .75em;
  position: absolute;
  right: 4px;
  text-align: center;
  text-transform: uppercase;
  top: 4px;
  width: auto;
  min-height: unset;
  line-height: 1em;
}

ul.pills { text-align: center; }
ul.pills li {
    list-style-type: none;
    display: inline-block;
    margin-bottom: .5em;
    border-radius: 20px;
}
ul.pills li a {
    list-style-type: none;
    display: inline-block;
    padding: .2em 1em;
    border-radius: 20px;
    background-color: var(--wp--preset--color--negro);
    color: var(--wp--preset--color--blanco);
    text-decoration: none;
    font-size: .9em;
    transition: all ease-in-out .2s;
}
ul.pills li a:hover {
    background-color: var(--wp--preset--color--primario);
}


.wc-deposits-options-form .deposit-options {
    margin: 1rem 0;
    background-color: #bbb;
    box-shadow: none;
    color: black !important;
    height: auto;
}
.wc-deposits-options-form div a.wc-deposits-switcher {
    background: none; 
    background-color: var(--wp--preset--color--primario);
}
.wc-deposits-options-form input.input-radio:enabled ~ label  {
    color: var(--wp--preset--color--blanco);
    text-shadow: none;
}
.wc-deposits-options-form label  {
    padding: .3rem 0;
    font-weight: normal;
    font-size: 1rem;
}

