/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */
/* === BOMBEO DE ICONO DE CHILIS: página de inicio === */
.mi-icono-bombeo {
    display: inline-block;
    animation: bombear 1s ease-in-out forwards; /* Animación que solo se reproduce una vez y luego se queda fijo */
}

@keyframes bombear {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); } /* Aumenta al 150% en el punto medio (más grande) */
    100% { transform: scale(1); } /* Vuelve al tamaño original */
}
/* === DEGRADADO DE SEPARADOR debajo de la foto principal: página de inicio === */
.custom-separator1 {
  position: relative;
  background: linear-gradient(to top, #000000 70%, rgba(0, 0, 0, 0) 100%);
  overflow: hidden;
  margin-top: -36px; /* Ajusta la posición superior si lo necesitas */
  margin-bottom: 0px;
  z-index: 5; /* El separador tiene un z-index mayor para estar por encima de la columna */
}

/* Contenedor interior del separador que incluye el SVG: ajuste de DEGRADADO DE SEPARADOR */
.custom-separator-inner {
  position: relative;
  z-index: 6; /* Asegura que el SVG esté por encima del fondo con gradiente */
}

/* Ajustes para el SVG, asegurando que ocupe todo el ancho del contenedor: ajuste de DEGRADADO DE SEPARADOR */
.custom-separator-inner svg {
  width: 100%;
  height: auto;
  display: block;
}

/* === BOTONES DE CONTACTO: Página de INICIO === */
.botones-contacto {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 2rem;
}

/* Permite interacción sólo sobre los botones dentro del bloque */
.bloque-que-va-detras-inidwn {
  position: relative;
  z-index: 0;
}

.bloque-que-va-detras-inidwn .image-text-button {
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

.bloque-que-va-detras-inidwn *:not(.image-text-button) {
  pointer-events: none;
}

/* Botón individual */
.image-text-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 15px 25px;
  border-radius: 15px;
  cursor: pointer;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.0);
  overflow: hidden;
  text-align: center;
}

/* Fondo translúcido del botón mediante pseudo-elemento */
.image-text-button::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(304deg, #252525, #4A4A4A);
  opacity: 0.6;
  z-index: 0;
}

/* Asegura que el texto e íconos estén por encima del fondo */
.image-text-button > * {
  position: relative;
  z-index: 1;
}

