h1,
h2,
h3 {
    font-weight: 100
}

header,
main {
    background-color: var(--bg1-color)
}

.btn,
.toggle-menu.open {
    background-color: var(--orange)
}

*,
input,
textarea {
    font-family: var(--mainfont)
}

* {
    box-sizing: border-box;
    margin: 0;
    scroll-behavior: smooth;
    font-family: var(--secondfont);
    overflow-wrap: break-word
}

html, body {
    width: 100%;
    overflow-x: hidden
}

:root {
    --bg1-color: #f2efef;
    --bg2-color: black;
    --yellow: #fddb02;
    --orange: #ff851a;
    --red: #fd2d01;
    --blue: #1affe5;
    --white: white;
    --mainfont: "Song Myung", serif;
    --secondfont: "Solway", serif;
    --h1: clamp(2rem, 5vw + 1rem, 3.5rem);
    --h2: clamp(1.2rem, 2vw + 1rem, 3rem);
    --h3: clamp(1rem, 1vw + 1rem, 2rem);
    --p: clamp(1rem, 0.5vw + 0.9rem, 1.15rem)
}

h1 {
    font-size: var(--h1)
}

h2 {
    font-size: var(--h2)
}

h3 {
    font-size: var(--h3)
}

input,
p,
textarea {
    font-size: var(--p)
}

img {
    width: 100%
}

.text-center {
    text-align: center
}

.text-white {
    color: var(--white)
}

.btn {
    display: inline-block;
    color: var(--white) !important;
    padding: 8px;
    border-radius: 12px;
    text-decoration: none;
    transition: transform .2s;
    margin-top: auto
}

.btn-var2,
.btn-var3 {
    gap: 4px;
    padding: 8px 12px;
    border-radius: 12px;
    transition: .2s;
    white-space: normal;
    min-width: 0;
    display: flex;
    color: #000;
    word-wrap: break-word;
    text-decoration: none
}

.btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 5px var(--orange)
}

.btn-var2 {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-color: var(--yellow)
}

.btn-var3,
nav {
    background-color: var(--white)
}

.btn-var3 {
    flex-direction: row;
    justify-content: center;
    align-items: center
}

.padding,
form {
    padding: 1.5rem
}

.btn-var2:hover,
.btn-var3:hover,
.contact-link:hover,
.toggle-menu:hover {
    transform: scale(1.05)
}

.btn-img {
    width: 25px
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem
}

header,
nav {
    align-items: center;
    display: flex
}

.special {
    font-size: 1.7rem
}

header {
    justify-content: center
}

nav {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    justify-content: space-between;
    padding: 14px 20px;
    border-radius: 25px;
    width: 95%;
    max-width: 1200px;
    box-shadow: 0 5px 5px rgba(0, 0, 0, .405);
    z-index: 1000;
    opacity: 0;
    transition: transform .4s ease-in-out, opacity .4s ease-in-out
}

nav.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0)
}

.nav-items {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 12px;
    flex-direction: row;
    position: static;
    background-color: transparent;
    padding: 0;
    margin: 0
}

.nav-item {
    text-decoration: none;
    color: #000;
    font-size: clamp(.9rem, 2vw, 1rem);
    transition: color .3s;
    white-space: nowrap;
    padding: 8px 12px
}

.footer-nav-item:hover,
.nav-item:hover {
    color: var(--orange)
}

.toggle-menu {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    padding: 4px;
    border: none;
    background-color: var(--bg1-color);
    box-shadow: 0 4px 5px rgba(0, 0, 0, .477);
    cursor: pointer;
    transition: transform .3s, background-color .3s;
    display: none
}

.btn-icon {
    width: 100%;
    transition: transform .4s
}

.toggle-menu.open .btn-icon {
    transform: rotate(180deg)
}

.nav-img {
    width: 150px;
    flex-shrink: 0
}

.form-container,
.slogan-content {
    margin-left: auto;
    margin-right: auto
}

.cardV1,
.footer-container,
.legend {
    text-align: center
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden
}

.hero-img {
    object-fit: cover;
    object-position: center;
    background-size: cover;
    height: 100%;
    width: 100%;
    filter: brightness(.5);
    position: absolute;
    top: 0;
    left: 0
}

.hero-contain {
    position: absolute;
    color: var(--white);
    width: calc(100% - 100px);
    max-width: 1200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "text logo";
    justify-items: center;
    align-items: center;
    gap: 2rem
}

.hero-text {
    grid-area: text;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word
}
.hero-main-title{
    font-weight: 450;
}

.hero-main-subtitle{
    font-weight: 100;
}
.hero-logo {
    width: 100%;
    max-width: 500px;
    align-self: center
}

.CTA-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    grid-area: logo;
    width: 100%
}

@media(max-width:1024px) {
    .hero-contain {
        width: calc(100% - 50px)
    }

    .hero-logo {
        max-width: 350px
    }

    .cardv2 {
        width: 100%;
        max-width: 350px
    }
}

