/*!
Theme Name: Nea Klinika
Theme URI: http://underscores.me/
Author: Triplevdoble
Author URI: https://www.triplevdoble.com/
Description: Creado por Triplevdoble para Nea Klinika
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: nea-klinika
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Nea Klinika is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> ESTILOS GENERALES:
--------------------------------------------------------------*/

*{
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
}

body{
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    color: var(--negro);
}

h2{
    font-weight: 700;
}

a{
    text-decoration: none;
    color: inherit;
}

ul{
    padding: 0px;
    margin: 0px;
}

li{
    list-style-type: none;
}

img{
    width: 100%;
    height: auto;
}

p{
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.3;
}

.mb5{
    margin-bottom: 3rem;
}

.mb8{
    margin-bottom: 5rem;
}

.mb10{
    margin-bottom: 6rem;
}

.mb15{
    margin-bottom: 6rem;
}

h2{
    font-weight: 300;
    font-size: 1.4rem;
}

h3{
    text-transform: uppercase;
    font-weight: 300;
    letter-spacing: 2px;
    font-size: 1rem;
}

.boton{
    text-transform: uppercase;
    padding: 5px 25px;
    border-radius: 1000px;
    font-weight: 300;
    font-size: 0.8rem;
    display: inline-block;
    letter-spacing: 2px;
}

.banner{
    padding: 3rem 0;
}

:root {
  --negro: #2C2B2B;
  --verde: #C9E5D9;
  --azul: #28283F;
  --claro: #EFF7F4;
  --beige: #F2E9E4;
  --borde: 10px;
}

/*--------------------------------------------------------------
>>> HEADER:
--------------------------------------------------------------*/

header{
    padding: 2rem 0;
}

header .site-logo img{
    max-width: 160px;
}

.menu-desk{
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.menu-desk ul{
    display: flex;
    gap: 40px;
}

.menu-desk li{
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1rem;
}

/*--------------------------------------------------------------
>>> FOOTER:
--------------------------------------------------------------*/

/*--------------------------------------------------------------
>>> PORTADA:
--------------------------------------------------------------*/

.hero-portada{
    width: 100%;
}

.hero-portada .swiper-wrapper{
    height: 190px;
}

.hero-portada .swiper-wrapper img{
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.inferior-hero{
    position: relative;
    width: 100%;
}

.fondo-inferior-hero{
    position: absolute;
    z-index: -1;
    top: 0px;
    right: 0px;
}

.fondo-inferior-hero img{
    max-width: 500px;
}

.inferior-hero h2{
    font-size: 1.4rem;
    text-align: center;
    font-weight: 400;
    padding-top: 2rem;
}

.etapas{
    overflow: hidden;
}

.etapas .swiper{
    overflow: visible;
}

.etapas h3{
    text-align: center;
    margin-bottom: 1.5rem;
}

.caja-etapa{
    position: relative;
    border-radius: var(--borde);
    overflow: hidden;
    aspect-ratio: 35/47;
}

.caja-etapa::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg,rgba(51, 71, 76, 0) 0%, rgba(51, 71, 76, 1) 95%);
    pointer-events: none;
    z-index: -1;
}

.swiper-slide:nth-child(5) .caja-etapa::after{
    content: none;
}

.caja-etapa:hover::after{
    height: 170%;
}

.fondo-caja-etapa{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    z-index: -2;
}

.foto-caja-etapa{
    height: 100%;
}

.foto-caja-etapa img{
    height: 100%;
    object-fit: cover;
}

.contenido-caja-etapa{
    height: 100%;
}

.contenido-caja-etapa{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: end;
    text-align: center;
    align-items: center;
    padding: 10px;
    flex-direction: column;
    gap: 4rem;
}

