/*
==================================================================
Theme Name: Mr Pedu
Version: 1.0
Author: Edu Quirante
Author URI: https://mrpedu.com
==================================================================
*/

:root {
    --primary: var(--wp--preset--color--primary);
    --secondary: var(--wp--preset--color--secondary);
    --grey: var(--wp--preset--color--grey);
    --black: var(--wp--preset--color--black);
    --white: var(--wp--preset--color--white);
    --font-head: var(--wp--preset--font-family--anton);
    --font-text: var(--wp--preset--font-family--poppins);
}

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

::placeholder {
    color: white;
}

body,
p,
li,
span {
    font-family: var(--font-text);
    hyphens: none;
    overflow-wrap: unset !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-head);
    hyphens: none;
    overflow-wrap: unset !important;
}

:root :where(.is-layout-flow)>h1,
:root :where(.is-layout-flow)>h2,
:root :where(.is-layout-flow)>h3,
:root :where(.is-layout-flow)>h4,
:root :where(.is-layout-flow)>h5,
:root :where(.is-layout-flow)>h6 {
    font-family: var(--font-head);
    margin-block-end: 0.5rem;
}

:root :where(.is-layout-flow) > p {
    margin-block-start: 20px;
    margin-block-end: 0;
}

.wp-block-separator {
    border: none;
    border-top: 1px solid !important;
}

h1 {
    font-size: 60px !important;
    font-weight: 800;
}

h2 {
    font-size: 42px;
    font-weight: 600;
}

h3 {
    font-size: 25px;
    font-weight: 600;
}

p {
    font-size: 18px;
    font-weight: 400;
}

body {
    font-size: var(--wp--preset--font-size--small);
    line-height: 1.3;
    background-color: white;
    color: var(--dark);
}

img {
    max-width: 100%;
}

hr {
    box-sizing: content-box;
    height: 10px !important;
    width: 50% !important;
    margin: 0 !important;
}

.wp-site-blocks {
    margin-top: 90px;
    width: 100%;
    overflow-x: hidden;
}

.wp-site-blocks,
.alignfull>* {
    padding-left: var(--wp--preset--spacing--20);
    padding-right: var(--wp--preset--spacing--20);
}

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

.wp-block-group,
.wp-block-columns {
    padding-top: 4vw;
    padding-bottom: 4vw;
    gap: 6vw;
}

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


.wp-site-blocks> :where(:not(.alignwide):not(.alignfull)) {
    width: 100% !important;
    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;
}

.block-editor-block-list__layout.is-root-container>.alignfull {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

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

/*DECORACIONES CHORRAS*/
.sombreado:hover {
    box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    transition: box-shadow 250ms ease;
}

.sombreado:hover h2 {
    color: var(--primary);
    transition: color 250ms ease;
}

.subrayado {
    text-align: center; /* Asumiendo que el texto está centrado */

}

.subrayado::after {
    content: "";
    display: block;
    width: 25%;
    border-bottom: 4px solid var(--primary);
    margin: 10px auto 0 auto;
    border-radius: 15px;
}

.titulospan {
    margin: 15px 0px !important;
}
.titulospan span {
    color: var(--primary);
}
.text-color-fondo {
    background: #ffb9a0;
    padding: 0.5vw;
    color: var(--primary);
    border-radius: 15px;
    max-width: fit-content;
}


/* Botones */

.wp-block-post-excerpt__more-link, .btn-ver-mas {
    font-family: var(--font-text);
    border-bottom: 2px solid var(--primary);
    text-transform: none;
    letter-spacing: 0.04em;
    transition: all 250ms ease;
}

.wp-block-button__link,
.wpcf7 input[type="submit"] {
    font-family: var(--font-text);
    background-color: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
    text-transform: none;
    letter-spacing: 0.04em;
    transition: all 250ms ease;
    padding: 15px 50px;
    border-radius: 15px;
}

.wp-block-button__link:hover {
    background-color: var(--secondary);
    color: var(--primary) !important;
    cursor: pointer;
}


.is-style-outline .wp-block-button__link {
    text-transform: none;
    letter-spacing: 0.04em;
    transition: all 250ms ease;
    padding: 15px 50px !important;
}

.is-style-outline .wp-block-button__link:hover {
    border-color: var(--primary);
    color: var(--white) !important;
    background-color: var(--primary) !important;
    cursor: pointer;
}


/* Enlaces */

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

a:hover {
    text-decoration: none;
    color: var(--primary);
}

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

.overflow-hidden {
    overflow: hidden;
}

/*Header*/

#header {
    width: 100%;
    position: fixed;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);

    transition: width 560ms ease;
    background: var(--secondary);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);

    box-shadow: 0px 6px 14px -3px rgba(0, 0, 0, 0.68);
    -webkit-box-shadow: 0px 6px 14px -3px rgba(0, 0, 0, 0.68);
    -moz-box-shadow: 0px 6px 14px -3px rgba(0, 0, 0, 0.68);
}

#header-bg {
    width: 100%;
    transition: width 560ms ease;
    background: var(--secondary);
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
}

