/*
==================================================================
Theme Name: Festival Norte
Version: 1.0
Author: Neobrand®
Author URI: https://neobrand.com
==================================================================
*/

:root {
    --principal: var(--wp--preset--color--principal);
    --dark: var(--wp--preset--color--dark);
    --claro: var(--wp--preset--color--claro);
    --black: var(--wp--preset--color--black);
    --white: var(--wp--preset--color--white);
    --grey: var(--wp--preset--color--grey);
    --font: var(--wp--preset--font-family--sofia-sans);
    --wp--preset--spacing--40: 45px;
}

::selection {
    background-color: var(--principal);
    text-shadow: none;
    color: white;
}

::placeholder {
    color: var(--grey);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

.wp-block-image img {
    vertical-align: inherit;
}

.wp-block-group {
    --wp--style--block-gap-horizontal: 20px;
    --wp--style--block-gap-vertical: 50px;
}

body, p, li, span {
    font-family: var(--font);
}

p {
    margin-top: 1rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

b, strong {
    font-weight: bold;
}

a img{
    transition: all 250ms ease;
}

a:hover img{
    opacity: 0.5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    font-weight: 600;
    margin-top: 3rem;
    line-height: 1.2;
}

body {
    font-size: var(--wp--preset--font-size--medium);
    line-height: normal;
    letter-spacing: 0.03em;
}

main{
    padding-top: 80px;
}

body.home main{
    padding-top: 0;
}

.post-type-post .editor-visual-editor__post-title-wrapper > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.post-type-post .block-editor-block-list__layout.is-root-container > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: 950px;
}

.content{
    max-width: var(--wp--style--global--content-size);
    width: 100%;
}

img{
    max-width: 100%;
}

.wp-admin :where(.editor-styles-wrapper) .alignfull{
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
    width: 100% !important;
}

.wp-block-post-content,
.alignfull {
    padding-left: var(--wp--preset--spacing--40);
    padding-right: var(--wp--preset--spacing--40);
}

.wp-block-post-content > *:not(p):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(ul):not(ol),
.alignfull > *:not(p):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(ul):not(ol) {
    padding-top: var(--wp--preset--spacing--40);
    padding-bottom: var(--wp--preset--spacing--40);
}

:root :where(.is-layout-constrained) > * {
    margin-block-end: 0;
}

.wp-block-columns, .wp-block-column{
    overflow: hidden;
}

.wp-block-column.is-vertically-aligned-stretch figure{
    height: 100%;
}

.wp-block-column.is-vertically-aligned-stretch figure div,
.wp-block-column.is-vertically-aligned-stretch figure img{
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
}

.wp-block-post-content > .wp-block-group,
.wp-block-post-content > .wp-block-columns {
    padding-top: 4vw;
    padding-bottom: 4vw;
}

.wp-block-post-content > :where(.wp-block-group):first-of-type,
.wp-block-post-content > :where(.wp-block-columns):first-of-type {
    padding-top: 0;
}

.wp-block-post-content > :where(:not(.alignwide):not(.alignfull)) {
    width: 100%;
    max-width: var(--wp--style--global--content-size);
    margin-left: auto !important;
    margin-right: auto !important;
}

.alignwide {
    width: 100%;
    max-width: var(--wp--style--global--wide-size);
    margin-left: auto !important;
    margin-right: auto !important;
}

.alignfull {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    position: relative;
}

.wp-block-latest-posts__featured-image{
    margin-bottom: 1em;
}

/* Botones */

.btn, 
.wp-block-button__link{
    background-color: var(--principal);
    color: var(--claro);
    border: none;
    border-radius: 0px;
    padding: 15px 33px;
    font-family: var(--font);
    font-size: var(--wp--preset--font-size--small);
    transition: all 250ms ease;
}

.btn:hover,
.wp-block-button__link:hover{
    background-color: var(--claro);
    color: var(--dark);
    cursor: pointer;
}

.btn-xtr > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--principal);
    color: var(--claro);
    font-family: var(--font, sans-serif);
    font-size: 45px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    padding: 35px 50px 35px 70px;
    clip-path: polygon(12% 12%, 95% 18%, 93% 80%, 10% 80%, 0% 39%);
    transition: all 250ms ease;
}