.contenido-visible-caja-etapa p{
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

.contenido-visible-caja-etapa{
    opacity: 1;
    transform: scale(1);
    transition: all 0.8s ease;
}

.caja-etapa:hover .contenido-visible-caja-etapa{
    opacity: 0;
    transform: scale(0.95);
}

.contenido-oculto-caja-etapa{
    opacity: 0;
    transform: scale(1.05);
    transition: all 0.4s ease;
    padding: 0 10px;
}

.caja-etapa:hover .contenido-oculto-caja-etapa{
    opacity: 1;
    transform: scale(1);
    transition: all 0.8s ease;
}

.contenido-oculto-caja-etapa p{
    color: #fff;
    font-size: 1rem;
    letter-spacing: 1px;
}

.foto-caja-etapa {
    position: relative;
    overflow: hidden;
}

.foto-caja-etapa::after {
    content: "";
    position: absolute;
    top: 75%;
    left: 0;
    width: 500%; /* 5 slides = 500% */
    height: 100%; /* ajusta según imagen */
    background-image: url('/wp-content/uploads/linea-etapas-scaled.png');
    background-size: 100% auto;
    background-repeat: no-repeat;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 3;
}

.swiper-wrapper {
    --gap: 15px;
}

.swiper-slide:nth-child(2) .foto-caja-etapa::after {
    left: calc(-100% - var(--gap));
}

.swiper-slide:nth-child(3) .foto-caja-etapa::after {
    left: calc(-200% - calc(var(--gap) * 2));
}

.swiper-slide:nth-child(4) .foto-caja-etapa::after {
    left: calc(-300% - calc(var(--gap) * 3));
}

.swiper-slide:nth-child(5) .foto-caja-etapa::after {
    left: calc(-400% - calc(var(--gap) * 4));
}

.cta-etapa{
    background-color: var(--verde);
    text-align: center;
}

.caja-etapa-cta .contenido-caja-etapa{
    justify-content: center;
}

.contenido-cta-etapa img{
    max-width: 130px;
    margin-bottom: 1rem;
}

.contenido-cta-etapa p{
    text-transform: uppercase;
    margin: 1rem 0;
}

.contenido-cta-etapa .boton{
    background-color: var(--azul);
    color: #fff;
}

.cerca{
    background-color:  var(--claro);
}

.cerca .boton{
    background-color:  var(--verde);
    margin-bottom: 10px;
}

.cerca img{
    mix-blend-mode: multiply;
}

.cerca h2{
    margin-bottom: 1rem;
}

.cerca h3{
    margin-bottom: 0.5rem;
}

.texto-equipo{
    background-color:  var(--verde);
    padding: 2rem 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contenido-equipo{
    border-radius: var(--borde);
    overflow: hidden;
    height: 100%;
}

.contenido-equipo img{
    height: 100%;
    object-fit: cover;
}

.contenido-equipo .boton{
    border: solid 1px var(--negro);
    width: fit-content;
}

.analisis{
    background-color: var(--beige);
}

.analisis img{
    border-radius: var(--borde);
}

.analisis ul{
    margin-bottom: 1rem;
}

.analisis li {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.analisis .boton{
    border: solid 1px var(--negro);
}

/*--------------------------------------------------------------
>>> MEDIA QUERYS:
--------------------------------------------------------------*/

@media (min-width: 576px) { 

    .banner h2{
        font-size: 1.8rem;
    }
    
    .cerca h2{
        margin-bottom: 1.3rem;
    }

}

@media (min-width: 768px) { 

    .inferior-hero h2{
        font-size: 2rem;
        padding-top: 4rem;
    }

}

@media (min-width: 992px) { 
    
    h3{
        font-size: 1.2rem;
    }

    .mb5{
        margin-bottom: 5rem;
    }

    .mb8{
        margin-bottom: 8rem;
    }
    
    .mb10{
        margin-bottom: 10rem;
    }
    
    .mb15{
        margin-bottom: 15rem;
    }
    
    .hero-portada .swiper-wrapper{
        height: 300px;
    }
    
    .inferior-hero h2{
        font-size: 2.3rem;
    }
    
    .banner{
        padding: 4rem 0;
    }
    
    .banner h2{
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    .direcciones{
        display: flex;
        gap: 10px;
    }

}

@media (min-width: 1200px) {  

    .hero-portada .swiper-wrapper{
        height: 500px;
    }
    
    .banner h2{
        font-size: 2.6rem;
        line-height: 1;
    }
    
    .cerca h2{
        margin-bottom: 1.5rem;
    }
    
    .cerca .boton{
        white-space: nowrap;
    }
    
    .banner {
        padding: 6rem 0;
    }
    
    .texto-equipo{
        padding: 2rem;
    }
    
    .analisis p{
        max-width: 90%;
    }
    
    .analisis ul{
        display: flex;
        align-items: center;
    }

    .analisis li {
        position: relative;
    }

    .analisis li::after {
        content: "";
        display: inline-block;
        width: 8px;
        height: 8px;
        background: #000;
        border-radius: 50%;
        margin: 0 10px;
        vertical-align: middle;
        transform: translateY(-2px);
    }

    .analisis li:last-child::after {
        display: none;
    }

}

@media (min-width: 1400px) {  
    
    .container{
        max-width: 1450px;
    }

    .etapas h3{
        max-width: 450px;
        margin: auto;
    }
    
    .cerca h2{
        margin-bottom: 2rem;
    }
    
    .banner h2{
        font-size: 3rem;
    }

}