/* Hover */
.image-text-button:hover::before {
  background: linear-gradient(304deg, #1f1f1f, #b0b0b0);
  opacity: 1;
}

.image-text-button:hover {
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

/* Texto del botón */
.button-text {
  font-size: 20px;
  font-weight: bold;
  color: white;
  text-shadow: 0px 0px 10px #000 !important;
  margin-left: 10px;
  white-space: nowrap;
  opacity: 1;
}

/* Ícono SVG */
.svg-icono {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

/* SVG sin forzar estilos */
.svg-icono svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Responsive móvil */
@media (max-width: 600px) {
  .botones-contacto {
    flex-direction: column;
    align-items: center;
  }

  .image-text-button {
    width: 100%;
    max-width: 300px;
    justify-content: flex-start;       /* Alínea ícono + texto a la izquierda */
    text-align: left;                  /* Evita centrado de texto */
    padding-left: 20px;                /* Espacio desde el borde izquierdo */
  }
}

/* ===== Arreglo botones de INSTAGRAM ====== */
/* Aseguramos que el contenedor de botones tenga ancho completo */
.FeedLayout__col-footer {
  width: 100% !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important; /* 👉 centrado */
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 10px;
  align-items: center;
  text-align: center;
}

/* Botones: estilo base */
.FeedLayout__button {
  margin: 0 !important;
  float: none !important;
  transition: filter 0.2s ease, box-shadow 0.2s ease;
}

/* Hover: iluminar */
.FeedLayout__button:hover {
  filter: brightness(1.3);
}


/* ===== Estilos del acordeón DESPLEGABLES "información general" ===== */
/* Estilos generales del acordeón */
.accordion {
  width: 100%;
  max-width: 800px;
  margin: auto;
}

.accordion-item {
  border-bottom: 1px solid #ccc;
  overflow: hidden;
  transition: all 0.3s ease-out; /* Transición general */
}

/* Encabezados del acordeón */
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-family: "Inter Tight", sans-serif;
  font-size: 18px;
  font-weight: bold;
  padding: 15px;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #ddd;
  transition: background 0.3s ease, padding 0.3s ease;
  gap: 10px;
}

.accordion-header:hover {
  background: #EBEBEB;
}

/* Símbolo antes del encabezado */
.accordion-header::before {
  content: "✦";
  color: #000;
  font-size: 1.2em;
}

/* Flecha a la derecha */
.accordion-header::after {
  content: "▼";
  font-size: 16px;
  color: #333;
  margin-left: auto;
  transition: transform 0.2s ease-out;
}

/* Rotar flecha cuando el desplegable está activo */
.accordion-item.active .accordion-header::after {
  transform: rotate(180deg);
}

/* Contenido del acordeón */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  background: #fff;
  font-size: 16px;
  line-height: 1.5;
  border-left: 3px solid #e8363c;
  margin-left: 15px;
  opacity: 0;
  transform: translateY(-5px);
  transition: max-height 0.25s ease-out, padding 0.25s ease-out, opacity 0.2s ease-out, transform 0.2s ease-out;
}

/* Cuando está activo, se expande */
.accordion-item.active .accordion-content {
  max-height: 500px;
  padding: 15px;
  opacity: 1;
  transform: translateY(0);
  transition: max-height 0.3s ease-out, padding 0.3s ease-out, opacity 0.25s ease-in, transform 0.25s ease-in;
}


/* === Ajuste de encabezado "Trabajos realizados" que en el móvil bajaba de línea: pagina de inicio === */
@media (max-width: 480px) { 
  .stk-4aaee0a .stk-block-heading__text {
    font-size: 26px !important; /* Ajusta solo este encabezado */
    white-space: nowrap; /* Evita que se divida en varias líneas */
  }
}

/* === Hacer que el separador de debajo de instagram sea negro: pagina de inicio === */
.stk-245d028 .stk-separator__layer-1 path {
  fill: #000000 !important; /* Forzar el color negro */
}

/* === Ajuste de alineación para móvil en imagen principal: pagina de inicio === */
@media screen and (max-width: 768px) {
    .foto-principal {
        background-size: auto 100% !important; /* Mantiene la altura al 100% y el ancho automático */
        background-position: 65% center !important; /* Ajusta la imagen más a la derecha o a la izquierda */
        background-repeat: no-repeat !important;
    }
}	
/* === Sombras letras principales: Página de inicio === */

	/* "chiliwarehouse"*/
	.Titulo-principal-1 {
    text-shadow:  
        1px 1px 1px black,  
        2px 2px 2px black,  
        3px 3px 5px black,  
        4px 4px 5px black;
}

/* "Serigrafía"*/
.Titulo-principal-2 {
    text-shadow:  
        1px 1px 1px black,  
        2px 2px 2px black,  
        3px 3px 5px black,  
        4px 4px 5px black;
}

/* Texto descripción taller*/	
.Texto-desk-1 {
    text-shadow:  
        1px 1px 1px black,  
        2px 2px 1px black,  
        2px 2px 5px black,  
        2px 2px 5px black;
}

/* ===== Ajustes de BARRA DE MENÚ ===== */

/* Ajuste de barra de menú para que sea blanca en las demás páginas */
body:not(.home) .ct-header, 
body:not(.home) .site-header {
    background-color: #ffffff !important;
    box-shadow: 0px 10px 20px -15px black !important;
}

/* Barra de menú en la página de inicio: negro con 50% de opacidad */
.home .ct-header, 
.home .site-header {
    background-color: rgba(0, 0, 0, 0.7) !important;
}

/* Letras e iconos en gris oscuro en todas las páginas menos la de inicio */
body:not(.home) .ct-header a, 
body:not(.home) .site-header a, 
body:not(.home) .ct-header i, 
body:not(.home) .site-header i, 
body:not(.home) .ct-header svg, 
body:not(.home) .site-header svg {
    color: #666666 !important;
    fill: #666666 !important;
}

/* Página activa en negro */
body:not(.home) .ct-header .current-menu-item > a, 
body:not(.home) .site-header .current-menu-item > a {
    color: #000 !important;
}

/* Al pasar el cursor, poner en negro */
body:not(.home) .ct-header a:hover, 
body:not(.home) .site-header a:hover {
    color: #000 !important;
}

/* === Ajustes para MENÚ EN MÓVIL (offcanvas) === */

/* Estilo global al offcanvas igual al de la página de inicio */
#offcanvas {
    background-color: rgba(0, 0, 0, 0.95) !important;
    color: white !important;
}

