/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/





/* Heading con gradiente violeta → coral */
.gradient-text {
  display: inline-block; /* importante para que el gradiente recorra el texto */
  background: linear-gradient(110deg, #7E43F6 0%, #B657E9 45%, #FF7568 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important; /* fuerza a que ningún color sólido lo tape */
}


.shape-adjust {
	margin-bottom: -20px;
}




.mask-custom {
  -webkit-mask-image: url("https://chilotascontracorriente.cl/wp-content/uploads/2025/11/imgmask-1.svg");
  mask-image: url("https://chilotascontracorriente.cl/wp-content/uploads/2025/11/imgmask-1.svg");

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;

  -webkit-mask-position: center;
  mask-position: center;

  -webkit-mask-size: contain;
  mask-size: contain;

  display: block;
  width: 100%;
  object-fit: cover;

}



/* ==================================================
   CARD CHILOTAS – ZOOM + GRADIENTE SUAVE + OVERLAY
   Clase: .card-emprendimiento
   ================================================== */

.card-emprendimiento {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    transition: box-shadow .3s ease;
}

/* ============================
   Fondo (imagen dinámica)
   ============================ */
.card-emprendimiento::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--inline-bg-image);
    background-size: cover;
    background-position: center;
    transition: transform .55s ease-out;
    z-index: 0;
    transform: scale(1);
}

/* ============================
   Gradiente base + overlay suave
   (encima de la imagen, debajo del texto)
   ============================ */
.card-emprendimiento::after {
    content: "";
    position: absolute;
    inset: 0;

    /* GRADIENTE SUAVE */
    background:
        linear-gradient(
            to top,
            rgba(0,0,0,0.55) 0%,
            rgba(0,0,0,0.40) 25%,
            rgba(0,0,0,0.20) 55%,
            rgba(0,0,0,0.00) 100%
        ),
        rgba(0,0,0,0.08); /* Overlay sutil */

    z-index: 1;
    pointer-events: none;
    transition: background .35s ease;
}

/* Hover del gradiente (ligeramente más visible) */
.card-emprendimiento:hover::after {
    background:
        linear-gradient(
            to top,
            rgba(0,0,0,0.60) 0%,
            rgba(0,0,0,0.45) 25%,
            rgba(0,0,0,0.22) 55%,
            rgba(0,0,0,0.00) 100%
        ),
        rgba(0,0,0,0.12);
}

/* ============================
   Texto siempre por encima
   ============================ */
.card-emprendimiento > * {
    position: relative;
    z-index: 2;
}



/* ============================
   Hover: zoom solo en la imagen
   ============================ */
.card-emprendimiento:hover::before {
    transform: scale(1.10);
}




.shadow-violeta {
    filter:
        drop-shadow(10px 6px 2px rgba(134, 92, 255, 0.30))   /* pegada, definida, fina */
        drop-shadow(16px 12px 4px rgba(134, 92, 255, 0.10)); /* profundidad mínima */
}



/* SOLO menú desktop scrolleado — NO afecta menú móvil */
.home .navigation.navigation--scrolled .gb-navigation:not(.gb-navigation--mobile) .gb-menu-link {
    color: #023e73 !important;
}





.blog-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.3rem 1.1rem;
  font-weight: 800; 
  font-size: 0.9rem;
  line-height: 1.2;
  white-space: nowrap;
	margin-bottom: 1rem;
}

.blog-pill--lg {
  padding: 0.5rem 1.6rem;
  font-size: 1rem;
}

.blog-pill--sm {
  padding: 0.2rem 0.9rem;
  font-size: 0.8rem;
}




/* ——— UNDERLINE GRADIENT ——— */
.nav-gradient .gb-menu-link {
    position: relative;
}

/* Línea centrada y más corta */
.nav-gradient .gb-menu-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0px; /* ajusta separación */
    width: 70%; /* tamaño de la línea (cámbialo libremente 30–60%) */
    height: 4px;
    background: linear-gradient(90deg, #834DF5, #FF6B5E);
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform .3s ease;
}

/* Hover */
.nav-gradient .gb-menu-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Activo */
.nav-gradient .current-menu-item > .gb-menu-link::after,
.nav-gradient .current_page_item > .gb-menu-link::after {
    transform: translateX(-50%) scaleX(1);
}


/* ============================================
   GRADIENTE PARA ICONOS CON CLASE .gradient-icon
   ============================================ */

.gradient-icon svg path {
    fill: url(#gb-gradient) !important;
    stroke: url(#gb-gradient) !important;
}

/* (Opcional) asegura que GB no sobrescriba colores */
.gradient-icon svg {
    fill: transparent !important;
    stroke: transparent !important;
}




/* LISTA: sin bullets, sin padding extra */
.empr-social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;              /* espacio entre pills */
}


.empr-social-item {
  margin: 0;
}

/* ENLACE tipo pill */
.empr-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: #2E2E2E;          /* color que definiste */
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
}

