@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

@font-face {
    font-family: 'Ancorli';
    src:
        url('../CSS/FONTS/Ancorli.woff') format('woff'),
        url('../CSS/FONTS/Ancorli.woff2') format('woff2'),
        url('../CSS/FONTS/Ancorli.otf') format('otf'),
        url('../CSS/FONTS/Ancorli.ttf') format('ttf');
    font-display: swap;
}

:root {
    --orma-radius: 999px;
    --orma-transition: .25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    max-width: 100vw;
    overflow-x: hidden;
}
body {
    font-family: "Raleway", sans-serif;
    overflow-x: hidden;
}
p{
    font-family: "Raleway", sans-serif;
    font-weight: 600;
}

h1, h2, h3, h4, h5 {
    font-family: 'Ancorli', Arial, Helvetica, sans-serif;
}

/************************
BOTONES
************************/
/* BASE */
.orma-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    height: 54px;
    padding: 15px 20px;
    color: #fff;
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    transition:
        filter .25s ease,
        transform .25s ease;
    user-select: none;
}

.orma-btn:hover {
    transform: translateY(-2px);
    filter:
        brightness(1.08) saturate(1.15);
}

.orma-btn:active {
    transform: translateY(1px);
    filter:
        brightness(.95);
}

.orma-btn-primary {
    background-image: url('../IMG/buttons/btn-Azul.png');
}

.orma-btn-secondary {
    background-image: url('../IMG/buttons/btn-Naranja.png');
}

.orma-btn-dark {
    background-image: url('../IMG/buttons/btn-DarkBlue.png');
}

.orma-btn-light {
    background-image: url('../IMG/buttons/btn-Blanco.png');
    color: #223;
}

.orma-btn-danger {
    background-image: url('../IMG/buttons/btn-Rojo.png');
}

.orma-btn-accent {
    background-image: url('../IMG/buttons/btn-OranjeGold.png');
}

.orma-btn-disabled {
    background-image: url('../IMG/buttons/btn-disabled.png');
    pointer-events: none;
    filter: grayscale(.4);
}

.orma-btn-Atardecer {
    background-image: url('../IMG/buttons/btn-Atardecer.png');
}

.orma-btn:hover {
    filter:
        brightness(1.12) contrast(1.05) saturate(1.1);
    transform: translateY(-2px);
}


/************************
HEADER
************************/
#mainHeader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    z-index: 9999;
    transition: .4s;
}

#mainHeader.scrolled {
    background: rgba(36, 63, 118, .92);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, .2);
}

.logo img {
    height: 60px;
}

.menu {
    display: flex;
    gap: 30px;
}

.menu a,
    .menu-item > a {
        color: #fff;
        text-decoration: none;
        font-size: .875rem;
        font-weight: 600;
    }

    .menu a:hover,
    .menu-item > a:hover {
        opacity: .8;
    }

    .menu-item {
        position: relative;
    }

    .submenu {
        position: absolute;
        top: 100%;
        left: 0;
        display: none;
        flex-direction: column;
        min-width: 180px;
        background: rgba(9, 14, 27, 0.98);
        border-radius: 18px;
        box-shadow: 0 18px 40px rgba(0, 0, 0, .2);
        padding: 10px 0;
        z-index: 999;
    }

    .menu-item:hover .submenu,
    .menu-item.open .submenu {
        display: flex;
    }

    .submenu a {
        display: block;
        padding: 12px 18px;
        color: #fff;
        text-decoration: none;
        font-weight: 700;
        font-size: .95rem;
    }

    .submenu a:hover {
        background: rgba(255, 255, 255, .08);
    }

.header-buy {
    display: flex;
}

/************************
HERO
************************/
.hero {
    width: 100%;
    height: 100vh;
    position: relative;
    background-image: url('../IMG/banner-principal.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-buttons {
    position: absolute;
    right: 3%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 50px;
    z-index: 5;
}

/*********************************
POR QUÉ ORMA
*********************************/

.porque-orma {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 100px;
}

/* IZQUIERDA */
.porque-left {
    flex: 1;
}

.porque-left h2 {
    font-size: 3.5rem;
    line-height: .95;
    font-weight: 800;
    color: #163b87;
}

.porque-left h2 span {
    display: inline-block;
    color: #67d4ff;
}

.porque-left p {
    margin-top: 12px;
    font-size: 1.5rem;
    color: #163b87;
}

.porque-left .orma-btn {
    margin-top: 60px;
}

/* DERECHA */

.porque-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.porque-item {
    display: flex;
    align-items: flex-start;
    gap: 22px;
}

.porque-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    flex-shrink: 0;
}