.btn-xtr > a:hover {
    background-color: var(--dark); 
    color: var(--principal);
    cursor: pointer;
    transform: scale(0.98);
}

.overflow-hidden{
    overflow: hidden;
}

/* Enlaces */

a {
    color: currentColor;
    text-decoration: none;
    transition: all 250ms ease;
}

a:hover {
    text-decoration: none;
}

p a:hover, form a:hover{
    color: var(--dark);
}

/*Header*/

header {
    display: block;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
    transition: all 250ms ease;
    padding: 20px var(--wp--preset--spacing--40);
    background-color: var(--dark);
    clip-path: polygon(0px 0px, 100% 0px, 100% 75%, 60.59% 79.81%, 49.5% 61.77%, 19.79% 100.00%, 0px 65%);
}

header .content{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    height: 100%;
    width: 100%;
}

.desingby .content{
    display: flex;
    margin: 0 auto;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

header #logo_diputacion {
    width: 80px;
    height: auto;
}

header #logo {
    width: 150px;
    height: auto;
}

header #btn-menu {
    display: none;
}

header .menu-principal-container{
    justify-self: end;
    display: flex;
    justify-content: end;
    align-items: center;
    width: fit-content;
    margin-top: -30px;
}

header .menu {
    display: flex;
    justify-content: end;
    align-items: center;
    margin: 0;
    padding: 0;
}

header li {
    list-style: none;
    font-size: 18px;
    position: relative;
    font-family: var(--font);
}

header li a {
    color: var(--claro);
    padding: 6px 20px; 
    font-weight: 500;
    display: inline-block;
    position: relative;
    z-index: 1;
}

header .menu li a:hover,
header li.current-menu-item a {
    color: var(--principal);
}   

.fechas {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    width: 55%;
}

.fechas h3 {
    display: block;
    width: 120px;
    box-sizing: content-box;
    background-color: var(--black);
    color: var(--claro);
    padding: 15px;
    text-align: center;
    margin: 25px 0;
    font-size: xxx-large;
}

.fechas p {
    color: var(--black);
    display: block;
    width: 35%;
    box-sizing: content-box;
    font-size: 45px;
    font-weight: 600;
    line-height: 1;
}

.cuerpo {
    padding: 0 !important;
    margin: 0 auto;
}

/*TABLAS DE HORARIOS (Zebra Striping)*/

.wp-block-table table.has-fixed-layout {
    width: 100%;
    border-collapse: collapse;
    border: none;
}

.wp-block-table table td {
    padding: 15px 20px; 
    border: none !important; 
    font-size: 20px; 
    font-weight: 700; 
    color: var(--dark);
    text-transform: uppercase;
    vertical-align: middle;
}

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

.wp-block-table table tbody tr:nth-child(even) {
    background-color: transparent; 
}

.wp-block-table table td.has-text-align-center {
    text-align: center;
}

.wp-block-table table td.has-text-align-right {
    text-align: right;
}

/*separadores*/

.wp-block-group.sep-principal {
    position: relative; 
}

.wp-block-group.sep-principal::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    min-height: 400px;
    background-image: url('https://festivalnortesur.com/wp-content/themes/festivalnortesur/images/separadores/principal.svg');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    pointer-events: none;
}

.wp-block-group.sep-dark {
    position: relative; 
}

.wp-block-group.sep-dark::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    min-height: 450px;
    background-image: url('https://festivalnortesur.com/wp-content/themes/festivalnortesur/images/separadores/artistas.svg');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    pointer-events: none;
}

.wp-block-group.sep-claro {
    position: relative; 
}

.wp-block-group.sep-claro::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    min-height: 450px;
    background-image: url('https://festivalnortesur.com/wp-content/themes/festivalnortesur/images/separadores/claro.svg');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    pointer-events: none;
}

/*Slider*/

.contenedor-slider-general {
    position: relative;
    padding: 0 70px;
    max-width: 100%;
}

