*{
    margin:0;
    box-sizing: border-box;
}

body {
     font-family: "Montserrat", sans-serif;
}

.container {
    /* background-color: crimson; */
    max-width: 1600px;
    width: 100%;
    margin-inline: auto;
    overflow: hidden;
}

.nav {
    height: 300px;
    display: flex;
    /*align-items: center;*/
    justify-content: space-between;
    --url-menu: url("../assets/menu.svg");
    --opacity-menu: 0;
    --transform-menu: translateY(-120%);
    --pointer-menu: none;
}

.nav:has([id="menu"]:checked){
    --url-menu: url("../assets/close.svg");
    --opacity-menu: 1;
    --transform-menu: translate(0);
    --pointer-menu: unset;
}

.nav__logo {
    width: 40%;
    max-width: 160px;
    opacity: none;
    /*background: rgba(0,0,0,0.3);*/
}

.nav__img {
    display: block;
    max-width: 150%;
    margin: 0 auto;
    object-fit: cover;
}

.nav__menu {
    width: 50%;
    position: absolute;
    top: 55px;
    right: 5%;
    left: auto;
    /*background-color: beige;*/
    /*inset-inline: 0;*/
    padding: 20px 5%;
    /*background-color: white;
    background-color: beige;*/
    pointer-events: var(--pointer-menu);
    opacity: var(--opacity-menu);
    transition: .8s opacity, transform .8s;
    transform: var(--transform-menu);
    background: linear-gradient(0deg, rgba(0,0,0,0.35), rgba(0,0,0,0.35));
}

.nav__links {
    list-style: none;
    padding: 0;
    display:flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 20px;
}

.nav__link {
    color: #100606;
    text-decoration: none;
}

.nav__link:hover {
    /*text-decoration: underline;*/
    color: #fff;
}

.nav__buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.btn {
    text-align: center;
    padding: 1rem 2rem;
    background-color: #e0dcdc;
    text-decoration: none;
    border-radius: 4px;
    color: #000;
    min-width: max-content;
    width: 100%;
    border: 1px solid transparent;
}

.btn--black {
    background-color: black;
    color:white;
}

.btn--white {
    background-color: white;
    border-color: black;
}

.nav__label {
    display: block;
    width: 40px;
    height: 40px;
    background-image: var(--url-menu);
    background-size: contain;
    background-position: center;
    cursor: pointer;
    transition: background-image .4s;
}

[id="menu"] {
    display: none;
}

/* Pagina Principal*/

.hero {
    position: relative;
    width: 100%;
    max-width: 1200;
    margin: 0 auto;
    overflow: hidden;
}

.hero__img {
    display: block;
    /*max-width: 80%;*/
    width: 100%;
    height: 900px;
    margin: 0 auto;
    object-fit: cover;
    opacity: 0.50;
}


.hero__overlay {
  position: absolute;
  inset: 0;                    /* top:0; right:0; bottom:0; left:0 */
  display: flex;               /* centra el contenido */
  padding: 1.5rem;
  z-index: 1;                  /* asegura que quede encima */
  color: #fff;
  /* Fondo semitransparente opcional para mejorar contraste */
  /*background: linear-gradient(0deg, rgba(0,0,0,0.35), rgba(0,0,0,0.35));*/
}

.hero__overlay h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 3rem);
}

.hero__overlay p {
  margin: 0 0 1rem;
}

.hero__overlay button {
  background: #2b6cb0;
  border: 0;
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
}

.hero__welcome {
    height: 15%;
    display: flex;
    flex-direction: column; 
    margin: 6rem;
    margin-top: 350px;
    padding: 2rem 2rem;
}

.hero__overlay2 {
  position: absolute;
  inset: 0;                    /* top:0; right:0; bottom:0; left:0 */
  display: flex;               /* centra el contenido */
  z-index: 1;                  /* asegura que quede encima */
  color: #000;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /*background-color: #2b6cb0;*/
  /* Fondo semitransparente opcional para mejorar contraste */
  background: linear-gradient(0deg, rgba(0,0,0,0.20), rgba(0,0,0,0.20));
}

.hero__overlay3 {
  position: absolute;
  inset: 0;                    /* top:0; right:0; bottom:0; left:0 */
  display: flex;               /* centra el contenido */
  z-index: 1;                  /* asegura que quede encima */
  color: #fff;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /*background-color: #2b6cb0;*/
  /* Fondo semitransparente opcional para mejorar contraste */
  /*background: linear-gradient(0deg, rgba(0,0,0,0.35), rgba(0,0,0,0.35));*/
}

.hero__main {
    padding: 30px 0px;
    display: flex;
    flex-direction: column;
    gap: 4.5rem;
}

.hero__title {
    font-size: 2.5rem;
}

.hero__paragraph {
    margin: 2rem 0;
    line-height: 1.8rem;
}

.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;

}

.hero__icon {
    vertical-align: top;
}


.hero__img {
    width: 100%;
}

/* SecciÃ³n de about*/

.about {
    padding: 90px 0;
}

.about__title {
    font-size: 2.5rem;
}

.about__paragraph {
    margin-top: 1.5rem;
    line-height: 1.6;
    font-size: 1.5rem;
}

.cards {
    margin-top: 2.5rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.cards__article {
    width: 250px;
    max-width: 500px;
    flex-grow: 1;
    display: flex;
    gap: 1.5rem;
}

.cards__figure {
    width: 40px;
    height: 40px;
    background-color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cards__text {
    width: 50%;
    flex-grow: 1;
}

.cards__title {
    font-size: 1.3rem;
    margin-bottom: .8rem;
}

.cards__paragraph {
    line-height: 1.8;
}

/* cta*/

.cta {
    text-align: center;
    background-color: #000;
    color: white;
    border-radius: 10px;
    padding: 2rem 2.5rem;
}

.cta__title {
    font-size: 2rem;
    font-weight: 400;
}

.cta__paragraph {
    line-height: 1.8;
    margin: .9rem 0;
    color: #94a3b8;
}

.cta__btn {
    display: inline-block;
    color: #000;
    background-color: white;
    text-decoration: none;
    padding: .7rem 1.4rem;
    border-radius: 10px;
}

.footer {
    padding: 40px 0;
    text-align: center;
}

/* configuraciÃ³n cuando llegue a tamaÃ±o de pantalla < 768 px*/

@media (width < 768px){   
    .nav {
        height: 350px;
    }
    .nav__menu {
        width: 80%;
        position: absolute;
        top: 60px;
        right: 5%;
        left: auto;
        padding: 40px 5%;
        background-color: #000;
        pointer-events: var(--pointer-menu);
        opacity: var(--opacity-menu);
        transition: .8s opacity, transform .8s;
        transform: var(--transform-menu);
        background: linear-gradient(0deg, rgba(0,0,0,0.35), rgba(0,0,0,0.35));
    }

    .hero__welcome {
        height: 10%;
        display: flex;
        flex-direction: column; 
        margin: 3rem;
        margin-top: 350px;
        padding: 2rem 2rem;
        overflow: hidden;
    }

    .hero__main {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
 
    .about__title {
        font-size: 1.5rem;
    }

    .about__paragraph {
        margin-top: 0.5rem;
        line-height: 1.6;
        font-size: 1rem;
    }
}