.empr-social-link:hover {
  background: rgba(255, 255, 255, 0.9);
	color: #2E2E2E; 
}

.empr-social-icon {
  font-size: 1rem;
  line-height: 1;
}


.pills-small {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    /* sin column-gap aquí */
}




.boton-primario {
  /* Gradient base (ajusta los colores si quieres) */
  background-image: linear-gradient(120deg, #6c63ff, #ff4b7d, #ffb347);
  background-size: 250% 250%;
  background-position: 0% 50%;

  /* Suavidad en el hover */
  transition:
    background-position 0.5s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

/* Movimiento del degradado al pasar el mouse */
.boton-primario:hover,
.boton-primario:focus-visible {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}


/* Botón primario: que NO lo afecte el color global de enlaces */
a.boton-primario{
  color: #fff;
  text-decoration: none;
}

a.boton-primario:hover,
a.boton-primario:focus-visible{
  color: #fff; /* o el color que quieras en hover */
}



/* ================================
   Slider de oficios (cards)
   ================================ */

/* CARD / SLIDE: imagen de fondo + parallax suave */
.oficio-slide {
 
  overflow: hidden;
  

  /* Fondo desde GenerateBlocks, pero afinamos el comportamiento */
 
  background-position: center 52%;
  transition: background-position 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: background-position;
}

/* GRADIENT inferior que "sube" al hacer hover */
.oficio-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.80) 0%,
    rgba(0, 0, 0, 0.65) 20%,
    rgba(0, 0, 0, 0.35) 45%,
    rgba(0, 0, 0, 0.05) 70%,
    rgba(0, 0, 0, 0.00) 100%
  );
  transform: translateY(25%);
  transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

/* CONTENEDOR DEL TEXTO (título + descripción) */
.oficio-content {
 
  z-index: 1;
  text-align: center;
  padding: 1.5rem 2rem;
  width: 100%;

  /* Parte desde abajo y luego sube */
  transform: translateY(35%);
  transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}



/* Resto del contenido (descripción) animado */
.oficio-content > *:not(.oficio-title) {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.7s cubic-bezier(0.19, 1, 0.22, 1),
    transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

/* ================================
   HOVER SOLO EN DISPOSITIVOS CON HOVER
   ================================ */
@media (hover: hover) {
  /* Parallax del fondo */
  .oficio-slide:hover {
    background-position: center 45%;
  }

  /* El gradient sube */
  .oficio-slide:hover::after {
    transform: translateY(0);
  }

  /* El contenido sube (queda centrado) */
  .oficio-slide:hover .oficio-content {
    transform: translateY(0);
  }

  /* La descripción aparece con delay suave */
  .oficio-slide:hover .oficio-content > *:not(.oficio-title) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(700ms / 8);
  }
}

/* ================================
   MOBILE / TOUCH: sin hover
   ================================ */
@media (max-width: 768px) {
  .oficio-slide::after {
    transform: translateY(0);
  }

  .oficio-content {
    transform: translateY(0);
  }

  .oficio-content > *:not(.oficio-title) {
    opacity: 1;
    transform: none;
  }
}


/* Hover suave: levantar card + glow violeta */
.empr-card {
  transition:
    transform 0.28s cubic-bezier(0.19, 1, 0.22, 1),
    box-shadow 0.28s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform, box-shadow;
}

@media (hover: hover) {
  .empr-card:hover {
    transform: translateY(-8px);
    box-shadow:
      0 16px 35px rgba(0, 0, 0, 0.28),
      0 0 0 3px rgba(134, 92, 255, 0.5); /* glow violeta alrededor */
  }
}

/* Opcional: en pantallas táctiles no hacemos “saltito” */
@media (hover: none) {
  .empr-card {
    transform: none;
    box-shadow: none; /* si no quieres sombra en mobile */
  }
}

/* Breadcrumb en blanco sin afectar links globales */
.inside-article .bread-link a,
.inside-article .bread-link a:visited {
  color: #fff;
	
}

.inside-article .bread-link a:hover,
.inside-article .bread-link a:focus {
  color: #fff;
  opacity: .9;
	text-decoration: underline;
	
}



.empr-video-wrap{
  position:relative;
  overflow:hidden;
  border-radius:16px;
}

.empr-video{
  width:100%;
  height:auto;
  display:block;
}

.empr-video-btn{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  background:transparent;
  border:0;
  cursor:pointer;
}

