/*
Theme Name: Frost
Theme URI: https://frostwp.com/
Author: WP Engine
Author URI: https://wpengine.com/
Description: With its clean, minimal design and powerful feature set, Frost enables agencies to build stylish and sophisticated WordPress websites. Frost is a masterpiece of design and functionality. It features a range of valuable patterns, including hero and portfolio sections, prominent call-to-action buttons, and customer testimonials. Whether you’re building a website for your business, personal brand, or creative project, Frost is perfect for anyone looking to launch quickly and efficiently.
Tags: block-patterns, block-styles, custom-colors, custom-logo, custom-menu, editor-style, full-site-editing, one-column, template-editing, threaded-comments, translation-ready, wide-blocks
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.2
Version: 1.0.19
License: GNU General Public License v3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: frost
*/


/* Defaults
---------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

a,
button,
input:focus,
input[type="button"],
input[type="submit"],
textarea:focus,
.wp-element-button {
	transition: all 0.2s ease-in-out;
}

a,
a:focus,
a:hover,
a:not(.wp-element-button) {
	text-decoration-thickness: 1px;
}

b,
strong,
th {
	font-weight: var(--wp--custom--font-weight--medium);
	font-weight: 700;
}

mark {
	background: linear-gradient(90deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--primary) 100%);
	background-position: 0 85%;
	background-repeat: repeat-x;
	background-size: 100% 15%;
}

/* -- Forms -- */

input,
select,
textarea {
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--contrast);
	border-radius: 0;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--primary);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: var(--wp--custom--font-weight--light);
	line-height: var(--wp--custom--line-height--body);
	padding: 10px 20px;
	width: 100%;
}

input:focus,
textarea:focus {
	background-color: #efefef;
	outline: none;
}

input[type="checkbox"],
input[type="image"],
input[type="radio"] {
	width: auto;
}

input[type="button"],
input[type="email"],
input[type="search"],
input[type="submit"],
input[type="text"],
textarea {
	-webkit-appearance: none;
}

::placeholder {
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	opacity: 0.5;
}
article.wp-block-group,
.is-layout-constrained > .alignwide{
    max-width: 1440px;
    margin: 0 auto !important;	
}
@media only screen and (max-width: 1440px) {
  article.wp-block-group,
  .is-layout-constrained > .alignwide{
      margin: 0 32px !important;	
  }
}
@media only screen and (max-width: 640px) {
  article.wp-block-group,
  .is-layout-constrained > .alignwide{
      margin: 0 16px !important;	
  }
}
h1.wp-block-post-title,
h1.curso-title{
    max-width: none;
    text-align: left;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
}
/* -- List -- */
ul.no-bullets {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}
.hover-underline-list a {
  text-decoration: none;
  transition: text-decoration 0.2s ease-in-out;
}

.hover-underline-list a:hover {
  text-decoration: underline;
}
/* -- Heading -- */
.wp-block-heading{
	font-weight: 700;
}
.has-global-padding{
  padding-left: 0;
  padding-right: 0;
}
:root :where(.is-layout-constrained) > *{
  margin-block-start:0;
    margin: 0;
    max-width: none;  
}
.has-global-padding > .alignfull{
  margin-right: 0;
  margin-left: 0;
}
.display--none{
  display:none !important;
}
/* Blocks
---------------------------------------- */
.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){
	max-width: var(--wp--style--global--wide-size);
}
/* -- Code -- */

*:not(.wp-block-code) > code {
	background-color: var(--wp--preset--color--neutral);
	font-size: var(--wp--preset--font-size--small);
	padding: 5px 8px;
}

/* -- Navigation -- */

.wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--custom--spacing--gap);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: var(--wp--custom--spacing--gap);
}

.wp-block-navigation__responsive-container-close,
.wp-block-navigation__responsive-container-open {
	border: 1px solid currentColor;
	padding: 2px;
}

.has-background .wp-block-navigation__responsive-container-open:focus,
.has-background .wp-block-navigation__responsive-container-open:hover {
	color: var(--wp--preset--color--base);
}

/* -- Navigation Submenu -- */

.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
	background-color: var(--wp--preset--color--contrast);
	border: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	padding: 10px;
}

.wp-block-navigation :where(.wp-block-navigation__submenu-container) a {
	padding: 2px 10px;
}

/* Utility
---------------------------------------- */

/* -- Box Shadow -- */

.is-style-shadow-light {
	box-shadow: var(--wp--preset--shadow--light);
}

.is-style-shadow-solid {
	box-shadow: var(--wp--preset--shadow--solid);
}

/* Media Queries
---------------------------------------- */