@media(max-width:768px) {
    .hero-contain {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        grid-template-areas: "text" "logo";
        width: calc(100% - 40px);
        gap: 1.5rem
    }

    .hero-logo {
        max-width: 300px
    }

    h1,
    h2 {
        text-align: center
    }

    .CTA-container {
        width: 100%
    }

    .btn-var2,
    .btn-var3 {
        font-size: .9rem;
        padding: 10px
    }
}

@media(max-width:480px) {
    .hero-contain {
        width: calc(100% - 30px);
        top: 48%
    }

    .hero-logo {
        max-width: 250px
    }

    .CTA-container {
        gap: .8rem
    }

    .btn-var2,
    .btn-var3 {
        font-size: .85rem;
        padding: 8px;
        white-space: nowrap
    }

    .btn-img {
        width: 18px
    }
}

.cardV1,
form {
    display: flex;
    background-color: var(--white);
    gap: 1rem
}

.cardV1 {
    width: 300px;
    height: 450px;
    flex-direction: column;
    box-shadow: 0 4px 5px rgba(0, 0, 0, .416);
    justify-content: center;
    align-items: center;
    border-radius: 25px;
    padding: 1rem
}

.card-icon {
    width: 150px
}

.formulario {
    background: linear-gradient(180deg, var(--bg1-color)50%, var(--bg2-color));
    margin-top: 25px
}

.form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "text form";
    width: 85%;
    max-width: 1200px;
    align-items: center;
    gap: 2rem;
    padding: 2rem 1rem
}

.form-text {
    grid-area: text;
    padding: 1rem
}

form {
    grid-area: form;
    flex-direction: column;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .1)
}

input,
textarea {
    border: 2px solid var(--orange);
    border-radius: 12px;
    width: 100%;
    padding: .75rem;
    transition: border-color .3s
}

input:focus,
textarea:focus {
    outline: 0;
    border-color: var(--red);
    box-shadow: 0 0 5px rgba(253, 45, 1, .3)
}

textarea {
    resize: vertical;
    min-height: 150px
}

@media (max-width:1024px) {
    nav {
        padding: 12px 16px;
        width: 96%
    }

    .nav-items {
        gap: 3rem
    }

    .nav-img {
        width: 130px
    }

    .nav-item {
        padding: 6px 10px
    }

    .form-container {
        width: 90%;
        gap: 1.5rem;
        padding: 1.5rem 1rem
    }

    form {
        padding: 1.25rem
    }
}

@media (max-width:768px) {
    nav {
        padding: 12px 14px;
        width: 97%;
        border-radius: 20px;
        flex-wrap: wrap
    }

    .nav-img {
        width: 110px;
        order: 1
    }

    .toggle-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        order: 2;
        width: 45px;
        height: 45px
    }

    .nav-items {
        order: 3;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 10px;
        border-radius: 0 0 20px 20px;
        padding: 12px 0;
        box-shadow: 0 5px 5px rgba(0, 0, 0, .405);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height .4s ease-in-out, opacity .4s ease-in-out, padding .4s ease-in-out
    }

    .nav-items.open {
        max-height: 300px;
        opacity: 1;
        padding: 12px 0
    }

    .nav-item {
        width: 100%;
        padding: 12px 20px;
        margin: 0;
        text-align: left;
        border-bottom: 1px solid #f2efef
    }

    .nav-item:last-child {
        border-bottom: none
    }

    .form-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        grid-template-areas: "text" "form";
        width: 95%;
        gap: 1.5rem;
        padding: 1rem
    }

    form {
        padding: 1rem
    }
}

@media (max-width:480px) {
    nav {
        padding: 10px 12px;
        width: 98%;
        border-radius: 18px;
        top: 8px
    }

    .nav-img {
        width: 90px
    }

    .toggle-menu {
        width: 40px;
        height: 40px
    }

    .nav-items {
        margin-top: 8px;
        border-radius: 0 0 18px 18px
    }

    .nav-item {
        padding: 10px 16px;
        font-size: .9rem
    }

    .form-container {
        width: 100%;
        gap: 1rem;
        padding: 1rem .5rem
    }

    .form-text {
        padding: .5rem
    }

    form {
        padding: 1rem .75rem
    }

    input,
    textarea {
        padding: .6rem;
        font-size: 1rem
    }

    textarea {
        min-height: 120px
    }

    .cardv2 {
        width: 100%;
        max-width: 300px;
        height: auto;
        min-height: 450px
    }

    .servicios-cards {
        padding: 1rem 0.5rem
    }

    .flex-container {
        gap: 1rem;
        padding: 0 0.5rem
    }

    .servicio-description {
        text-align: left;
        word-wrap: break-word;
        overflow-wrap: break-word
    }
}