.empr-video-icon{
  width:56px;
  height:56px;
  border-radius:999px;
  backdrop-filter: blur(6px);
  background: rgba(0,0,0,.35);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  position:relative;
  opacity:0;
  transform: scale(.96);
  transition: opacity .2s ease, transform .2s ease;
}

/* Mostrar botón en hover/focus */
.empr-video-wrap:hover .empr-video-icon,
.empr-video-btn:focus-visible .empr-video-icon{
  opacity:1;
  transform: scale(1);
}

/* Icono PLAY por defecto (triángulo) */
.empr-video-icon::before{
  content:"";
  position:absolute;
  left:22px;
  top:16px;
  width:0;height:0;
  border-left:16px solid rgba(255,255,255,.92);
  border-top:12px solid transparent;
  border-bottom:12px solid transparent;
}

/* Cuando está pausado, muestra PLAY (más evidente) */
.empr-video-wrap.is-paused .empr-video-icon{
  opacity:1;
  transform: scale(1);
}



/* =========================
   COMMENTS (Single Post)
   ========================= */

.comments-area {
  max-width: 900px;
  margin: 3rem auto 0;
  padding: 0 1rem;
}

.comments-title {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  line-height: 1.25;
  margin: 0 0 1.25rem;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment-list > li.comment {
  margin: 0 0 1rem;
}

.comment-body {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 1rem 1rem;
}

.comment-meta {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.comment-meta .avatar {
  border-radius: 999px;
  width: 44px;
  height: 44px;
}

.comment-author .fn,
.comment-author .fn a {
  font-weight: 700;
  text-decoration: none;
}

.comment-metadata {
  font-size: 0.9rem;
  opacity: 0.8;
}

.comment-metadata a {
  text-decoration: none;
}

.comment-content p {
  margin: 0.25rem 0 0.75rem;
}

.comment-content .reply {
  display: inline-block;
}

.comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .65rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.comment-reply-link:hover {
  transform: translateY(-1px);
}

/* Form */
.comment-respond {
  margin-top: 1.25rem;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 1rem;
}

.comment-reply-title {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}

.comment-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  padding: 0.75rem;
}

.comment-form .submit {
  border-radius: 999px;
  padding: .6rem 1rem;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}


/* =========================================================
   TOP BAR (Viendo... + Buscador + Resultados/Ordenar)
   Search y Ordenar alineados, contador arriba como referencia
========================================================= */

:root{
  --filtro-h: 40px;
  --borde-filtro: #111;
}

/* --- Layout general --- */
.filtros-topbar{
  display: flex;
  align-items: baseline;           /* <- importante */
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0;
}

.filtros-left{
  min-width: 0;
}

/* --- Columna derecha: buscamos alinear por ABAJO (search con select) --- */
.filtros-right{
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: nowrap;

  align-items: flex-end;             /* <- CLAVE: alinea el search con el select */
}

/* stack: contador arriba, select abajo */
.filtro-orderstack{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

/* contador arriba (no lo bajamos, lo dejamos arriba como referencia) */
.filtro-count{
  font-size: 12px;
  color: #6b7280;
  line-height: 1;
  white-space: nowrap;
  margin: 0 !important;
}

/* =========================================================
   FIX CLAVE: el Search nativo trae width inline (ej 432px)
========================================================= */
.filtros-right .wp-block-search__inside-wrapper{
  width: auto !important;
  max-width: 100% !important;
}

/* =========================================================
   SEARCH WP -> 1 SOLO PILL con lupa a la IZQUIERDA
========================================================= */
.filtros-right .wp-block-search{
  margin: 0;
}

.filtros-right .wp-block-search__inside-wrapper{
  position: relative;
  height: var(--filtro-h);
  display: flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--borde-filtro);
  overflow: hidden;
  background: #fff;
}

.filtros-right .wp-block-search__input{
  height: var(--filtro-h);
  line-height: var(--filtro-h);
  width: 260px;
  max-width: 100%;
  border: 0 !important;
  padding: 0 16px 0 44px;
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
  background: transparent;
}

.filtros-right .wp-block-search__button{
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filtros-right .wp-block-search__button svg{
  width: 18px;
  height: 18px;
}

/* =========================================================
   ORDENAR (pill) - debe alinear con el search
========================================================= */
.filtros-right .ordenar-form{
  margin: 0;
}

.filtros-right .ordenar-form select{
  height: var(--filtro-h);
  line-height: var(--filtro-h);
  border-radius: 999px;
  border: 1px solid var(--borde-filtro);
  padding: 0 14px;
  font-size: 14px;
  background: #fff;
  box-sizing: border-box;
  max-width: 100%;
}

/* =========================================================
   RESPONSIVE (mobile)