@media only screen and (max-width: 600px) {

	/* -- Utility -- */

	.is-style-hidden-mobile {
		display: none !important;
	}

}

@media only screen and (max-width: 782px) {

	/* -- Columns -- */

	.is-style-columns-reverse {
		flex-direction: column-reverse;
	}

}
/* Components
---------------------------------------- */
/* -- Buttons -- */
.is-style-accent{
	background-color: var(--wp--preset--color--accent);
  	color: #fff;
  	border: none;
  	font-weight: bold;
}
/* -- Hero -- */
.hero-360gms .hero-card {
  max-width: 600px;
  margin: 0;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2.5rem;
  border-radius: 12px;
}
.hero-360gms .wp-block-cover__image-background {
  object-fit: cover;
}
.hero-360gms .wp-block-heading {
  font-weight: 900;
}
@media (max-width: 768px) {
  .hero-360gms .wp-block-cover__image-background {
    content: url('assets/images/hero-woman-mb-160725-mj.jpg');
  }
}

/* -- Card Cursos -- */
.card-curso-360gms{
	border-radius: 16px;
	background: #FAFAFA;
	box-shadow: 0 4px 4px 0 rgba(51, 51, 51, 0.20);	
	overflow: hidden;
}
.card-curso-360gms .wp-block-image,
.card-curso-360gms .wp-block-buttons{
	margin:0;
}
.card-curso-360gms .wp-block-image img{
	width: 100%;
}
.card-curso-360gms .wp-block-button{
	position: relative;
    display: block;
    width: 100%;
}
.card-curso-360gms .wp-block-button .wp-block-button__link{
	background-color: transparent;
	color: var(--wp--preset--color--neutral);
    display: flex;
    justify-content: space-between;
    width: 100%;	
    font-size: 18px;
    font-weight: 600;
    text-align: left;
}
.card-curso-360gms .wp-block-button .wp-block-button__link:after{
	right: 0;
	width: 16px;
	height: 24px;
	background-image: url('assets/images/icon-arrow.png');
	background-size: contain;
	background-repeat: no-repeat;
	margin-top: 4px;
	content: '';
	display: block;
}
/* Search cursos */
.post-type-archive .tribe-common--breakpoint-medium.tribe-events .tribe-events-header--has-event-search .tribe-events-c-events-bar{
	border-radius: 100px;
    overflow: hidden;
    width: 80%;
    margin: 0 auto 32px auto;
    padding-right: 16px;
}
.tribe-common--breakpoint-medium.tribe-events .tribe-common-c-btn.tribe-events-c-search__button{
	border-radius: 48px;
	background-color: var(--wp--preset--color--primary);
}
.tribe-common--breakpoint-full.tribe-events .tribe-events-c-top-bar__datepicker-desktop{
	color: var(--wp--preset--color--primary);
}
/* Filter cursos */
.list-filtros-360{
	display: flex;
}

/* === Últimas Entradas Custom === */
.custom-latest-posts {
  	display: flex;
  	flex-wrap: wrap;
  	gap: 24px;
	margin-bottom: 48px;
	max-width: var(--wp--style--global--wide-size);
}

.custom-card {
 width: calc(33.333% - 16px);
  position: relative;
  height: 620px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  color: #fff;
  text-decoration: none; /* quitar subrayado del link */
}
/* Capa de fondo animable */
.custom-card .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 400ms ease; /* suavidad del zoom */
  will-change: transform;
  z-index: 0;
}
/* Hover / Focus: zoom 120% */
.custom-card:hover .bg,
.custom-card:focus .bg,
.custom-card:focus-visible .bg {
  transform: scale(1.2);
}
.custom-card:after{
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 266px;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, #000 100%);

}
.date-box {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 70px;
  height: 70px;
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}
.date-box .day {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
}
.date-box .month {
  font-size: 20px;
  font-weight: normal;
  text-transform: uppercase;
  line-height: 1;
}
@media (max-width: 768px) {
  .grupo-posts-home > div{
    padding: 0;
  }
  .grupo-posts-home > div .card-content p{
    display: none;
  }
}

/* Caja de fecha y contenido por encima del fondo */
.date-box,
.card-content {
  z-index: 1;
}
.card-content {
  /* background: rgba(0,0,0,0.4); */
  padding: 16px;
  border-radius: 8px;
}
.card-title {
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 8px;
}
.card-excerpt {
  font-size: 16px;
  margin: 0;
}

