/*****************
* INITIALIZATION *
*****************/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

:root {
    --color-accent: #55d400;
    --color-accent-alt: #63f600;
    scroll-behavior: smooth;
}

ul {
    list-style: none;
}

/* sections with photos as background */
#titulo,
#descripcion,
#servicios,
#ultimo-llamado,
#reservas {
    background-color: #606060; /* color de fondo por si no carga la imagen principal */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

/*******************
* ANIMATION EFFECT *
*******************/

@keyframes aparecer {

    0% {
        opacity: 0;
        transform: translateX(30rem);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }

}

.anim {
    opacity: 0;
}

.in-anim {
    animation: aparecer 1.3s;
    opacity: 1;
}

/*********************************
* USED ACROSS SECTIONS AND PAGES *
*********************************/

html {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: 400;
}

h1 { /* used in page titles */
    font-size: 4rem;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    text-shadow: 0 0 0.8rem rgba(0, 0, 0, 0.75);
    color: white;
}

h2 { /* used in session titles */
    font-size: 3rem;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    text-align: center;
}

#titulo h2,
#ultimo-llamado h2,
#reservas h2 {
    text-shadow: 0 0 0.6rem rgba(0, 0, 0, 0.75);
}

h3 { /* used in session subtitles */
    font-size: 1.5rem;
    text-transform: uppercase;
}

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

hr {
    border: var(--color-accent) 0.25rem solid;
    width: 20%;
}

a.button {
    display: inline-block;
    background-color: var(--color-accent);
    padding: 0.5rem 1.0rem;
    border-radius: 0.5rem;
    color: black;
    font-weight: 700;
    text-transform: uppercase;
}

a.button:hover {
    background-color: var(--color-accent-alt);
}

b {
    font-weight: 700;
}

/****************************************
* USED IN A SINGLE SECTION ACROSS PAGES *
****************************************/

#fijo-superior {
    position: fixed;
    top: 0;
    z-index: 10;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#navegador {
    width: 100%;
    margin-top: 0;
    background-color: rgba(255, 255, 255);
    padding-left: 2rem;
    padding-right: 2rem;
    transition: all 0.4s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
}

#navegador ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

#navegador ul li a {
    font-weight: 700;
}

#navegador ul li a:hover {
    color: var(--color-accent);
}

#navegador .logo {
    height: 8.5rem;
    object-fit: cover;
    transition: all 0.4s ease-in-out;
    padding: 1.5rem;
}

#navegador.scroll-menu .logo { /* when the user scrolls down the screen */
    height: 3.5rem;
    padding: 0.65rem;
}

#navegador .menu-icon {
    display: none;
    width: 1.25rem;
    cursor: pointer;
    transition: transform 0.3s ease-in-out .3s;
    object-fit: cover;
}

/* .toggle-menu is added when the menu is opened in a small device */ 
#navegador.toggle-menu ul {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 1rem;
    gap: 1rem;
    z-index: 10;
    transition: all 0.2s ease-in-out;
}

#navegador.toggle-menu ul li {
    font-size: 1.5rem;
    border-bottom: solid 1px gray;
    width: 100%;
    padding: 0 1rem;
}

#navegador.toggle-menu .menu-icon {
    transform: rotateX(180deg);
    transition: transform 0.3s ease-in-out .3s;
}
/*******************************************************************/

#titulo {
    width: 100%;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 0 5% 3.5rem 5%;
}

#titulo p {
    color: white;
    text-shadow: 0 0 0.2rem rgba(0, 0, 0, 0.75);
    font-size: 150%;
    font-weight: 700;
}

#titulo a.button {
    margin-top: 1.5rem;
}

#banner {
    width: 100%;
    height: 25rem;
    position: relative;
    background-color: black;
}

#banner .dato {
    font-family: Knewave;
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    text-align: center;
    opacity: 0;
    background-position: center;
    background-size: cover;
    font-size: 150%;
    padding: 8%;
}

@keyframes fade-in-out {
    0% {
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    20% {
        opacity: 1;
    }
    25%{
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

#banner .dato:nth-child(1) {
    animation: fade-in-out 20s infinite;
    background-image: url(../assets/fotos/banner-f.jpg);
}

#banner .dato:nth-child(2) {
    animation: fade-in-out 20s infinite 5s;
    background-image: url(../assets/fotos/banner-c.jpg);
}

#banner .dato:nth-child(3) {
    animation: fade-in-out 20s infinite 10s;
    background-image: url(../assets/fotos/banner-e.jpg);
    background-position: bottom;
}

