/*
Theme Name: blogcerealex
Theme URI: 
Author: Alex
Author URI: 
Description: Plantilla ligera y moderna optimizada
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blogcerealex
Tags: corporative, responsive, minimal
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

html {
    margin-top: 0px !important;
    font-size: 65.5%;
}

p {
    line-height: 1.2;
}

:root {
    --bs-font-sans-serif: "Inter", sans-serif;

    --header-font: "Playfair Display", serif;

    --btn-padding-x: 0.75rem;
    --btn-padding-y: 0.375rem;

    --bs-border-radius: 0.375rem;

    --wc-product-filter-checkbox-list-label-element: rgb(var(--main-color));
}

.toast {
    --bs-toast-font-size: var(--bs-body-font-size);
}

body.modal-open {
    padding-right: 0 !important;
    /* Permite scroll aunque el modal esté abierto */
}

h1.slider-h1 {
    font-size: var(--h1-size);
    background-color: rgba(var(--secondary-color), 1);
    width: fit-content;
    margin: 0 auto 1rem;
    padding: 0.4rem 2rem 1.3rem;
}

.slider-p {
    background-color: rgba(var(--tertiary-color), 1);
    width: fit-content;
    margin: 0 auto 1rem;
    padding: 1rem 2rem 1rem;
}

.slider-p p {
    font-size: var(--p-slider-size) !important;
    margin-bottom: 0;
}

.hero-video.video-pos-center {
    object-position: center center;
}

.hero-video.video-pos-bottom {
    object-position: center bottom;
}

.hero-content {
    z-index: 2;
}

.hero-content h1 {
    color: white;
    font-size: var(--h1-size);
    width: fit-content;
}

.hero-content p {
    color: white;
    width: fit-content;
    padding: 0.4rem 0rem 0rem;
    margin: 0px !important;
}

.editorial {
    display: block;
    width: 100%;
    height: 60px;
    max-height: 60px;
    margin: 0;
    z-index: 5;
    bottom: 0;
    position: absolute;
    left: 0px;
    float: left;
}

.parallax1>use {
    animation: move-forever1 10s linear infinite;

    &:nth-child(1) {
        animation-delay: -2s;
    }
}

.parallax2>use {
    animation: move-forever2 8s linear infinite;

    &:nth-child(1) {
        animation-delay: -2s;
    }
}

.parallax3>use {
    animation: move-forever3 6s linear infinite;

    &:nth-child(1) {
        animation-delay: -2s;
    }
}

.parallax4>use {
    animation: move-forever4 4s linear infinite;

    &:nth-child(1) {
        animation-delay: -2s;
    }
}

@keyframes move-forever1 {
    0% {
        transform: translate(85px, 0%);
    }

    100% {
        transform: translate(-90px, 0%);
    }
}

@keyframes move-forever2 {
    0% {
        transform: translate(-90px, 0%);
    }

    100% {
        transform: translate(85px, 0%);
    }
}

@keyframes move-forever3 {
    0% {
        transform: translate(85px, 0%);
    }

    100% {
        transform: translate(-90px, 0%);
    }
}

@keyframes move-forever4 {
    0% {
        transform: translate(-90px, 0%);
    }

    100% {
        transform: translate(85px, 0%);
    }
}

.error404 h1,
.archive h1,
.wp-singular:not(.home) h1,
.blog h1 {
    margin-bottom: 0 !important;
}

.archive .post h2,
.blog .post h2 {
    font-size: var(--h3-size);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--header-font);
    margin-bottom: 1.7rem;
    line-height: 1;
}

h1 {
    font-size: var(--h1-size);
}

h2 {
    font-size: var(--h2-size);
}

h3 {
    font-size: var(--h3-size);
}

h4 {
    font-size: var(--h4-size);
}

h5 {
    font-size: var(--h5-size);
}

h6 {
    font-size: var(--h6-size);
}

p {
    margin-top: 0;
    margin-bottom: 2rem;
}

.small,
small {
    font-size: var(--small-size);
}

.site-footer a {
    color: rgba(255, 255, 255, 1);
    text-decoration: none;
}

.site-footer i {
    font-size: calc(var(--bs-body-font-size) * 1.5);
}

.site-footer a:hover {
    color: rgba(235, 235, 235, 1);
}

a {
    color: rgba(var(--terciary-color), 1);
    text-decoration: none;
}

body.page-template-template-contacto main a {
    color: rgba(var(--terciary-color), 1) !important;
    text-decoration: none;
}

body.page-template-template-contacto main p>a {
    text-decoration: underline;
}

/* a:hover {
    --main-color: var(--main-color-darken);
} */

.navbar-brand svg {
    width: 25rem;
    height: fit-content;
}

.footer-logo svg {
    width: 25rem;
    height: fit-content;
}