#header.nav-up {
    width: 90px !important;
}

#header #logo {
    max-width: 160px;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 50px;
    padding: 15px;
}


#header #logo img {
    width: 100%;
}


.menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.menuOpen {
    cursor: pointer;
    position: relative;
}

.menuOpen>div {
    width: 40px;
    height: 2px;
    background-color: var(--primary);
    margin: 6px 0;
    transition: 0.4s;
}

.menuOpen.active>div:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 6px);
}

.menuOpen.active>div:nth-child(2) {
    opacity: 0;
}

.menuOpen.active>div:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -6px);
}

.mobile-menu {
    width: 50%;
    height: 65vh;
    background-color: #0d1b2ad6;
    opacity: 0;
    transform: translateY(-50px);
    transition: all 500ms ease;
    pointer-events: none;
    position: fixed;
    top: 85px;
    right: 0;
    bottom: 15px;
    z-index: 9;


}

.mobile-menu.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.mobile-menu>div {
    justify-content: center;
    align-items: end;
    position: absolute;
    right: 50px;
    top: 20px;
}

#menu-principal {
    display: flex;
    list-style: none;
    gap: 25px;
    flex-direction: column;
    font-size: 60px;
    margin: 0;
    padding: 0;
    justify-content: end;
    align-items: end;
}


.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-right: 30px;
}

.header-sidebar {
    position: fixed;
    top: 71px;
    background: #000000b1;
    left: 0;
    padding: 10px 30px;
    height: 100%;
}

/*Formulario de Contacto*/

.wpcf7 {
    max-width: 100%;
    width: 100%;
    position: relative;
}

.wpcf7 input:not(.wpcf7-submit),
.wpcf7 textarea {
    background-color: transparent;
    border: 1px solid var(--secondary);
    width: 100%;
    font-size: 15px;
    font-weight: 300;
    color: var(--secondary);
    padding: 5px 15px;

}

.wpcf7 .form-dark input:not(.wpcf7-submit),
.wpcf7 .form-dark textarea {
    border: 1px solid var(--primary);
    color: var(--primary);
}

.wpcf7 .last {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.wpcf7 textarea {
    max-height: 150px;
    max-width: 100%;
}

.wpcf7 .last>p {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
}

.wpcf7 .wpcf7-form-control-wrap {
    width: 100%;
}

.wpcf7 .wpcf7-acceptance>span {
    margin-left: 0;
}

.wpcf7 .wpcf7-acceptance>span label {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

[type="checkbox"],
[type="radio"],
legend {
    padding: 0;
    margin-top: 15px;
}

.wpcf7 .wpcf7-acceptance>span,
.wpcf7 .wpcf7-acceptance>span label a {
    font-style: regular;
    color: var(--secondary);
}

.wpcf7 .form-dark .wpcf7-acceptance>span,
.wpcf7 .form-dark .wpcf7-acceptance>span label a {
    color: var(--primary);
}

.wpcf7 input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
}

.wpcf7 input[type="submit"]:disabled {
    pointer-events: none;
    opacity: 0.5;
}

.wpcf7 .submitting>p {
    opacity: 0.2;
}

.wpcf7 .wpcf7-spinner {
    position: absolute;
    width: 20px;
    height: 20px;
    top: calc(50% - 10px);
    left: calc(50% - 10px);
    margin: 0;
}

.wpcf7 .wpcf7-response-output {
    background-color: white;
    color: white;
    margin: 25px 0 0 0;
    border: none;
    padding: 15px 20px;
    font-size: 14px;
    text-align: center;
    font-weight: 600;
}

.wpcf7 .sent .wpcf7-response-output {
    background-color: green;
    border-color: green !important;
    margin: 0;
    padding: 5px;
}

.wpcf7 .invalid .wpcf7-response-output {
    background-color: #d34c4c;
    border-color: #d34c4c !important;
    margin: 0;
    padding: 15px;
}

.wpcf7 .wpcf7-not-valid {
    border-color: #d34c4c !important;
}

.wpcf7 .wpcf7-not-valid-tip {
    display: none !important;
}

.wpcf7-select {
    background-color: transparent;
    border: 1px solid var(--secondary);
    width: 100%;
    font-size: 15px;
    font-weight: 300;
    color: var(--secondary);
    padding: 5px 15px;

}

.form-dark .wpcf7-select {
    border: 1px solid var(--primary);
    color: var(--primary);
}

#responsive-form {
    margin: 0 auto;
    width: 100%;
}

.contact-form-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.contact-form-column {
    flex: 1;
    min-width: 200px;
    max-height: 45px;

}

/*FOOTER*/

#footer {
    border-top: 2px solid var(--primary);
    background-color: var(--secondary);
    color: var(--white);
    box-shadow: 0px -5px 5px -4px var(--primary);
    -webkit-box-shadow: 0px -5px 5px -4px var(--primary);
    -moz-box-shadow: 0px -5px 5px -4px var(--primary);
}

.templo {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 50px;
    gap: 20px;
}