#banner .dato:nth-child(4) {
    animation: fade-in-out 20s infinite 15s;
    background-image: url(../assets/fotos/banner-g.jpg);
}

#banner .dato p {
    color: white;
    text-shadow: 0 0 3rem red;
    text-transform: uppercase;
    font-size: 170%;;
    font-weight: 400;
}

#descripcion {
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 5rem;
    padding: 3rem;
    background-image: linear-gradient(170deg, #2f4f7f, #87ceeb);
}

#descripcion h2 {
    color: white;
}

#descripcion div.mapa {
    width: 100%;
    background-image: url(../assets/iconos/linea-horizontal.png);
    background-size: 100% 100%;
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

#descripcion .tarjeta {
    max-width: 20rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#descripcion .tarjeta:nth-child(1) {
    align-self: self-start;
    margin-right: 3rem;
}

#descripcion .tarjeta:nth-child(2) {
    align-self: self-end;
    margin-left: 3rem;
}

#descripcion .tarjeta:nth-child(3) {
    align-self: center;
    margin-right: 1.5rem;
    margin-left: 1.5rem;
}

#descripcion .tarjeta:nth-child(4) {
    align-self: self-end;
    margin-left: 3rem;
}

#descripcion .tarjeta:nth-child(5) {
    align-self: center;
    margin-right: 1.5rem;
    margin-left: 1.5rem;
}

#descripcion .tarjeta img {
    width: 7rem;
}

#descripcion .tarjeta .content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: white;
}

#descripcion .tarjeta .content h3 {
    text-align: center;
}

#descripcion .tarjeta .content p {
    text-align: justify;
}

#requisitos {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: url(../assets/fotos/requisitos.jpg);
    background-position: center;
    background-size: cover;
    color: white;
    padding: 2rem 8%;
    gap: 2rem;
    position: relative; /* remover */
}

#requisitos::before { /* remover */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Darken the background image by 50% */
  }

#requisitos ul {
    max-width: 44rem;
    width: 100%;
    text-align: left;
    font-weight: 700;
    font-size: 120%;
}

#requisitos ul li {
    position: relative;
    text-indent: 2rem;
    padding: 0.5rem 0;
}

#requisitos ul li::before {
    display: inline-block;
    content: '';
    width: 1.4rem;
    height: 1.4rem;
    background-image: url(../assets/iconos/ok-sign.svg);
    background-size: cover;
    background-position: center;
    margin-right: 0.5rem;
    position: absolute;
    left: 0;
    top: 0.69rem;
}    

#requisitos p {
    max-width: 44rem;
    width: 100%;
    font-size: 75%;
    text-align: justify;
}

#requisitos h2, #requisitos p {
    z-index: 5; /* remover */
}

#misión {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    background-image: linear-gradient(115deg, #95ff4d, white, white, #95ff4d);
    padding: 2rem;
}

#misión .descripcion {
    max-width: 50rem;
    width: 95%;
    text-align: justify;
}

#misión .team {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 1.5rem 0;
}

#misión .team .team-member {
    width: 45%;
    max-width: 20rem;
    text-align: justify;
}

#misión .team .team-member img {
    width: 100%;
    border-radius: 2.5rem 2.5rem 0 0;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

#misión .team .team-member .member-info {
    padding: 0.5rem;
}

#galeria {
    width: 100%;
    display: flex;
}

#galeria div {
    position: relative;
    overflow: hidden;
    width: 25%;
    aspect-ratio: 1 / 1;
}

#galeria div:first-child {
    clip-path: polygon(0% 0%, 50% 0%, 100% 100%, 0% 100%);
    margin-left: 0;
}

#galeria div:not(:first-child):not(:last-child) {
    clip-path: polygon(0% 0%, 50% 0%, 100% 100%, 50% 100%);
    margin-left: -11.5%;
}

#galeria div:last-child {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 50% 100%);
    margin-left: -11.5%;
}

#galeria div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#banner-instagram {
    background: radial-gradient( circle at 30% 30%,
        #feda75,
        #fa7e1e,
        #d62976,
        #962fbf,
        #4f5bd5
    );
    padding: 3rem;
}