.swiper-talleres {
    padding: 20px 0;
    width: 100%;
}

.tarjeta-taller {
    background-color: var(--claro);
    padding: 20px; 
    display: flex;
    flex-direction: column;
    text-align: left; 
    box-sizing: border-box;
}

.tarjeta-taller figure {
    width: 100%;
    margin: 0 0 20px 0;
    aspect-ratio: 16 / 9;
    background-color: #d3d3d3;
    border: 1px solid rgba(0,0,0,0.1);
}

.tarjeta-taller figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tarjeta-taller .titulo-taller {
    margin: 0 0 10px 0;
    font-size: 22px;
    color: var(--black);
    font-weight: bold;
}

.tarjeta-taller .desc-taller p {
    margin: 0;
    font-size: 16px;
    color: var(--black);
    line-height: 1.4;
}

.swiper-button-next,
.swiper-button-prev {
    height: 74px !important;
    top: 50% !important;
    transform: translateY(-50%);
    margin-top: 0 !important;
}

.swiper-button-prev {
    left: -15px !important;
}

.swiper-button-next {
    right: -15px !important;
}

.contenedor-slider-general .swiper-button-prev::after {
    content: url('images/iconos/flecha_izq.svg') !important;
    height: 74px;
    width: 20px;
}

.contenedor-slider-general .swiper-button-next::after {
    content: url('images/iconos/flecha_der.svg') !important;
    height: 74px;
    width: 20px;
}

/*ARTISTAS*/

.grid-artistas {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    gap: 40px;
    padding: 20px 0;
}

.tarjeta-artista {
    display: flex;
    align-items: center;
    justify-content: start;
    text-align: start;
    background-color: var(--claro);
    padding: 0;
    width: 100%;
    height: 180px;
    gap: 30px;
    transition: all ease 250ms;
}

.tarjeta-artista:nth-child(4n+1) {
    clip-path: polygon(0% 0%, 95% 15%, 91% 86%, 0% 100%, 0% 39%);
}

.tarjeta-artista:nth-child(4n+2) {
    clip-path: polygon(0% 0%, 97% 10%, 89% 88%, 0% 100%, 0% 34%);
}

.tarjeta-artista:nth-child(4n+3) {
    clip-path: polygon(0% 0%, 93% 18%, 90% 84%, 0% 100%, 0% 42%);
}

.tarjeta-artista:nth-child(4n+4) {
    clip-path: polygon(0% 0%, 96% 12%, 92% 90%, 0% 100%, 0% 37%);
}

.tarjeta-artista:hover {
    cursor: pointer;
    clip-path: polygon(0% 0%, 96% 13%, 100% 92%, 0% 100%, 0% 32%);
}

.tarjeta-artista figure {
    width: 120px;
    aspect-ratio: 1 / 1;
    margin: 0;
    zoom: 1.8;
}

.tarjeta-artista figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tarjeta-artista h3 {
    width: 60%;
    font-size: 24px;
    color: var(--dark);
    margin: 0;
}

/* POPUP DE ARTISTAS*/

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8); 
    z-index: 99999; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-contenido {
    background-color: var(--claro);
    padding: 60px;
    max-width: 800px;
    width: 90%;
    position: relative;
    max-height: 85dvh;
    overflow-y: auto;
    clip-path: polygon(2% 0%, 100% 0%, 96% 100%, 1% 99%, 3% 35%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

#popup-video .popup-contenido {
    max-width: 1200px;
}

.cerrar-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 50px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.cerrar-popup:hover {
    color: #ff0000;
}

#popup-imagen {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    object-fit: cover;
}

#popup-titulo {
    color: var(--dark);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 28px;
}

#popup-info {
    color: var(--black);
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}

.popup-video-contenido {
    overflow: visible;
}

.video-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
}

.video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/*Footer*/

footer {
    color: var(--dark);
    width: 100%;
    background-color: #08A282;
    padding: 15px 18%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}

#neobrand img {
    height: 25px;
    width: auto;
    opacity: 0.3;
}