/* Enlaces del menú lateral */
#offcanvas nav.mobile-menu a,
#offcanvas .menu-item a {
    color: white !important;
    transition: color 0.3s ease;
}

/* Hover en enlaces - como en la página de inicio */
#offcanvas nav.mobile-menu a:hover,
#offcanvas .menu-item a:hover {
    color: #d81c22 !important;
}

/* Botón dentro del menú lateral - letras igual que en la página de inicio */
#offcanvas .ct-header-cta a,
#offcanvas .ct-header-cta button {
    color: white !important;
}

/* HOVER ROJO en botones de redes sociales */
#offcanvas .ct-header-socials a:hover,
#offcanvas .ct-header-socials svg:hover {
    color: #d81c22 !important;
    fill: #d81c22 !important;
}

/* Hover rojo para iconos de buscar, carrito, cuenta y cruz del offcanvas */
.ct-header-search:hover svg,
.ct-header-cart:hover svg,
.ct-header-account:hover .ct-media-container img,
button.ct-toggle-close:hover svg {
    color: #d81c22 !important;
    fill: #d81c22 !important;
    transition: color 0.3s ease, fill 0.3s ease;
}

/* Cursor pointer en iconos interactivos */
.ct-header-search:hover,
.ct-header-cart:hover,
.ct-header-account:hover .ct-media-container,
button.ct-toggle-close:hover {
    cursor: pointer;
}

/* Zoom más notable al pasar por el logo */
.site-logo-container img {
    transition: transform 0.3s ease;
}

.site-logo-container:hover img {
    transform: scale(1.12);
}

/* Hover rojo en el icono del menú hamburguesa en móvil/tablet en TODAS las páginas */
.ct-toggle-mobile:hover svg {
    color: #d81c22 !important;
    fill: #d81c22 !important;
    transition: color 0.3s ease, fill 0.3s ease;
}


/* === Bibración DE Botón "HAZ TU PEDIDO": página de inicio === */

/* Imagen con animación de bombeo */
.mi-icono-bombeo {
    display: inline-block;
    animation: bombear 1s ease-in-out forwards;
}

/* Botón con animación de inclinación después del bombeo */
.mi-boton-bombeo {
    display: inline-block;
    animation: inclinacion-brusca 0.4s cubic-bezier(0.3, 0.5, 0.7, 1) 1;
    animation-delay: 1s;
    animation-fill-mode: both;
}

/* Definición de la animación de bombeo */
@keyframes bombear {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}

/* Definición de la animación de inclinación brusca */
@keyframes inclinacion-brusca {
    0% { transform: rotate(0deg); }
    20% { transform: rotate(-5deg); } 
    40% { transform: rotate(5deg); }
    60% { transform: rotate(-3deg); }
    100% { transform: rotate(0deg); }
}

/* === HOVER del Botón "HAZ TU PEDIDO": página de inicio === */
.mi-boton-bombeo .stk-button {
  position: relative !important;
  z-index: 1;
  border-radius: 5px !important;
  overflow: visible !important;
  transition: box-shadow 0.3s ease !important;
}

/* Hover: sombra interior muy intensa hacia los bordes */
.mi-boton-bombeo .stk-button:hover {
  box-shadow:
    inset 0 0 5px rgba(0,0,0,0.7),
    inset 0 0 10px rgba(0,0,0,0.8),
    inset 0 0 15px rgba(0,0,0,0.9),
    inset 0 0 20px rgba(0,0,0,1);
}



/* === CSS Flechita Scroll ===*/
#scrollButton {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.8s ease-in-out, transform 0.3s ease-in-out;
    z-index: 10000;
    opacity: 0; /* Oculto inicialmente */
    visibility: hidden; /* Evita parpadeo */
    pointer-events: none; /* No clickeable hasta mostrarse */
}

/* Aparece gradualmente */
#scrollButton.show {
    visibility: visible; /* Se hace visible */
    animation: fadeIn 1s ease-in-out forwards;
    pointer-events: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.5; /* Mantiene la opacidad base */
    }
}

/* Efecto hover */
#scrollButton:hover {
    opacity: 1 !important;
    transform: translateX(-50%) scale(1.1);
}

#scrollButton img {
    width: 40px;
    height: auto;
    transition: transform 0.3s ease-in-out;
}

/* Girar la flecha al llegar abajo */
#scrollButton.rotate img {
    transform: rotate(180deg);
}