#banner-instagram p {
    text-transform: uppercase;
    font-family: Knewave;
    font-size: 200%;
    color: white;
    margin: 0 auto;
    text-align: center;
    width: 95%;
}

#mapa {
    height: 25rem;
    width: 100%;
}

#mapa iframe{
    height: 100%;
    width: 100%;
    border: none;
}

#ultimo-llamado {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 2rem;
    align-items: center;
    height: 80vh;
    text-align: center;
    width: 100%;
    padding: 0 5% 2rem 5%;
}

#ultimo-llamado h2 {
    color: white;
}

#barra-inferior {
    width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

#barra-inferior a {
    width: 30%;
    max-width: 15rem;
}

#barra-inferior p {
    max-width: 60rem;
    text-align: center;
    font-size: 80%;
}

a.wa-float {
    position: fixed;
    width: 3.75rem;
    height: 3.75rem;
    bottom: 2.5rem;
    right: 2.5rem;
    background-color: #25d366;
    color: #FFF;
    border-radius: 3rem;
    text-align: center;
    font-size: 2rem;
    box-shadow: .125rem .125rem .2rem #999;
    z-index: 100;
}

i.wa-float {
    margin-top: 1rem;
}

/**************************
* SCREEN SIZE ADJUSTMENTS *
**************************/

@media (max-width: 848px) {

    /* break it into two lines */
    #medios-pago {
        flex-direction: column;
        gap: 1.5rem;
    }
    #medios-pago .lista {
        gap: 2rem;
    }

}

@media (max-width: 770px) {

    /* reduce font sizes */
    h1 {
        font-size: 3rem;
    }
    h2 {
        font-size: 2.5rem;
    }
    h3 {
        font-size: 1.35rem;
    }
    html {
        font-size: 0.92rem;
    }

}

@media (max-width: 650px) {

    /* reduce font sizes */
    h1 {
        font-size: 2.25rem;
    }
    h2 {
        font-size: 2.08rem;
    }
    h3 {
        font-size: 1.215rem;
    }
    html {
        font-size: 0.8464rem;
    }

    /* make it sticky to top */
    #navegador {
        border-radius: 0;
        width: 100%;
        padding: 1rem;
        margin-top: 0;
        justify-content: space-between;
    }
    #navegador ul {
        gap: 1rem;
    }
    #navegador .logo {
        order: -1;
    }

}

@media (max-width: 580px) {

    /* move it closer to edge of screen*/
    a.wa-float {
        bottom: 2rem;
        right: 2rem;
    }

    #descripcion div.mapa {
        background-image: url(../assets/iconos/linea-vertical.png);
    }

}

@media (max-width: 550px) {

    /* make menu collapsable */
    #navegador {
        flex-wrap: wrap;
        gap: 0;
        padding: 0.5rem 1rem;
    }
    #navegador ul {
        display: none;
    }
    #navegador .menu-icon {
        display: block;
    }

}

@media (max-width: 512px) {

    /* make gallery vertical */
    #galeria {
        flex-direction: column;
    }
    
    #galeria div {
        width: 100%;
    }
    
    #galeria div:first-child {
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 50%);
        margin-left: 0;
        margin-top: 0;
    }
    
    #galeria div:not(:first-child):not(:last-child) {
        clip-path: polygon(0% 0%, 100% 50%, 100% 100%, 0% 50%);
        margin-left: 0;
        margin-top: -49%;
    }
    
    #galeria div:last-child {
        clip-path: polygon(0% 0%, 100% 50%, 100% 100%, 0% 100%);
        margin-left: 0;
        margin-top: -49%;
    }

    /* reduce font sizes */
    h1 {
        font-size: 2.025rem;
    }
    h2 {
        font-size: 1.872rem;
    }
    h3 {
        font-size: 1.0125rem;
    }
    html {
        font-size: 0.76176rem;
    }

}

@media (max-width: 408px) {

    /* break it into 3 lines */
    #medios-pago {
        gap: 0.5rem;
        align-items: start;
    }
    #medios-pago .lista {
        flex-direction: column;
        gap: 0.5rem;
        align-items: start;
    }

}

@media (max-width: 360px) {

    /* move it closer to edge of screen*/
    a.wa-float {
        bottom: 1.5rem;
        right: 1.5rem;
    }

}