/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/*
    Add your custom styles here
*/


/* =========================================================
   1. VARIABLES Y GENERALES
   ========================================================= */
:root {
    --primary-color: #8df2b9;
    --secondary-color: #000b47;
    --accent-color: #f34506;
    --text-dark: #010b40;
    --bg-light: #f2f1df;
	--white: #ffffff;
    --transition: all 0.35s ease;
}

body.no-scroll { overflow: hidden; }
.ellipsis, .ellipsis h3 {
   overflow:hidden; 
   text-overflow:ellipsis;
   display:-webkit-box; 
   -webkit-box-orient:vertical;
   -webkit-line-clamp:2;
}

/* =========================================================
   2. SELECTOR DE IDIOMAS (WPML)
   ========================================================= */
.content-menu > div {
    display: flex;
    gap: 30px;
    align-items: center;
}

.content-menu .wpml-ls-statics-shortcode_actions.wpml-ls-legacy-list-horizontal ul {
    display: flex;
    gap: 10px;
    padding: 4px 5px 4px 4px;
    background: rgba(141, 242, 185, 0.44);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
}

.wpml-ls-item-en, .wpml-ls-item-es {
    border: 2px solid transparent;
    border-radius: 50px;
    overflow: hidden;
}

.wpml-ls-current-language, 
.wpml-ls-item:hover {
    border-color: var(--primary-color) !important;
}

.wpml-ls-legacy-list-horizontal a { padding: 0; }

/* =========================================================
   3. OVERLAY Y MENÚ CANVAS
   ========================================================= */
.overlay {
    height: 0%;
    width: 100%;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    background: rgba(141, 242, 185, 0.97);
    overflow-y: hidden;
    transition: height 0.4s ease;
}