/* Mobile - carrusel */
@media (max-width: 768px) {
  .custom-latest-posts {
	display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
	scroll-padding-left: 16px; /* snap empieza después del padding */
  	padding-left: 16px;
  }
  .custom-card {
 flex: 0 0 80%;        /* ocupa 80% para ver 1/5 de la siguiente */
    height: 500px;
    scroll-snap-align: start;
  }

  .date-box {
    width: 48px;
    height: 48px;
  }
  .date-box .day {
    font-size: 22px;
  }
  .date-box .month {
    font-size: 16px;
  }

  .wp-block-post-content.has-global-padding{
	padding-left: var(--wp--style--root--padding-left);
	padding-right: var(--wp--style--root--padding-right);
	padding-left: 0;
	padding-right: 0;
	}
	/* .custom-latest-posts{
		margin-left: 16px !important;
	} */
}
/* Accesibilidad: evita animaciones si el usuario las reduce */
@media (prefers-reduced-motion: reduce) {
  .custom-card .bg {
    transition: none;
  }
}

/* -- Footer -- */
.site-footer .dashicons{
  font-size: 18px;
  line-height: 1;
  vertical-align: middle;
  color: currentColor;	
}
.site-footer p.hover-underline-list{
	margin: 0;
}
.site-footer #connect{
	margin-bottom: 40px;
}
/* -- Cursos -- */
.tribe-block .tribe-common--breakpoint-medium.tribe-events .tribe-events-l-container{
    padding-top: 0;
}
.tribe-block .tribe-common--breakpoint-medium.tribe-events .tribe-events-l-container h1{
	margin-bottom: 8px;
}
.tribe-common--breakpoint-medium.tribe-events .tribe-events-calendar-list__event-row:last-child{
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 32px;
  margin-bottom: 0;
}
.tribe-common .tribe-common-g-row{
  align-items: center;
}
.tribe-block .tribe-events .tribe-events-calendar-list__month-separator:after{
      background-color: #eaeaea;
}
@media (min-width: 1024px) {
	.tribe-common div.filtros-cursos{
    	width: 20%;
		margin-right: 2%;
	}
	.tribe-common .filtros-cursos h3{
		font-size: 18px;
		font-weight: 400;
		margin-top: 24px;
	}
	.tribe-events .cursos-lista .tribe-events-calendar-list-nav{
		border-top:0;
	}
	.filtros-cursos form label strong{
		font-size: 16px;
		font-weight: 700;
	}
	.filtros-cursos form select{
    	border: 0;
    	border-bottom: 1px solid #D5D5D5;		
	}
}


/* -- Metodología -- */
/* Sección Metodología */
.comp-metodologia{
  background: #FAFAFA;
}
.comp-metodologia .metodologia-formacion-section {
  padding: 60px 20px 0 20px;
  text-align: center;
}

.comp-metodologia .grid-4-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
  max-width: 1280px;
}

