/*

Id: pg-ln-10
Nombre: Ln10
Fecha: 21/09/22
Sistema: Site Mater
*/

body:has(.landing) .buttons--circle{
display:none!important;
}
.section--filter:before {
    display: none;
}

.section--landing {
    --shape-triangle-invert: url("data:image/svg+xml, %3Csvg data-name='Layer 1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M598.97 114.72L0 0 0 120 1200 120 1200 0 598.97 114.72z' class='shape-fill'%3E%3C/path%3E%3C/svg%3E");
    --heightShapeBottom: clamp(20px, 3vh, 80px);
    position: relative;
    padding-bottom: calc(var(--padding-v) + var(--heightShapeBottom));
}
.landing {
    display: flex;
    flex-direction: column;
    --animate-delay: 0.5s;
}
.landing__img:after {
    content: '';
    display: block;
    position: absolute;
    left: 50%;
    width: calc(100% + 2px);
    z-index: 1;
    background-color: #fff;
    -webkit-mask-size: cover;
    -webkit-mask-position: 50% 50%;
    -webkit-mask-image: var(--shape-triangle-invert);
    height: var(--heightShapeBottom);
    bottom: -1px;
    transform: translateX(-50%) rotate(0deg);
}

.landing__img img{
    position: absolute;
    left:0;
    top:0;
    z-index:-1;
	border-radius:0;
}

.landing__head {
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: 0.75rem;
}
.landing__info{
    position:relative;
}
.landing__title {
    --max-size:42;
    --min-size:30;
    font-family: var(--font2);
    font-weight: var(--bold2);
    margin: 0 0 0.5rem;
}
.landing__subtitle {
    line-height:1.35em;
    --max-size:24;
    --min-size:20;
    letter-spacing:0;
    text-transform:uppercase;
    font-family: var(--font1);
    font-weight: var(--bold1);
    color: var(--primary);
}

.landing__info .landing__contact .title {
    --max-size: 20;
    --min-size: 18;
    margin: 0 0 1rem;
}


.landing__buttons {
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    grid-gap: 8px;
    list-style: none;
}


.landing__buttons .button {
    display:inline-flex;
    align-items:center;
    width: 100%;
    height:100%;
    height:42px;
    padding:0 1rem;
    white-space:nowrap;
    margin:0;
    font-size:1.125rem;
    text-align:center;
    justify-content:center;
}

.landing__info {
    padding: min(var(--padding-h),1.5rem);
    background: #fff;
    border-radius: var(--radiusBox);
}

.landing__buttons .button--whatsapp i,
.landing__buttons .button--dark i {
    margin: 0;
}

.landing__buttons .button--whatsapp, .landing__buttons .button--dark {
    padding: 0;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}


.landing__buttons .button--whatsapp span, .landing__buttons .button--dark span {
    display: none;
}
/*******************************
Slider-text
*******************************/
.slider-text {
    background: var(--secondary);
    color: var(--secondary-invert);
    border-radius: var(--radius2);
    overflow: hidden;
    margin: 0 auto 1rem;
}

.slider-text__item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.slider-text__ico {
    display: flex;
    width: 42px;
    height: 42px;
    font-size: 1.5rem;
    justify-content: center;
    align-items: center;
    background: #fff;
    color: ;
    border-radius: var(--radius2);
    margin-right: 1rem;
    flex-shrink: 0;
}

.slider-text__title {
    font-family: var(--font1);
    font-weight: var(--bold1);
    text-align: center;
    --max-size: 24;
    --min-size: 18;
}

.slider-text .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
    --swiper-pagination-color: rgba(0,0,0,0.15);
}

/***************************
RESPONSIVE
**************************/
/* Estilos <= 600px */
@media screen and (max-width: 600px) {
    .slider-text__item {
        justify-content: center;
        padding: 0.5rem;
    }

}

/* Estilos >= 601px */
@media screen and (min-width: 601px) {

    .landing__buttons{
        justify-content:center;
    }

    .landing__buttons .button--dark, .landing__buttons .button--whatsapp {
        height:42px;
        width:42px;
    }
    
    .landing__buttons{
        grid-template-columns: min-content auto min-content;
    }
}

/* Estilos <= 820px */
@media screen and (max-width: 820px) {
    main > .section.section--landing {
        padding: 0;
    }
    .landing {
        min-height: min(calc(var(--app-height) - var(--header-height)), 812px);
    }

    .header--fixed + main .landing {
        min-height: min(var(--app-height), 812px);
    }
    .landing__inner {
        display: flex;
        flex-direction: column;
        flex: 1;
    }
    .landing__info:before {
        content:'';
    }
    .landing__info {
        background: linear-gradient(#fff,#eee);
        position: relative;
        border-radius: 0;
        z-index: 1;
    }
    .landing__img {
        flex: 1;
        min-height: 260px;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .slider-text {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

}

/* Estilos <= 640px — la foto de portada de la landing con la misma altura
   que la portada de inicio (imagen movil 640x640 = cuadrada = 100vw) */
@media screen and (max-width: 640px) {
    .landing__img {
        flex: 1 0 auto;
        min-height: 100vw;
    }
}

/* Estilos >= 821px */
@media screen and (min-width: 821px) {
    main > .section.section--landing {
        position: relative;
        padding: 0 var(--padding-h);
    }

    .landing {
        height: auto;
        justify-content: center;
        min-height: 100vh;
        padding: var(--padding-v) 0;
        
    }

    .header--fixed + main .landing {
        padding: calc(var(--padding-v) + var(--header-height)) 0 var(--padding-v);
    }
    .landing__inner {
        width: min(540px, 55%);
        margin-left:auto;
        
    }
    .landing__subtitle{
    letter-spacing:0.1em;
    }

    .landing__info {
        box-shadow: 0px 0px 20px rgba(0,0,0,0.25);
        border:4px solid var(--primary);
    }

    .landing__img:before {
        display:none;
    }

}

/* Estilos >= 1024px */
@media screen and (min-width: 1024px) {
}

/* Estilos >= 1200px */
@media screen and (min-width: 1200px) {
}