.overlay-open {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.overlay-content {
    position: relative;
    top: 10%;
    width: 95%;
    margin-top: 10px;
    padding-left: 5%;
}

.overlay-title {
  font-size: 2rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 700;
  color: #010b40;
  display: inline-block;
  border-bottom: 2px solid #010b40;
}

/* Animación de links en el overlay */
.overlay-content a {
    display: block;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.overlay-open .overlay-content a {
    opacity: 1;
    transform: translateY(0);
}

/* Delays progresivos */
.overlay-open .overlay-content a:nth-child(1) { transition-delay: .1s; }
.overlay-open .overlay-content a:nth-child(2) { transition-delay: .2s; }
.overlay-open .overlay-content a:nth-child(3) { transition-delay: .3s; }
.overlay-open .overlay-content a:nth-child(4) { transition-delay: .4s; }

/* Menú WP dentro de Overlay */
.overlay-wp-menu {
    list-style: none !important;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.overlay-wp-menu a {
    font-size: 3rem;
    text-transform: uppercase;
    color: var(--text-dark);
    font-family: "Ariane Coachella";
    transition: var(--transition);
}

.overlay-wp-menu a:hover {
    color: #fd7e14;
    transform: translateX(8px);
}

/* Menú 2 */
.menu-principal-canvas {
  text-align: right;
}
.menu-principal-canvas .overlay-wp-menu {
	align-items: end;
}
.overlay-wp-menu li {
  margin-bottom: 0px;
}
.menu-principal-canvas .overlay-wp-menu a {
	font-size: 2rem;
}

/* =========================================================
   4. CABECERA (Sticky & Shrink)
   ========================================================= */
header {width: 100%!important;}
.cabecera-shrink {
    padding-top: 20px !important; 
    padding-bottom: 20px !important;
    transition: all 0.3s ease-in-out !important;
}

.elementor-sticky--effects.cabecera-shrink {
    padding-top: 10px !important; 
    padding-bottom: 10px !important;
    background-color: var(--secondary-color) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.menu-trigger, .cabecera-shrink img {
    transition: all 0.3s ease-in-out !important;
}

.elementor-sticky--effects.cabecera-shrink img:not(#hamburger-icon):not(.menu-icon2) {
    max-width: 140px !important; /* Tamaño del logo cuando se encoge */
}

.elementor-sticky--effects.cabecera-shrink img#hamburger-icon, .elementor-sticky--effects.cabecera-shrink img.menu-icon2 {
	max-width: 180px !important;
}

.menu-trigger {
    position: relative;
    width: 210px;
    height: 45px;
    cursor: pointer;
    z-index: 10000;
}

.menu-icon-closed {
    width: 100%;
    height: 100%;
    transition: var(--transition);
}

.hamburger-open.menu-icon-closed {
    opacity: 0;
    transform: scale(.5) rotate(20deg);
}

/* =========================================================
   5. GRID DE EVENTOS
   ========================================================= */
article.post_grid_eventos { margin-bottom: 40px; }

.grid_eventos {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(4, 1fr);
    padding: 0;
}

.eventos > div {
	overflow: hidden;
	max-width: 372px;
}
.grid {
    display: grid;
    gap: 1.2rem;
    grid-auto-flow: dense; /* [2] */
    grid-template-columns: repeat(auto-fit, 20rem); /* [1] */
	grid-template-columns: repeat(4,1fr);
	padding: 0px;
}
.grid > * {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    height: 100%;
}
/* [3] Make fullwidth card span all grid columns. */
.fullwidth {grid-column: 1 / -1;}
.is-hidden {display: none;}
.fullwidth, .is-selected {background: transparent;}
.fullwidth {
    position: relative;
    top: -200px; /*-90px*/
    transition: all .5s ease-in-out;
    opacity: 0;
	padding: 20px;
    border-radius: 0 0 8px 8px;
}
.fullwidth[tabindex="0"] {
    top: 0;
    opacity: 1;
    margin-top: -110px;
    z-index: 999;
    height: auto;
	background: #fff;
	/*background: #8df2b9;*/
}
.grid li:nth-child(2).fullwidth[tabindex="0"], .grid li:nth-child(2n+12).fullwidth[tabindex="0"], .fullwidth[tabindex="0"]  {
	/*margin-top: -110px!important;*/
	margin-top: -197px!important;
	/*margin-bottom: -110px!important;*/
	border: 2px solid #000b47;
}
ul.grid li.btn {
    grid-column: 1/1;
    position: relative;
    z-index: 0;
}
ul.grid > li.btn:nth-child(6) {grid-column: 2/2;}
ul.grid > li.btn:nth-child(9) {grid-column: 3/3;}
ul.grid > li.btn:nth-child(12) {grid-column: 4/4;}

.li_grid {
    position: relative;
    background: var(--white);
	border: 2px solid #000b47;
    border-radius: 8px;
    overflow: hidden;
    transition: opacity 0.3s ease;
}
.li_grid .img_evento {
    padding: 0px;
    margin: 0px;
    display: flex;
    position: relative;
}
.li_grid.is-selected .img_evento::after {
    content: '';
    display: block;
    width: 0px;
    height: 0;
    margin: 0 auto;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 15px solid #fff;
    position: absolute;
    bottom: 0px;
    left: 50%;
    margin-left: -15px;
	z-index: 9999;
}
.info_evento { padding: 10px 20px 0 20px; }

.title\+btn {
   display: flex;
   justify-content: space-between;
   align-items: center;
}

.info_evento h3 {
    color: var(--secondary-color);
    font-family: "Ariane Coachella", Sans-serif;
    font-size: 1.3rem;
	width: 70%;
    max-width: 177px;
}

.li_grid .fecha { color: var(--accent-color);}

/* Efecto Hover en Grid */
.grid_eventos:has(.is-selected) .li_grid:not(.is-selected) {
    opacity: 0.4;
}

/* =========================================================
   6. BOTONES (Dragon Button Style)
   ========================================================= */
.caja_evento + .btn {
    width: 100%;
    padding: 0 0.5rem 0 1.2rem;
    margin: 0 auto 15px;
}

  {
    border: 2px solid var(--accent-color);
    border-radius: 6px;
    text-align: center;
    background: var(--accent-color) !important;
    padding: 12px 10px !important;
    color: #fff;
    position: relative;
    transition: var(--transition);
}

/* Rayado decorativo */
.li_grid .btn .bdt-ps-button::after {
    content: '';
    height: 44px;
    width: 2px;
    position: absolute;
    right: -1px;
    top: 3px;
    background: repeating-linear-gradient(to bottom, var(--accent-color) 0px, var(--accent-color) 14%, #fff 14%, #fff 28%);
}

/* Botón Saber más */
button.SaberMas[type=button]  {
	width: 20%;
	border: 2px solid red;
	border-radius: 50px;
	position: relative;
    display: block;
    font-weight: 600;
    border: 0px;
	color: #000b47;
    white-space: nowrap;
    user-select: none;
	line-height: 22px;
    -webkit-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
}
button.SaberMas[type=button]:hover {
	background: transparent;
	color: #f2f1df;
}
button.SaberMas[type=button]:active, button.SaberMas[type=button]:focus {
	outline: 0px;
	background: transparent;
}
button.SaberMas[type=button] svg {
  width: 22px;
  border: 2px solid #000b47;
  padding: 8px;
  box-sizing: content-box;
  border-radius: 50px;
}
button.SaberMas[type="button"] svg:hover {
	background: #000b47;
}

/* Tooltip */ 
.SaberMas[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 105%;
  left: 65%;
  transform: translateX(-50%);
  background: #f24e12;
  color: #fff;
  line-height: 18px;
  font-size: 12px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  transform-origin: bottom center;
  transform: translateX(-50%) translateY(5px);
  z-index: 20;
  width: 100%;
}
/* Flecha del tooltip */ 
.SaberMas[data-tooltip]::before { 
		content: ""; 
		position: absolute; 
		bottom: 86%; 
		left: 65%; 
		transform: translateX(-50%); 
		border-width: 6px; 
		border-style: solid; 
		border-color: #f24e12 transparent transparent transparent; 
		opacity: 0; transition: opacity .2s ease; 
} 
/* Mostrar tooltip al hover */ 
.SaberMas:hover::after, .SaberMas:hover::before { 
	opacity: 1; 
	transform: translateX(-50%) translateY(0); 
}
.li_grid.is-selected + .fullwidth[tabindex="0"] ~ li {
    opacity: .6;
    cursor: default;
}
.content_event {
	padding: 20px 0px;
	width: 100%;
}
.terminos {
    text-transform: uppercase;
    font-family: "Spartan MB", Sans-serif;
}
.terminos .term {padding: 6px 0px;}
.terminos .term span {
	font-weight: 600;
	margin-left: 5px;
	line-height: 26px;
}
.term_col_2 {
    padding: 20px 0px 10px;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
}
.term_col_2 > div {
	width: 50%;
	color: #000b47;
}
.term_col_2 .btn {
	text-align: right;
	display: flex;
    justify-content: flex-end;
}
/* Cuando haya un li seleccionado, baja opacidad al resto */ 
.grid_eventos:has(.li_grid.is-selected) .li_grid { 
	opacity: 0.4; transition: opacity 0.3s ease; 
}
/* El seleccionado se mantiene al 100% */ 
.grid_eventos .li_grid.is-selected { 
	opacity: 1!important; 
}

button.SaberMas + .btn {
    display: block;
    width: calc(100% - 40px);
    margin: 20px auto;
}

a.bdt-ps-dragon-button {
    position: relative;
    display: block;
}

/* -------- Wrapper oculto -------- */
.bdt-ps-button .bdt-ps-button-wrapper {
    display: none !important;
}

/* BOTÓN COMPRAR Y SABER + */
.terminos > button {
    position: absolute;
    right: 5%;
}
.bdt-ps-button {
    background: #5D7F9A;
    /*padding: 16px 35px 14px!important;*/
	padding: 12px 10px 10px !important;
    transition: all .3s ease-in-out;
}
.bdt-ps-button::after {
    content: '';
    width: 2px;
    height: 53px;
    display: block;
    background: #fff;
    position: absolute;
    right: -1px;
    top: -16px;
    background: repeating-linear-gradient( to bottom, #ffffff 0px, #ffffff 14%, #5d7f9a 14%, #5d7f9a 28%, #ffffff 28%, #ffffff 42%, #5d7f9a 42%, #5d7f9a 56%, #ffffff 56%, #ffffff 70% , #5d7f9a 70%, #5d7f9a 84%, #ffffff 84%, #ffffff 100% );
}
.bdt-ps-button-text {
	margin: 0px!important;
	font-family: "DM Sans", Sans-serif;
}
.bdt-ps-button-text::after {
    content: '';
    display: block;
    position: absolute;
	/*background: transparent;*/
	background: #f34506;
    height: 50px;
    width: 42px;
    right: -42px;
    top: 0px;
    border: 2px solid #f34506;
	border-radius: 6px;
    border-left: 0px;
	transition: all .3s ease-in-out;
}
a.bdt-ps-dragon-button:hover .bdt-ps-button-text::after {
    background: #5d7f9a;
    transform: rotate(25deg) translateX(14px) translateY(4px);
    transition: all .3s ease-in-out;
}
li.btn a.bdt-ps-dragon-button, .btn a.bdt-ps-dragon-button, .li_grid a.bdt-ps-dragon-button {
    display: block;
    width: calc(100% - 60px);
	color: #fff;
}
.term.btn a.bdt-ps-dragon-button {
    max-width: 320px;
    position: relative;
    right: 60px;
}
a.bdt-ps-dragon-button {
    position: relative;
}
li.btn .bdt-ps-button, .btn .bdt-ps-button {background: transparent!important;}
li .btn .bdt-ps-button, .li_grid .btn .bdt-ps-button {
    border: 2px solid #f34506;
	border-radius: 6px;
    text-align: center;
    font-weight: 600;
	transition: all 0.3s ease-in-out;
	background: #f34506 !important;
}
li .btn a:hover .bdt-ps-button, .li_grid .btn a:hover .bdt-ps-button {
    background: #f34506!important;
	color: #fff;
}
li .btn .bdt-ps-button::after,  .li_grid .btn .bdt-ps-button::after {
    height: 44px;
    top: 3px;
    background: repeating-linear-gradient( to bottom, #f34506 0px, #f34506 14%, #fff 14%, #fff 28%, #f34506 28%, #f34506 42%, #fff 42%, #fff 56%, #f34506 56%, #f34506 70% , #fff 70%, #fff 84%, #f34506 84%, #f34506 100% );
}

li .btn a:hover .bdt-ps-button::after, .li_grid .btn a:hover .bdt-ps-button::after {
	background: repeating-linear-gradient( to bottom, transparent 0px, transparent 14%, #f34506 14%, #f34506 28%, transparent 28%, transparent 42%, #f34506 42%, #f34506 56%, transparent 56%, transparent 70% , #f34506 70%, #f34506 84%, transparent 84%, transparent 100% );
}
li .btn a.bdt-ps-dragon-button:hover .bdt-ps-button-text::after, .li_grid .btn a.bdt-ps-dragon-button:hover .bdt-ps-button-text::after {background: #f34506;}
li .btn a.bdt-ps-dragon-button:hover .bdt-ps-button-text::before, .li_grid .btn a.bdt-ps-dragon-button:hover .bdt-ps-button-text::before {
	height: 44px;
    top: -3px;
	opacity: 1;
	transition: opacity .5s ease-in;
	background: repeating-linear-gradient( to bottom, #f34506 0px, #f34506 14%, transparent 14%, transparent 28%, #f34506 28%, #f34506 42%, transparent 42%, transparent 56%, #f34506 56%, #f34506 70% , transparent 70%, transparent 84%, #f34506 84%, #f34506 100% );
}
li .btn a.bdt-ps-dragon-button .bdt-ps-button-text::before, .btn a.bdt-ps-dragon-button:hover .bdt-ps-button-text::before, .li_grid .btn a.bdt-ps-dragon-button .bdt-ps-button-text::before {
	transition: opacity .3s ease-in;
    opacity: 0;
    content: '';
}

a.bdt-ps-dragon-button:hover .bdt-ps-button-text::before {
    content: '';
    width: 4px;
    height: 52px;
    display: block;
    background: #fff;
    position: absolute;
    right: 1px;
    top: -20px;
    background: repeating-linear-gradient( to bottom, #5d7f9a 0px, #5d7f9a 14%, transparent 14%, transparent 28%, #5d7f9a 28%, #5d7f9a 42%, transparent 42%, transparent 56%, #5d7f9a 56%, #5d7f9a 70% , transparent 70%, transparent 84%, #5d7f9a 84%, #5d7f9a 100% );
    transform: rotate(24deg) translateX(18px) translateY(0px);
    transition: all .3s ease-in-out;
}
a.bdt-ps-dragon-button:hover .bdt-ps-button::after {
	right: -2px;
	width: 3px;
	background: repeating-linear-gradient( to bottom, transparent 0px, transparent 14%, #5d7f9a 14%, #5d7f9a 28%, transparent 28%, transparent 42%, #5d7f9a 42%, #5d7f9a 56%, transparent 56%, transparent 70% , #5d7f9a 70%, #5d7f9a 84%, transparent 84%, transparent 100% );
}
.terminos button[data-close] {
    width: 40px;
    height: 40px;
    padding: 0px;
    border: 2px solid #000b47;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
}
.terminos button[data-close]:hover {
	background: #000b47;
}
/* Líneas de la X */
.terminos button[data-close]::before,
.terminos button[data-close]::after {
    content: "";
    position: absolute;
    width: 25px;
    height: 2.5px;
    background: #000b47;
    border-radius: 2px;
    transition: background 0.2s ease, transform 0.25s ease;
}

/* Línea 1 */
.terminos button[data-close]::before {
    transform: rotate(45deg);
}

/* Línea 2 */
.terminos button[data-close]::after {
    transform: rotate(-45deg);
}

/* Hover: color + ligera animación */
.terminos button[data-close]:hover::before,
.terminos button[data-close]:hover::after {
    background: #8df2b9;
    transform: scale(1.1) rotate(var(--angle));
}

/* Ajuste dinámico para el hover */
.terminos button[data-close]:hover::before {
    --angle: 45deg;
}

.terminos button[data-close]:hover::after {
    --angle: -45deg;
}
li.fullwidth  .btn .bdt-ps-button::after {
	background: repeating-linear-gradient( to bottom, #f34506 0px, #f34506 14%, #8df2b9 14%, #8df2b9 28%, #f34506 28%, #f34506 42%, #8df2b9 42%, #8df2b9 56%, #f34506 56%, #f34506 70% , #8df2b9 70%, #8df2b9 84%, #f34506 84%, #f34506 100% );
}

/* =========================================================
   7. CARRUSEL (Swiper Custom Nav)
   ========================================================= */
.eventos-carousel { width: 100%; padding-bottom: 40px; }
.swiper {padding: 0 20px!important;}
.custom-nav {
    background-color: #fff;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border: 1px solid #ddd;
    transition: var(--transition);
}

.custom-nav:after {
    font-size: 18px !important; /* Tamaño de la flecha */
    font-weight: bold;
    color: #000; /* Color de la flecha */
}

.custom-nav:hover { background-color: #000; }
.custom-nav:hover:after { color: #fff; }

.swiper-button-prev.custom-nav { left: 5px !important; }
.swiper-button-next.custom-nav { right: 5px !important; }

/* =========================================================
   8. RESPONSIVE
   ========================================================= */
@media (max-width: 1200px) {
    .grid_eventos { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 950px) {
    .grid_eventos { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
	.content-menu .wpml-ls-statics-shortcode_actions.wpml-ls-legacy-list-horizontal ul {
		background: none;
		border: 0;
		gap: 8px;
		padding: 0;
	}
	.wpml-ls-flag {width: 20px;}
	.elementor-sticky--effects.cabecera-shrink img:not(#hamburger-icon):not(.menu-icon2) {
	    max-width: 80px !important;
	}
	.overlay-wp-menu {gap: 3px;}
	.menu-principal-canvas .overlay-wp-menu a {font-size: 1.4rem;}
	.instagram-gallery-list.instagram-gallery-square > div {
  		width: calc(33.33% - var(--qligg-spacing)) !important;
	}
	.instagram-gallery-list.instagram-gallery-square > div:last-child, .instagram-gallery-list.instagram-gallery-square > div:nth-child(7) {display: none!important;}
}

@media (max-width: 580px) {
    .grid_eventos { grid-template-columns: 1fr; }
    
    .content-menu > div { gap: 10px; }
    
    .menu-trigger {
        width: 120px;
        height: 30px;
    }
    
    body.no-scroll .menu-trigger { width: 40px; }
}

/* =========================================================
   9. OTROS ELEMENTOS
   ========================================================= */
.newsletter .elementor-field-type-submit {
    position: absolute;
    right: 0;
    top: 5px;
}
.instagram-gallery-list[data-feed_layout=gallery] .instagram-gallery-item {border: 2px solid #000b47;}
#instagram-gallery-feed-0 {--qligg-aspect-ratio: 0.73 !important;}