.porque-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
}

.porque-info p {
    font-size: 1rem;
    line-height: 1.2;
    color: #666;
}

/*********************************
TODOS DESCANSAMOS DIFERENTE
*********************************/
.descansamos {
    padding: 50px 0;
    overflow: hidden;
}

/*********************************
ENCABEZADO
*********************************/
.descansamos-header {
    text-align: center;
    margin-bottom: 40px;
}

.descansamos-header h2 {
    font-size: 4rem;
    font-weight: 800;
    color: #163b87;
    line-height: 1;
}

.descansamos-header h2 span {
    color: #6fd8ff;
}

.descansamos-header p {
    margin-top: 10px;
    font-size: 1.5rem;
    color: #163b87;
}

/*********************************
IMAGEN ARCO
*********************************/
.descansamos-banner {
    width: 100%;
    margin-bottom: 60px;
}

.descansamos-banner img {
    width: 100%;
    display: block;
}

/*********************************
COLUMNAS
*********************************/
.descansamos-modelos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.modelo {
    display: flex;
    flex-direction: column;
}

.modelo-left {
    text-align: right;
    align-items: flex-end;
}

.modelo-center {
    text-align: center;
    align-items: center;
}

.modelo-right {
    text-align: left;
    align-items: flex-start;
}

/*********************************
ETIQUETAS
*********************************/
.modelo-tag {
    display: inline-block;
    padding: 4px 14px;
    font-size: .875rem;
    font-weight: 600;
    color: #fff;
    background: #7ddcff;
    margin-bottom: 15px;
}

.modelo-center .modelo-tag {
    background: #b7bfd8;
}

.modelo-right .modelo-tag {
    background: #173a84;
}

/*********************************
TITULOS
*********************************/
.modelo h3 {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    color: #222;
    margin-bottom: 15px;
    max-width: 320px;
}

/*********************************
TEXTOS
*********************************/
.modelo p {
    font-size: 1.125rem;
    color: #666;
    line-height: 1.25;
    max-width: 320px;
    margin-bottom: 25px;
}

/*********************************
BOTON FINAL
*********************************/
.descansamos-footer {
    display: flex;
    justify-content: center;
}


/*********************************
ENCUENTRA TU COLCHÓN
*********************************/

.encuentra-colchon{
    width:100%;
    min-height:160px;
    display:flex;
    align-items:center;
    padding:40px 5%;
    background-image:url('../IMG/banner-buscador.png');
    background-repeat:no-repeat;
    background-size:cover;
    /* Desktop */
    background-position:right center;
}

.encuentra-contenido{
    max-width:80%;
}

.encuentra-colchon h2{
    font-size: 2.5rem;
    line-height:.95;
    font-weight:800;
    color:#ffffff;
    margin-bottom:15px;
}

.encuentra-colchon h2 span{
    color:#6edcff;
}

.encuentra-colchon p{
    font-size:1.25rem;
    line-height:1.3;
    color:#ffffff;
    margin-bottom:25px;
}

/*********************************
FAVORITOS
*********************************/
.favoritos{
background: linear-gradient(308deg,rgba(225, 238, 240, 1) 0%, rgba(242, 246, 247, 1) 100%);
    padding:90px 5%;
    overflow:hidden;
}

/*********************************
HEADER
*********************************/
.favoritos-header{
    text-align:center;
    margin-bottom:60px;
}

.favoritos-label{
    display:inline-block;
    background:#a6afcd;
    color:#fff;
    font-size:.875rem;
    padding:4px 12px;
    margin-bottom:15px;
}

.favoritos-header h2{
    font-size:3.875rem;
    line-height:1;
    font-weight:800;
    color:#233263;
    margin-bottom:10px;
}