/* AJUSTAR la DISTANCIA de ALTURA a la que se quedan los ENCABEZADOS */ 
/* Se mantiene para enlaces directos (con #seccionX), aunque JS gestiona el desplazamiento dinámico */

/* Ajuste general para escritorio */
#seccion1, #seccion2, #seccion3 {
    scroll-margin-top: 90px; /* Ajusta según la altura de tu encabezado fijo */
}

/* Ajuste para móviles (pantallas menores a 768px) */
@media screen and (max-width: 768px) {
    #seccion1, #seccion2, #seccion3 {
        scroll-margin-top: 60px; /* Menos margen para móviles */
    }
}

/* Ajuste para pantallas muy pequeñas (menores a 480px) */
@media screen and (max-width: 480px) {
    #seccion1, #seccion2, #seccion3 {
        scroll-margin-top: 40px; /* Aún menos en pantallas pequeñas */
    }
}


/* === FOOTER === */
/* Estilos personalizados del Footer */
.site-footer {
    background: #ffffff;
    color: #333;
    padding: 40px 20px;
    font-size: 14px;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Cambiar la fuente de los enlaces del footer */
.site-footer a {
    font-family: 'Montserrat-Local', sans-serif;
    font-weight: 400;
    text-decoration: none;
}

/* Contenedor de las secciones del footer */
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    width: 100%;
    margin: 0 auto;
}

/* Secciones individuales del footer */
.footer-section {
    overflow: hidden;
    transition: all 0.3s ease-out;
    border: none;
}

/* Títulos de los desplegables */
.footer-section-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 16px;
    font-weight: bold;
    padding: 15px;
    cursor: pointer;
    background: #ffffff;
    transition: background 0.3s ease, padding 0.3s ease;
    gap: 10px;
    border: none;
    border-radius: 10px;
}

.footer-section-title:hover {
    background: #EBEBEB;
}

/* Flecha a la derecha */
.footer-section-title::after {
    content: "▼";
    font-size: 16px;
    color: #333;
    margin-left: auto;
    transition: transform 0.3s ease;
}

/* Rotar flecha cuando el desplegable está activo */
.footer-section.open .footer-section-title::after {
    transform: rotate(180deg);
}

/* Contenido del desplegable */
.footer-section-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    background: #fff;
    font-size: 16px;
    line-height: 1.5;
    border-left: 3px solid #000;
    margin-left: 15px;
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
    transition: max-height 0.4s ease-out, opacity 0.3s ease, transform 0.3s ease;
}

/* Cuando está activo, se expande */
.footer-section.open .footer-section-content {
    max-height: 500px;
    padding: 15px;
    opacity: 1;
    transform: scaleY(1);
}

/* Enlaces dentro del desplegable */
.footer-section-content a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section-content a:hover {
    color: #555;
}

/* Nueva fila con logo centrado */
.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px 20px;
    border-top: 1px solid #ddd;
    width: 100%;
    margin: 30px auto 0;
}

/* Logo centrado */
.footer-logo {
    display: flex;
    justify-content: center;
    padding: 0;
}

.footer-logo img {
    width: 150px;
}

/* Contenedor de redes sociales */
.footer-socials {
    display: flex;
    justify-content: center; /* Cambié esta parte */
    gap: 20px;
    align-items: center;
    margin-top: 20px; /* Alineación ajustada */
}

.footer-socials svg {
    width: 30px;
    height: 30px;
    fill: #333;
    cursor: pointer;
    transition: fill 0.3s ease;
}

.footer-socials svg:hover {
    fill: #555;
}

/* Sombra en la parte superior del footer */
.site-footer {
    position: relative;
    background: #ffffff;
    box-shadow: 0px 10px 20px 3px black !important;
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-logo {
        justify-content: center;
        padding-left: 0;
        margin-bottom: 20px;
    }

    /* Ajustes para las redes sociales en dispositivos móviles */
    .footer-socials {
        justify-content: center;
        position: relative; /* Cambié la propiedad de posición */
        margin-top: 10px;
    }

    .footer-copyright {
        margin-top: 10px;
        font-size: 12px;
        text-align: center;
        width: 100%;
    }
}

/* Añadir estilo para alinear el copyright al fondo */
.footer-copyright {
    text-align: center;
    font-size: 14px;
    margin-top: 20px;
}

/* ===== Estilo de FORMULARIO DE CONTACTO ===== */
:root {

  --theme-font-size: 18px;
  --theme-font-weight: 400;
  --confirmation-font-size: 22px; /* Tamaño más grande para el mensaje de confirmación */
}