.slogan {
    background-image: url(../images/FondoSlogan.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh
}

.slogan-title {
    margin-bottom: 1.5rem;
}

.slogan-content {
    width: 85%
}

.container {
    display: grid;
    grid-template-columns: repeat(3, auto);
    grid-template-rows: repeat(3, 150px);
    gap: 10px
}

.box1 {
    grid-column: 1/2;
    grid-row: 1/2
}

.box2 {
    grid-column: 2/3;
    grid-row: 2/3
}

.box3 {
    grid-column: 3/4;
    grid-row: 3/4
}

.box4 {
    grid-column: 4/4;
    grid-row: 4/4
}

.slogan-items {
    font-size: var(--h2)
}

@media (max-width:900px) {
    .container {
        grid-template-columns: repeat(2, 1fr)
    }

    .box1 {
        grid-column: 1;
        grid-row: 1
    }

    .box2 {
        grid-column: 2;
        grid-row: 2
    }

    .box3 {
        grid-column: 1;
        grid-row: 3
    }

    .box4 {
        grid-column: 2;
        grid-row: 4
    }
}

@media (max-width:600px) {
    .container {
        grid-template-columns: 1fr
    }

    .box {
        grid-column: auto;
        grid-row: auto
    }
}

.contacto {
    background: linear-gradient(180deg, var(--bg2-color)40%, gray);
    padding-bottom: 2rem;
    padding-top: 2rem
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1rem;
    margin-bottom: 2rem
}

.contact-logo {
    width: 250px;
    height: 250px
}

@media(max-width:768px) {
    .contact-logo {
        width: 150px;
        height: 150px
    }

    .cardv2 {
        width: 100%;
        max-width: 320px;
        height: auto;
        min-height: 450px
    }

    .servicios-cards {
        padding: 1.5rem 0.75rem
    }

    .flex-container {
        gap: 1.5rem;
        padding: 0 0.75rem
    }
}

.contact-item {
    flex: 1
}

.contact-link {
    text-decoration: none;
    display: inline-block;
    color: var(--white);
    transition: transform .2s
}

.contact-btn {
    width: 50%;
    justify-self: center;
    font-size: var(--h3)
}

footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    background-color: #323232;
    width: 100%;
    padding: 3rem;
    gap: 2rem
}

.footer-container {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center
}

.footer-logo {
    width: 200px;
    margin-bottom: 1rem
}

.footer-contact-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    justify-content: center
}

.footer-contact-icon {
    width: 40px;
    height: 40px
}

.footer-contact-link {
    text-decoration: none;
    color: var(--white);
    display: flex;
    gap: .8rem;
    transition: transform .2s, color .2s
}

.footer-contact-link:hover {
    transform: translateX(5px);
    color: var(--orange)
}

.footer-contact-link p {
    margin: 0;
    font-size: var(--p)
}

.footer-title {
    color: var(--white);
    margin-bottom: 1.5rem;
    width: 100%
}

.footer-nav-item {
    text-decoration: none;
    color: var(--white);
    font-size: var(--p);
    transition: color .2s
}

.footer-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 2rem
}

.legend {
    background-color: #1c1c1c;
    padding: 1rem
}

.vridLink {
    text-decoration: none;
    color: var(--white);
    font-family: var(--secondfont)
}

.servicio {
    display: grid;
    grid-template-rows: auto auto;
    grid-template-areas:
        "banner"
        "description";
    justify-items: center;
    align-items: center;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.servicio-banner {
    grid-area: banner;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.servicio-text {
    grid-area: description;
}

.servicio-img {
    width: 250px;
}

.servicio-title {
    font-weight: bold;
}

.servicio-title2 {
    margin: 8px;
    text-align: center;
}

.servicio-description {
    text-align: center;
}

.servicios-cards {
    padding: 2rem;
}

.cardv2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--white);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.433);
    gap: 1rem;
    width: 350px;
    height: 500px;
}

.cardv2-title {
    font-size: var(--h3);
}

.cardv2-price {
    font-size: var(--p);
    background-color: var(--orange);
    padding: 0.5rem;
    border-radius: 12px;
    color: var(--white);
    font-weight: bold;
}

.cardv2-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cardv2-item {
    font-size: var(--p);

}

.cardv2-item::marker {
    content: "✅";
}

.cardv2-btn{
    width: 100%;
    background-color: var(--red);
    text-align: center;
    padding: 0.5rem;
    border-radius: 12px;
    color: var(--white);
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.2s ease-in-out;
    margin-top: auto;
}

.cardv2-btn:hover{
    transform: scale(1.05);
}
.yellow{
    background-color: var(--yellow);
}
.text-dark{
    color: var(--bg2-color);
}
.blue{
    background-color: var(--blue);
}

.advise{
    font-size: 12px;
    justify-self: center;
}
@media(min-width:1080px) {
    .servicio {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "banner description";
    }

    .servicio-img {
        width: 300px;
    }

    .servicio-description {
        text-align: start;
    }
}