.favoritos-header h2 span{
    color:#9a70c5;
}

.favoritos-header p{
    font-size:1.375rem;
    color:#233263;
}

.favoritos-header strong{
    font-style:italic;
}

/*********************************
GRID
*********************************/
.favoritos-grid{
    max-width:1400px;
    margin:0 auto 50px;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:40px;
}

/*********************************
CARD
*********************************/
.favorito-card{
    text-align:center;
}

.favorito-img{
    width:100%;
    max-width:380px;
    display:block;
    margin:0 auto 20px;
}

.favorito-card h3{
    font-size:1.75rem;
    line-height:1;
    color:#222;
    font-weight:800;
    margin-bottom:12px;
}

.favorito-card p{
    font-size:1.125rem;
    line-height:1.25;
    color:#666;
    max-width:320px;
    margin:0 auto;
}

/*********************************
BOTON FINAL
*********************************/
.favoritos-footer{
    display:flex;
    justify-content:center;
}

/*********************************
CADA COLCHÓN TIENE SU PROPIO ESTILO
*********************************/
.estilo-propio{
    padding:90px 5%;
    background:#ffffff;
}
.estilo-header{
    text-align:center;
    margin-bottom:70px;
}
.estilo-header h2{
    font-size:4rem;
    line-height:1;
    font-weight:800;
    color:#163b87;
}
.estilo-header h2 span{
    color:#71d9ff;
}
.estilo-header p{
    margin-top:10px;
    font-size:1.375rem;
    color:#163b87;
}
/*********************************
GRID
*********************************/
.estilo-grid{
    max-width:1400px;
    margin:0 auto 60px;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:40px;
}
.estilo-item{
    text-align:center;
}
.estilo-item img{
    width:90px;
    height:90px;
    object-fit:contain;
    margin-bottom:20px;
}
.estilo-item h3{
    font-size:1.375rem;
    line-height:1;
    font-weight:800;
    color:#111;
    margin-bottom:12px;
}
.estilo-item p{
    font-size:1rem;
    line-height:1.25;
    color:#666;
}
/*********************************
BOTÓN
*********************************/
.estilo-footer{
    display:flex;
    justify-content:center;
}

/*********************************
TESTIMONIOS
*********************************/
.testimonios{
    padding:90px 5% 70px;
}
.testimonios h2{
    text-align:center;
    font-size:3rem;
    font-weight:800;
    color:#163b87;
    margin-bottom:50px;
}
.testimonios h2 span{
    color:#72d9ff;
}
.testimonios-grid{
    max-width:1400px;
    margin:auto;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
}
.testimonios-grid img{
    width:100%;
    display:block;
}
/*********************************
DORMIR MEJOR EMPIEZA AQUÍ
*********************************/
.empieza-aqui{
    width:100%;
    min-height:620px;
    display:flex;
    align-items:center;
    padding:0 5%;
    background-image:url('../IMG/colchones-nube.png');
    background-repeat:no-repeat;
    background-size:100%;
    background-position:right bottom;
}
.empieza-contenido{
    max-width:500px;
}
.empieza-contenido h2{
    font-size:3rem;
    line-height:.95;
    color:#163b87;
    font-weight:800;
    margin-bottom:35px;
}
.empieza-contenido h2 span{
    color:#72d9ff;
}