header .navbar-nav a {
    text-decoration: none;
    position: relative;
    background: linear-gradient(120deg, rgba(var(--tertiary-color), 1) 0%, rgba(var(--tertiary-color), 1));
    background-repeat: no-repeat;
    background-size: 100% 0.0em;
    background-position: 0 100%;
    transition: background-size 0.25s ease-in;
}

header .navbar-nav a:hover {
    background-size: 100% 100%;
    color: #000 !important;
}

header .navbar-nav a.active {
    background-size: 100% 100%;
    color: #000 !important;
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0) !important;
}

.navbar-dark #mainNavbar .navbar-nav a {
    --bs-nav-link-color: rgba(0, 0, 0, 1);
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0);
}

.navbar-dark #mainNavbar .navbar-nav a:hover {
    --bs-nav-link-color: rgba(0, 0, 0, 1);
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0);
}

.footer-logo svg .cls-2 {
    fill: #fff;
}

.footer-logo svg .cls-3 {
    fill: rgba(var(--main-color), 1);
}

.navbar {
    --bs-navbar-nav-link-padding-x: 1rem;
    --bs-navbar-toggler-padding-y: 0.8rem
}

.dropdown-menu {
    --bs-dropdown-font-size: var(--bs-body-font-size);
}

.bg-primary {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--main-color), var(--bs-bg-opacity)) !important;
}

.bg-secondary {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--secondary-color), var(--bs-bg-opacity)) !important;
}

.text-primary {
    --bs-text-opacity: 1;
    color: rgba(var(--main-color), var(--bs-text-opacity)) !important;
}

.text-secondary {
    --bs-text-opacity: 1;
    color: rgba(var(--secondary-color), var(--bs-text-opacity)) !important;
}


.btn {
    --bs-btn-font-size: var(--bs-body-font-size);
    --bs-btn-padding-x: var(--btn-padding-x);
    --bs-btn-padding-y: var(--btn-padding-y);
}



.btn-primary {
    --bs-btn-color: rgba(var(--secondary-color), 1);
    --bs-btn-bg: rgba(var(--main-color), 1);
    --bs-btn-border-color: rgba(var(--main-color), 1);
    --bs-btn-hover-color: rgba(var(--main-color), 1);
    --bs-btn-hover-bg: rgba(var(--secondary-color), 1);
    --bs-btn-hover-border-color: rgba(var(--secondary-color), 1);
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: rgba(var(--secondary-color), 1);
    --bs-btn-active-bg: rgba(var(--main-color), 1);
    --bs-btn-active-border-color: rgba(var(--main-color), 1);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: rgba(var(--secondary-color), 1);
    --bs-btn-disabled-bg: rgba(var(--main-color), 1);
    --bs-btn-disabled-border-color: rgba(var(--main-color), 1);
}

.btn-outline-primary {
    --bs-btn-color: rgba(var(--main-color), 1);
    --bs-btn-border-color: rgba(var(--main-color), 1);
    --bs-btn-hover-color: rgba(var(--secondary-color), 1);
    --bs-btn-hover-bg: rgba(var(--main-color), 1);
    --bs-btn-hover-border-color: rgba(var(--main-color), 1);
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: rgba(var(--secondary-color), 1);
    --bs-btn-active-bg: rgba(var(--main-color), 1);
    --bs-btn-active-border-color: rgba(var(--main-color), 1);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: rgba(var(--main-color), 1);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: rgba(var(--main-color), 1);
    --bs-gradient: none;
}

.btn-tertiary {
    --bs-btn-color: rgba(var(--secondary-color), 1);
    --bs-btn-bg: rgba(var(--tertiary-color), 1);
    --bs-btn-border-color: rgba(var(--tertiary-color), 1);
    --bs-btn-hover-color: rgba(var(--tertiary-color), 1);
    --bs-btn-hover-bg: rgba(var(--secondary-color), 1);
    --bs-btn-hover-border-color: rgba(var(--secondary-color), 1);
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: rgba(var(--tertiary-color), 1);
    --bs-btn-active-bg: rgba(var(--secondary-color), 1);
    --bs-btn-active-border-color: rgba(var(--main-color), 1);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: rgba(var(--secondary-color), 1);
    --bs-btn-disabled-bg: rgba(var(--main-color), 1);
    --bs-btn-disabled-border-color: rgba(var(--main-color), 1);
}

.py-5 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

.wc-block-product-filter-price-slider__range {
    --range-color: rgb(var(--main-color));
    --track-background: linear-gradient(to right, transparent var(--low), var(--range-color) 0, var(--range-color) var(--high), transparent 0) no-repeat 0 100% / 100% 100%;
}

:where(.wc-block-product-filters) .wc-block-product-filters__overlay-content {
    gap: 2rem;
}

/** AIEmpresarial THEME */

.admin-bar {
    margin-top: 32px !important;
}

.admin-bar .full-100vh {
    height: calc(100vh - 32px);
}

.admin-bar .full-75vh {
    height: calc(75vh - 32px);
}