.columna {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.columna h4 {
    color: var(--primary);
    line-height: 0%;
}



/*SLIDER*/

body .wp-block-post-template.is-layout-grid.swiper-wrapper {
    gap: 0;
}

body .swiper-wrapper {
    display: flex;
    justify-content: start;
    align-items: start;
}

body .swiper-wrapper.is-layout-grid li {
    max-width: 470px;
}


.carousel-dos {
    position: relative;
    padding-left: 20px;
    padding-right: 20px;
    overflow: hidden;
}

.carousel-dos .swiper-slide {
    transition: all 400ms ease;
    opacity: 0;
    margin-block-start: 0;
}

.carousel-dos .swiper-slide.swiper-slide-active,
.carousel-dos .swiper-slide.swiper-slide-next,
.carousel-dos .swiper-slide.swiper-slide-next+li {
    opacity: 1;
}

.carousel-dos .swiper-button-next,
.carousel-dos .swiper-button-prev {
    position: absolute;
    top: calc(100% - 0px);
    width: 50px;
    height: 50px;
    background-color: var(--white);
    margin-left: 25px;
    margin-right: 25px;
    z-index: 0;
    display: flex;
    align-items: initial;
}

.carousel-dos .swiper-button-prev {
    left: 0;
}

.carousel-dos .swiper-button-next {
    right: 0;
}

.carousel-dos .swiper-button-next:hover,
.carousel-dos .swiper-button-prev:hover {
    background-color: white;
}

.carousel-dos .swiper-button-next:after,
.carousel-dos .swiper-button-prev:after {
    font-size: 25px !important;
    color: var(--black);
    content: url(/wp-content/uploads/2025/06/icon-flecha-negra.svg);
}

.swiper-button-prev:after {
    transform: translateY(-50%) rotate(180deg);
}


.carousel-dos .swiper-button-next:hover:after,
.carousel-dos .swiper-button-prev:hover:after {
    color: var(--primary);
}


/*Carrusel infinito*/

.carrusel {
    margin: 0 auto;
    max-width: 100vw;
    /* ocupa el ancho completo de la pantalla */
    overflow: hidden;
    /* oculta lo que se sale */
    position: relative;
}

.carrusel:hover .grupo {
    animation-play-state: paused;
    /* pausa con hover */
}

.grupo {
    display: flex;
    width: max-content;
    justify-content: center;
    align-items: baseline;
    gap: 20px;
    will-change: transform;
    animation: scrolling 30s linear infinite;
}

@keyframes scrolling {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* mueve justo la mitad */
}

.tarjeta {
    flex: 0 0 auto;
    width: 150px;
    height: 150px;
    color: white;
    border: 1px solid var(--primary);
    font-size: xx-large;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
}

.tarjeta:hover {
    border: 1px solid var(--secondary);
    cursor: none;
    transition: all 300ms ease-in-out;
}



/*Página blog*/

.card {

    overflow: hidden;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    border: solid 2px var(--secondary);
}

.titulo-card {
    text-transform: uppercase;
}

.more-card {
    display: none;
    background-color: var(--white);
    opacity: 0;
    transition: opacity 0.3s ease-out;
    width: 90%;
    padding: 5px;
    text-align: center;
    border: 1px solid var(--secondary);
}

.card:hover {
    border: solid 2px var(--primary);
    transform: translateY(-5px);
    transition: all 0.3s ease-in-out;
    background-color: radial-gradient(circle, rgba(241, 90, 36, 1) 0%, rgba(13, 27, 42, 1) 100%) !important;
}

.card:hover .more-card {
    display: block;
    opacity: 0.8;
    background-color: var(--primary);
    color: var(--secondary);
    transition: opacity 0.9s ease-in-out;
}

.card:hover .titulo-card {
    color: var(--secondary);
    transition: color 0.2s ease-in-out;
}


/*ELEMENTOS EXTRA*/


/*TABS*/
.wp-block-atbs-tabs .tabs-titles {
    background-color: #EDEDED !important;
}

.atbs-tabs-3c09b1d9 .tabs-titles {
    justify-content: center;
    flex-direction: row;
}

.wp-block-atbs-tabs .tabs-titles {
    background-color: #FFF !important;
    padding: 15px;
}

.wp-block-atbs-tabs .tabs-nav {
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.atbs-tabs-e742249e .tabs-nav .tab-title.active {
    transition: ease-in 350ms;
}

/*ACF - AFiliaciones */

.afiliaciones-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); 
    gap: 25px;
    width: 100%;
}

.afiliacion-card {
    border: 2px solid var(--primary);
    border-radius: 15px;
    padding: 20px;
    overflow-wrap: break-word; 
    word-wrap: break-word;
}

.afiliacion-card p {
    color: var(--grey);
}

.afiliacion-card .afiliacion-marca {
    background-color: var(--secondary);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 15px;
    margin: 0;
    width: fit-content;
}

.afiliacion-card span {
    display: block;
    border: 1px solid var(--grey);
    width: 100%;
    text-align: center;
    padding: 5px;
}

.btn-ver-mas-wrapper {
    margin-top: 25px;
    text-align: center;
}