/*=========================================================
CTA
=========================================================*/
.cta{
    background:url("../IMG/fondo-nubes.png") center center/cover no-repeat;
}
.cta-container{
    width:min(1400px,92%);
    margin:auto;
    min-height:380px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:5rem;
}
.cta-left{
    flex:1;
    display:flex;
    justify-content:center;
}
.cta-click{
    position:relative;
    width:420px;
}
.cta-click img{
    width:100%;
    display:block;
}
.btn-cta{
    position:absolute;
    left: 50%;
    bottom: -1.9rem;
    transform:translateX(-50%);
    width:145px;
    height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    color:#fff;
    font-weight:700;
    border-radius:60px;
    background:linear-gradient(#ff8d4a,#ff461f);
    box-shadow:
    inset 0 3px rgba(255,255,255,.4),
    0 5px 10px rgba(0,0,0,.25);
}
.cta-right{
    flex:1;
}
.cta-right h2{
    font-size:4rem;
    line-height:1;
    color:#14397a;
    margin-bottom:1rem;
}
.cta-right h2 span{
    color:#fff;
}
.cta-right p{
    color:#fff;
    font-size:1.5rem;
    max-width:500px;
}
/*=========================================================
NEWSLETTER
=========================================================*/
.footer{
    background:#fff;
}
.footer-news{
    width:min(1400px,92%);
    margin:auto;
    padding:5rem 0;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:4rem;
}
.footer-news-title{
    flex:1;
}
.footer-news-title h2{
    font-size:4rem;
    line-height:1;
    color:#193a7b;
}
.footer-news-title span{
    color:#69d4ff;
}
.footer-news-title p{
    font-size:1.5rem;
}
.footer-news-form{
    flex:1;
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:1rem;
}
.footer-news-form input{
    flex:1;
    min-width:280px;
    height:60px;
    border-radius:40px;
    border:2px solid #bfd2ff;
    padding:0 2rem;
    font-size:1.2rem;
}
.footer-news-form button{
    width:180px;
    border:none;
    border-radius:40px;
    cursor:pointer;
    color:#193a7b;
    font-weight:700;
    background:linear-gradient(#f3f5fb,#cdd7ea);
}
.footer-news-form small{
    width:100%;
    text-align:right;
    color:#777;
}
/*=========================================================
LOGO
=========================================================*/
.footer-logo{
    width:min(1400px,92%);
    margin:auto;
    height:85px;
    border-radius:70px;
    display:flex;
    justify-content:center;
    align-items:center;
    background:linear-gradient(90deg,#44598d,#052764,#3c86e8);
}
.footer-logo img{
    height:52px;
}
/*=========================================================
LINKS
=========================================================*/
.footer-links{
    width:min(1400px,92%);
    margin:auto;
    padding:4rem 0;
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:2rem;
}
.footer-links h4{
    color:#5cc8ff;
    margin-bottom:1rem;
}
.footer-links a{
    display:block;
    margin:.4rem 0;
    color:#1f2c5c;
    text-decoration:none;
}
.footer-social{
    display:flex;
    gap:1rem;
}
.footer-social a{
    width:46px;
    height:46px;
    border-radius:50%;
    border:2px dotted #26467b;
    display:flex;
    align-items:center;
    justify-content:center;
}
.footer-social i{
    color:#1f2c5c;
    font-size:1.25rem;
}
/*=========================================================
BOTTOM
=========================================================*/
.footer hr{
    width:min(1400px,92%);
    margin:auto;
    border:none;
    border-top:2px solid #7fdcff;
}
.footer-copy{
    padding:1.8rem 0 3rem;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:1rem;
}
.footer-copy a{
    color:#193a7b;
    text-decoration:none;
}


/************************
MOBILE
************************/
#mobileMenuBtn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 2.125rem;
    cursor: pointer;
}




@media(max-width:991px) {

    #mainHeader {
        padding: 15px 20px;
        background: rgba(25, 30, 45, .96);
    }

    .menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(25, 30, 45, .96);
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 30px 0;
        display: none;
    }

    .menu.active {
        display: flex;
    }

    .menu-item {
        width: 100%;
        text-align: center;
    }

    .menu-item > a {
        display: block;
        text-align: center;
    }

    .menu-item .submenu {
        position: static;
        width: 100%;
        background: transparent;
        box-shadow: none;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .menu-item.open .submenu {
        display: flex;
    }

    .menu-item .submenu a {
        width: 100%;
        text-align: center;
        padding: 14px 0;
        background: transparent;
        margin: 0;
        border-radius: 0;
    }

    .menu-item .submenu a:hover {
        background: rgba(255, 255, 255, .08);
    }

    .menu.active ~ .header-buy {
        display: flex;
    }

    #mobileMenuBtn {
        display: block;
    }


/************************
HERO
************************/
    .hero {
        background-position:top center;
        margin-top: 5.5rem;
        height: 50vh;
        aspect-ratio: 1920 / 906;
        position: relative;
        background-size: contain;
        background-repeat: no-repeat;
    }


    .hero-buttons {

        left: 50%;
        right: auto;
        bottom: 40px;
        top: auto;
        transform: translateX(-50%);
        width: 90%;
        align-items: center;
    }

/*********************************
POR QUÉ ORMA MOBILE
*********************************/
    .porque-orma {
        padding: 20px 5%;
        flex-direction: column;
        text-align: center;
        gap: 60px;
    }

    .porque-left h2 {
        font-size: 3rem;
    }

    .porque-left p {
        font-size: 1.375rem;
    }

    .porque-left .orma-btn {
        margin: 40px auto 0;
    }

    .porque-right {
        width: 100%;
    }

    .porque-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .porque-info h3 {
        font-size: 1.75rem;
    }

    .porque-info p {
        max-width: 90%;
        margin: auto;
        font-size: 1.125rem;
    }

    .estilo-propio{
        padding:20px 5% 20px;
    }

    .testimonios{
        padding:20px 5% 20px;
    }

    .testimonios-grid {
        grid-template-columns: 1fr;
    }

    .empieza-aqui {
        padding:20px 5% 20px;
        min-height: 400px;
    }

    .descansamos-header h2 {
        max-width: 90%;
        margin: auto;
        font-size: 2rem;
    }

    .descansamos-header p {
        font-size: 1.125rem;
    }

    .descansamos-modelos {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .modelo,
    .modelo-left,
    .modelo-center,
    .modelo-right {
        align-items: center;
        text-align: center;
    }
    .modelo h3 {
        max-width: 100%;
    }
    .modelo p {
        max-width: 100%;
    }
    .encuentra-colchon{
        min-height:340px;
        padding:60px 30px;
        /*
        En móvil mostramos la parte izquierda
        donde está el texto y ocultamos
        la zona de colchones.
        */
        background-position:left center;
    }
    .encuentra-contenido{
        max-width:100%;
        text-align:center;
    }
    .encuentra-colchon h2{
        font-size:2.625rem;
    }
    .encuentra-colchon p{
        font-size:1.125rem;
    }


    .favoritos{
        padding:70px 25px;
    }
    .favoritos-header h2{
        font-size:2.625rem;
    }
    .favoritos-header p{
        font-size:1.125rem;
    }
    .favoritos-grid{
        grid-template-columns:1fr;
        gap:60px;
    }
    .favorito-card h3{
        font-size:1.5rem;
    }
    .favorito-card p{
        font-size:1rem;
    }
    .estilo-header h2{
        font-size:2.625rem;
    }
    .estilo-header p{
        font-size:1.125rem;
    }
    .estilo-grid{
        grid-template-columns:1fr 1fr;
        gap:40px 20px;
    }

    .cta-container{
        flex-direction:column;
        text-align:center;
        padding:2rem 0;
        gap: 1rem;
    }
    .cta-left{
        width:320px;
    }
    .cta-click{
        width:320px;
        height:260px;
        overflow: hidden;
        margin-bottom: 0;
    }
    .cta-right{
        margin-top: 0;
        padding-top: 0;
    }
    .cta-right h2{
        font-size:2.8rem;
    }
    .cta-right p{
        margin:auto;
    }

    .btn-cta {
        bottom: 2.1rem;
    }

    .footer-news{
        flex-direction:column;
        text-align:center;
    }
    .footer-news-form{
        width:100%;
        justify-content:center;
    }
    .footer-news-form input{
        width:100%;
    }
    .footer-news-form button{
        width:220px;
        height:55px;
    }
    .footer-news-form small{
        text-align:center;
    }
    .footer-logo{
        height:70px;
    }
    .footer-logo img{
        height:40px;
    }
    .footer-links{
        width: 100%;
        grid-template-columns:1fr 1fr;
        text-align:center;
        gap: 0;
    }
    .footer-social{
        justify-content:center;
    }
    .footer-copy{
        flex-direction:column;
        gap:.5rem;
    }

    .footer-links > :last-child {
        grid-column: span 2;
    }
}

@media(max-width:600px){
    .estilo-grid{
        grid-template-columns:1fr;
    }
}