.comp-metodologia .grid-4-images img {
  width: 100%;
  border-radius: 10px;
}
.comp-metodologia .grid-4-images .wp-block-image.grid-img{
    margin-top: 0;
}
/* Responsive imágenes: 2x2 en mobile */
@media (max-width: 768px) {
  .comp-metodologia .grid-4-images {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* Sección Niveles Apalancados */
.comp-metodologia .niveles-apalancados-section {
  padding: 60px 20px;
  background: #f9f9f9;
}
.comp-metodologia .icon-title-desc {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 1200px;
  margin: auto;
}
.comp-metodologia .icon-title-desc img {
  width: 132px;
  height: auto;
}
.comp-metodologia .tools-list {
  list-style-type: disc;
  padding-left: 20px;
}
.comp-metodologia .txt-niveles{
  margin-block-start: 0;
}
.comp-metodologia .txt-niveles h3{
  font-size: 20px;
  font-weight: 400;
}
.comp-metodologia .txt-niveles p{
  margin-block-start: 0;
  font-size: 16px;
}



/* ===== Sección General ===== */
.texto-carrusel-content{
  background-color: #EAF0F9;
  width: 100%;
  margin-block-start:0;
  padding: 0;
  margin: 0;
  max-width: 100%;
}
.texto-carrusel-section {
  padding: 40px 0;
  display: flex;
  max-width: 1280px;
  margin: 0 auto;
  align-items: center;
}

/* Texto 3col Desktop, 12col Mobile */
.texto-3col {
  /* display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px; */
  width: 33%;
}
@media (max-width: 768px) {
  .texto-3col {
    grid-template-columns: 1fr;
    text-align: center;
    width: 100%;
    margin-bottom: 16px;
  }
  .texto-carrusel-section{
    flex-wrap: wrap;
  }
  .texto-carrusel-section .cards-swiper{
    padding-right: 0;
    padding-left: 16px;
  }
}

/* Swiper Carrusel */
.cards-swiper {
  width: 100%;
  padding-bottom: 40px;
}

.cards-swiper .swiper-slide {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 20px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cards-swiper .cta{
  text-decoration: none;
}
.cards-swiper .cta img {
  width: 24px;
  transition: transform 0.3s ease;
}
.cards-swiper .cta:hover img {
  transform: translateX(5px);
}

/* Flechas y dots */
.swiper-button-prev,
.swiper-button-next {
  color: #000;
}
.texto-carrusel-content .swiper-button-next,
.texto-carrusel-content .swiper-button-prev{
    display: block;
    background-color: rgb(211 225 243 / 80%);
    width: 40px;
    height: 40px;  
    padding: 4px 8px 8px 13px;
    /* bottom: 0;
    top: auto;     */
}
.texto-carrusel-content .swiper-button-next:after,
.texto-carrusel-content .swiper-button-prev:after{
    font-size: 22px;
}
.texto-carrusel-content .swiper-button-next{
 right:0;
}
.texto-carrusel-content .swiper-button-prev{
  left:0;
}
.texto-carrusel-content .swiper-pagination {
  display: none;
}
.texto-carrusel-content .swiper-button-next.swiper-button-disabled,
.texto-carrusel-content .swiper-button-prev.swiper-button-disabled{
      opacity: 0;
}
.texto-carrusel-section .cards-swiper:after{ 
    content: '';
    background-color: #EAF0F9;
    width: 15px;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
  } 
  .texto-carrusel-section .cards-swiper{
    padding-right: 15px;
  }
.texto-carrusel-content h2{
  font-weight: 700;
  font-size: 40px;
  margin: 0;
}
.texto-carrusel-content h3{
  font-weight: 700;
  font-size: 20px;
}
.texto-carrusel-content .texto-3col p{
  font-size: 18px !important;
  margin: 0;
}
.texto-carrusel-content .cards-swiper p{
  margin-block-start: 0;
  margin-block-end: 0;
  margin-bottom: 0;
  font-size: 14px;
}
.texto-carrusel-content .cards-swiper a{
  text-align: right;
}
@media (max-width: 768px) {
  .swiper-pagination-bullet {
    background: #000;
    display: block;
  }
}
.brand-carousel-wrapper {
  padding: 20px 0;
}

.brand-carousel-wrapper img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 80px;
}

/* Ocultar flechas en mobile */
@media (max-width: 767px) {
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}

.marcas-confiado > div{
    max-width: 1280px !important;
    margin: 0 auto !important;
}

/* Categoria de Cursos */
@media (max-width: 767px) {
  .page-id-41 .wp-block-search__inside-wrapper{
    width: 90% !important;
  }
}

.tribe-events .tribe-events-calendar-month__multiday-event--past .tribe-events-calendar-month__multiday-event-bar-inner{background-color: #F5F5F5 !important;color:#A1A3A1 !important;}

.tribe-events .cat_control-de-calidad-y-laboratorio .tribe-events-calendar-month__multiday-event-bar-inner
{color: #066F98;background-color: #11294F;}
.tribe-events .cat_herramientas-de-gestion-de-los-sistemas-de-inocuidad .tribe-events-calendar-month__multiday-event-bar-inner
{background-color: #DDF4FB;color: #066F98;}
.tribe-events .cat_inocuidad-buenas-practicas-y-haccp .tribe-events-calendar-month__multiday-event-bar-inner
{background-color: #94D3F1;color:#066F98;}
.tribe-events .cat_prerrequisitos-de-los-sistemas-de-gestion-de-inocuidad-sgi .tribe-events-calendar-month__multiday-event-bar-inner
{background:#18386C;color:#fff}
.tribe-events .cat_protocolos-global-food-safety-initiative-gfsi .tribe-events-calendar-month__multiday-event-bar-inner
{background: #2556A4;color:#fff}
.tribe-events .cat_gestion-de-personas-y-cultura .tribe-events-calendar-month__multiday-event-bar-inner
{background: #FF6B00;color:#fff}
.tribe-events .cat_normas-de-sistemas-de-gestion-iso .tribe-events-calendar-month__multiday-event-bar-inner
{background: #CC5600;color:#fff}

.tribe-events .tribe-events-calendar-month__multiday-event-bar-title{color: #fff !important;}

.tribe-events .cat_herramientas-de-gestion-de-los-sistemas-de-inocuidad .tribe-events-calendar-month__multiday-event-bar-title,
.tribe-events .cat_inocuidad-buenas-practicas-y-haccp .tribe-events-calendar-month__multiday-event-bar-title{color: #066F98 !important;}

.tribe-events .tribe-events-calendar-month__multiday-event--past .tribe-events-calendar-month__multiday-event-bar-title{color: #11294F !important;}