/* Estilo general de campos */
.wpforms-form {
  font-family: var(--theme-font-family);
  font-size: var(--theme-font-size);
  font-weight: var(--theme-font-weight);
  background: none; /* Sin fondo blanco */
  padding: 2rem; /* Padding original para escritorio */
  border-radius: 12px;
  box-shadow: none; /* Sin sombra */
}

.wpforms-form .wpforms-field {
  margin-bottom: 0.25rem; /* Espacio más reducido */
}

/* Ajuste entre etiquetas y campos */
.wpforms-form .wpforms-field-label {
  font-weight: bold;
  margin-bottom: 0.1rem;
  display: block;
  color: #333;
  font-family: var(--theme-font-family);
  font-size: var(--theme-font-size);
  font-weight: 700; /* para bold */
}

.wpforms-form legend.wpforms-field-label {
  font-size: var(--theme-font-size) !important;
  font-weight: 700 !important;
  color: #333 !important;
  font-family: var(--theme-font-family) !important;
  line-height: 1 !important;
  margin-bottom: 0.1rem;
}

/* Campos */
.wpforms-form input[type="text"],
.wpforms-form input[type="email"],
.wpforms-form input[type="tel"],
.wpforms-form textarea,
.wpforms-form select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: var(--theme-font-size);
  font-family: var(--theme-font-family);
  font-weight: var(--theme-font-weight);
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.wpforms-form input:focus,
.wpforms-form textarea:focus {
  border-color: #0073e6;
  outline: none;
}

/* Estilo uniforme para asteriscos (incluye legend) */
.wpforms-required-label {
  color: red !important;
  font-weight: 700 !important; /* bold */
  font-size: var(--theme-font-size) !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  display: inline-block;
  margin-left: 0.2rem;
  font-family: var(--theme-font-family) !important;
  /* Evitar reducción de tamaño en legend */
  transform: scale(1);
  position: relative;
  top: 0;
}

/* Botón */
.wpforms-form .wpforms-submit {
  background-color: #e8363c;
  color: white;
  padding: 0.85rem 1.3rem;
  border: none;
  border-radius: 8px;
  font-size: var(--theme-font-size);
  font-family: var(--theme-font-family);
  font-weight: var(--theme-font-weight);
  cursor: pointer;
  transition: background-color 0.3s;
}

.wpforms-form .wpforms-submit:hover {
  background-color: #005bb5;
}

/* Radio buttons en línea */
.wpforms-form .wpforms-field-radio li {
  display: inline-block;
  margin-right: 1rem;
}

.wpforms-form .wpforms-field-radio input {
  margin-right: 0.5rem;
}

/* Mensaje de confirmación */
.wpforms-confirmation-container {
  font-weight: 700;  /* Negrita */
  color: #007800;     /* Verde */
  font-size: var(--confirmation-font-size);
  margin-top: 1rem;
}

/* Texto que desaparece al enviar el formulario */
.hidden {
  display: none !important;
}

/* Ajustes para tablet y móvil: menos padding lateral */
@media (max-width: 768px) {
  .wpforms-form {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .wpforms-form {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}


/* ===== Fondo general de toda la web ===== */
/* Ajustar color de todo el fondo de la web para que no sea BLANCO puro */
body {
  background-color: #FBFBFB; /* Gris muy claro */
}

/* ====== FUENTES DE TODA LA WEB ===== */
:root {
  /* Fuente base (para párrafos, textos normales, menús, etc.) */
  --theme-font-family: 'Jost-Local', Sans-Serif;
  --theme-font-size: 18px;
  --theme-font-weight: 400;

  /* Fuente para encabezados (H1–H6) */
  --heading-font-family: 'Poppins-Local', Sans-Serif;
  --heading-font-size: 35px;
  --heading-font-weight: 700;
}

/* == TEXTO BASE (BODY) (para párrafos, textos normales, menús, etc.) == */
body {
  font-family: var(--theme-font-family);
  font-size: var(--theme-font-size);
  font-weight: var(--theme-font-weight);
  line-height: 1.5;
  color: #333; /* Color general del texto */
}

/* == ENCABEZADOS (H1–H6) == */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font-family) !important;
  font-size: var(--heading-font-size) !important;
  font-weight: var(--heading-font-weight) !important;
  line-height: 1.2 !important; /* Espaciado vertical entre líneas */
  margin: 0 0 1rem 0 !important; /* Separación inferior estándar */
}