.admin-bar .full-60vh {
    height: calc(60vh - 32px);
}

.admin-bar .full-50vh-first {
    height: calc(50vh - 32px);
}

.admin-bar .full-25vh {
    height: calc(25vh - 32px);
}

.padding-navbar {
    padding-top: calc(9.5rem);
    /* padding-bottom: calc(5.5rem); */
}

.padding-navbar-full {
    padding-top: calc(11.5rem);
    padding-bottom: calc(9.5rem);
}

.front-slide {
    padding-top: calc(7rem);
}

.full-100vh {
    height: 100vh;
}

.full-75vh {
    height: 75vh;
}

.full-60vh {
    height: 60vh;
}

.full-50vh {
    height: 50vh;
}

.full-40vh {
    height: 40vh;
}

.min-full-40vh {
    min-height: 40vh;
}

.full-25vh {
    height: 25vh;
}


.sliderSnik,
.sliderSnik .swiper-slide {
    width: 100%;
    height: 100%;
}

.sliderSnik .swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bg-position-repeat-cover {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.cita-servicio {
    text-align: center;
    font-size: calc(var(--p-slider-size) - 0.5rem);
}


.cita-servicio p {
    line-height: 1.2;
}

.cita-servicio p::before {
    content: '“ ';
}

.cita-servicio p::after {
    content: ' ”';
}

.cita-servicio p:last-of-type {
    margin-bottom: 0 !important;
}

/* Imagen normal */

.sliderSnik .slide-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.sliderSnik .slide-image::before {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 100;
}

.front-slide canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    pointer-events: none;
}

.sliderSnik .slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-destacado-main {
    background-color: rgba(var(--main-color), 1);
    padding: 1rem;
    width: fit-content;
}

/* Fallback sin imagen */
.sliderSnik .swiper-slide.no-image {
    background: rgba(var(--secondary-color), 0.1);
}

.slide-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.slide-fallback svg,
.slide-fallback img {
    max-width: 300px;
    width: 60%;
    height: auto;
    fill: #fff;
}

/* Contenido */
.slide-content {
    position: absolute;
    z-index: 110;
    color: #fff;
    text-align: center;
    text-shadow: 0 4px 15px rgba(0, 0, 0, .5);
    width: 50%;

}

.slide-content h2 {
    font-size: clamp(2rem, 4vw, 4rem);
}

.slide-content p {
    font-size: 1.2rem;
}

.site-footer {
    background-color: rgba(var(--secondary-color), 1);
    color: #fff;
}

.form-control {
    font-size: var(--bs-body-font-size);
    padding: 1rem;
}

.wp-block-quote p {
    font-size: 3rem;
    position: relative;
}

.wp-block-quote p::before {
    content: '" ';
}

.wp-block-quote p::after {
    content: ' "';
}

.wp-block-group.content-product {
    padding: 3rem;
    box-shadow: 0px 0px 15px 5px rgba(0, 0, 0, 0.125);
    margin-bottom: 3rem;
}

.wp-block-group.content-product .wp-block-columns figure {
    height: 100%;
}

.wp-block-group.content-product .wp-block-columns figure img {
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.start-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--secondary-color), 0.8);
    mix-blend-mode: multiply;
}

.start-section .content {
    position: relative;
    z-index: 10;
    text-shadow: 0px 0px 12px rgba(0, 0, 0, 0.5);
}



.legal-notice-form {
    text-align: start !important;
    color: rgba(var(--secondary-color), 1);
    font-style: italic;
    font-size: var(--small-size);
}

.legal-notice-form p {
    margin-bottom: 0.2rem;
}

/* Hasta sm (phones) */
@media (max-width: 575.98px) {
    /* estilos para teléfono */
}

/* Hasta md */
@media (max-width: 767.98px) {}

/* Hasta lg */
@media (max-width: 991.98px) {

    * {
        text-align: center !important;
    }

    .footer-navigation ul,
    .footer-navigation ul li {
        text-align: center !important;
    }

    header ul li,
    .footer-navigation ul li {
        margin-bottom: 3rem;
    }

    ul,
    ul li {
        text-align: start !important;
    }

    html {
        font-size: 50%;
    }

    p {
        margin-bottom: 3rem;
    }

    .padding-navbar {
        padding-top: calc(8.3rem);
    }

    .slide-content {
        padding: 2rem;
        width: 100%;
    }

    header .container {
        padding: 1rem 2rem;
    }

    main .container,
    footer .container {
        padding: 2rem 5rem;
    }

    .btn {
        width: 100%;
    }

    .navbar-brand-slider img {
        width: 15rem;
        margin-bottom: 2rem;
        margin-top: 10rem;
    }

    .navbar-toggler-icon {
        width: 3em;
        height: 3em;
    }

    .wp-block-group:nth-child(odd) .wp-block-columns .wp-block-column:first-child {
        order: 1;
    }

}