/* MOBILE FIRST */

/* IMPORTS */

@font-face {
    font-family: Ysabeau;
    src: url(fonts/YsabeauOffice-Regular.ttf);
}


/* REGLAS GENERALES */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    color: #ddd;
    font-family: 'Ysabeau', 'Times New Roman', 'Arial';
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #1e2025;
}

section {
    padding-top: 3rem;
}

h2 {
    font-size: 1.6rem;
    font-weight: bold;
    padding-bottom: 1rem;
}

h3 {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: bold;
    padding-bottom: 0.2rem;
}

p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.6;
}

ul {
    list-style-type: none;
    padding: 0;
}

a {
    display: block;
    width: 100%;
    padding: 0.3rem 0.5rem;
    text-decoration: none;
    color: #ddd;
    cursor: pointer;
}

img {
    width: 100%;
}

img.simbolo {
    display: inline-block;
    position: relative;
    top: -2px;
    width: 20px;
    height: 20px;
}

body > svg {
    display: none;
}


/* HEADER */

header {
    position: fixed;
    padding: 1rem 0.8rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    background-color: #18181b;
    z-index: 2;
}

.h-flex-item {
    width: 40%;
}

nav {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

nav .icon-menu {
    width: 20px;
    height: 20px;
    fill: currentColor;
    color: inherit;
    cursor: pointer;
}

nav ul.menu-mobile {
    position: absolute;
    top: 20px;
    margin-bottom: 0;
    max-height: 0;
    transition: max-height 1s ease-out;
    overflow: hidden;
    background-color: #18181b; 
}

nav ul.menu-desktop {
    display: none;
}

nav ul li {
    border-top: solid 1px #ddd;
}

nav ul li:first-child {
    border-top-width: 0;
}

nav ul li:hover,
nav ul li:hover a {
    color: #18181b;
    background-color: #ddd;
}

.visible {
    max-height: 200px !important;
}

.desaparece {
    display: none;
}


/* MAIN */

main {
    background-color: #1e2025;
    padding-bottom: 2rem;
}

main section.introduccion {
    padding-top: 5rem;
}

.contenedor-banner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    background-color: black;
}

.contenedor-video {
    position: relative;
    aspect-ratio: 16/9; /* asi no me aparecen barras negras en el iframe */
    width: 100%;
    overflow: hidden;
}

iframe {
    width: 100%;
    height: 100%;
}

.protector-video,
.thumbnail-video {
    position: absolute;
    top: 1px;
    left: 0;
    width: 100%;
    height: 100%;
}

.thumbnail-video {
    background-image: url('../img/thumbnail.webp');
    background-size: cover;
}

.contenedor-bienvenida {
    display: none;
    background-image: url('../img/fondo_banner.webp');
    background-size: cover;
}

.contenedor-boton-whatsapp {
    position: fixed;
    width: 40px;
    height: 40px;
    bottom: 2rem;
    right: 5px;
    z-index: 2;
}

.contenedor-boton-whatsapp a {
    padding: 0;
}

.contenedor-boton-whatsapp img {
    width: 100%;
    border-radius: 0.5rem;
}

.contenedor-intro-texto {
    padding: 2rem 1rem 0 1rem;
    text-align: left;
}

.servicios h2,
.servicios > p {
    padding-left: 1rem;
    padding-right: 1rem;
}

.contenedor-flex {
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
}

.s-flex-item:nth-child(2),
.s-flex-item:nth-child(3) {
    padding: 1.5rem 1rem;
    background-color: #2b2b2b;
}

.ultimo {
    display: none;
}

#carouselFade .carousel-inner {
    height: 0;
    padding-bottom: 50%; /* relacion de aspecto (2:1) */
  }
  
#carouselFade .carousel-item {
    position: absolute !important; /* lo pide Bootstrap */
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  }
  
#carouselFade .carousel-item img {
    height: 100%;
    object-fit: cover;
  }

.s-flex-item img.simbolo {
    margin-right: 0.4rem;
}

main section.tamaños {
    padding-left: 1rem;
    padding-right: 1rem;
}

.tamaños h3 {
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

#carouselFade3 .carousel-inner {
    min-height: 300px;
    padding-bottom: 100%; /* relacion de aspecto (2:1) */
}
  
#carouselFade3 .carousel-item {
    position: absolute !important; /* lo pide Bootstrap */
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
  
#carouselFade3 button.carousel-control-next,
#carouselFade3 button.carousel-control-prev {
    height: fit-content;
    width: auto;
    top: 60%;
}

#carouselFade3 ul {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin-bottom: 0.2rem;
}

#carouselFade3 ul li {
    font-size: 0.9rem;
}


#carouselFade3 ul li span {
    font-size: 0.8rem;
}

#carouselFade3 .contenedor-flex > img {
    width: 75%;
    margin: 0 12.5%; /* para centrar la imagen */
    height: 60%;
    object-fit: cover;
}


/* FOOTER */

footer {
    padding: 1rem;
    background-color: #18181b;  
}

footer .contenedor-flex {
    text-align: center;
}

.f-flex-item {
    margin-bottom: 2rem;
}

.f-flex-item p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.f-flex-item div {
    width: 100%;
    margin-bottom: 1rem;
}

.f-flex-item div svg {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    fill: currentColor;
    color: inherit;
}

.f-flex-item div:last-of-type svg {
    margin-left: 1.8rem;
}

.f-flex-item form {
    display: grid;
    column-gap: 10%;
    grid-template-columns: 45% 45%;
    grid-template-rows: 9;
    justify-items: center;
}

form .grid-item-w-100 {
    grid-column: 1 / 3;
    width: 100%;
}

label {
    display: block;
    text-align: left;
}

input,
textarea {
    width: 100%;
    border: 0;
    border-bottom: solid 2px white;
    background-color: inherit;
    font-size: 0.9rem;
}

input:focus,
textarea:focus {
    outline: none;
}

form button {
    color: #1e2025;
    background-color: white;
    border-radius: 1rem;
    font-weight: bold;
}

form .error {
    margin-top: 0.2rem;
    font-size: 0.8rem;
    color: #a00;
    text-align: left;
}

form .recaptcha-container {
    margin: 1rem 0;
    overflow: hidden;
}

form .recaptcha-container .error {
    margin-top: 0.2rem;
    color: #d00;
}

.fondo-alerta {
    position: fixed;
    bottom: 1px;
    height: 100vh;
    width: 100vw;
    background-color: black;
    opacity: 0;
    z-index: -2;
    transition: opacity 0.5s;
}

.alerta {
    position: fixed;
    bottom: 35%;
    width: 90%;
    padding: 2rem 0 0.5rem 0;
    margin: 0 1rem;
    text-align: center;
    border-radius: 0.2rem;
    border: solid 1px #ddd;
    color: #ddd;
    background-color: #2b2b2b;
    opacity: 0;
    z-index: -2;
    transition: opacity 0.5s;
}

.alerta h4 {
    font-size: 2rem;
    font-weight: bold;
}

.alerta p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.alerta button {
    padding: 0.2rem 0.5rem;
    margin-right: 0.5rem;
    float: right;
    border-radius: 1rem;
    font-weight: bold;
    color: #1e2025;
    background-color: white;
}



@media screen and (min-width: 500px) {
    
    /* REGLAS GENERALES */

    section {
        padding-top: 5rem;
    }

    h2 {
        font-size: 2.2rem;
        padding-bottom: 1.5rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    p {
        font-size: 1.2rem;
    }

    a {
        padding: 0.5rem 0.8rem;
    }

    img.simbolo {
        top: -6px;
        width: 30px;
        height: 30px;
    }

    /* HEADER */

    header {
        padding: 1.5rem 1rem;
    }

    .h-flex-item {
        width: auto;
    }

    .h-flex-item img {
        max-width: 300px;
        min-width: 120px;
    }

    nav {
        margin-left: 2rem;
    }
    
    nav .icon-menu,
    nav ul.menu-mobile {
        display: none;
    }

    nav ul.menu-desktop {
        position: relative;
        display: flex;
        top: 10px;
    }

    nav ul li {
        border-top-width: 0;
    }


    /* MAIN */

    main section.introduccion {
        padding-top: 7rem;
    }

    .contenedor-bienvenida {
        display: block;
        position: relative;
        width: 60%;
        min-width: 205px
    }

    .fondo-bienvenida {
        width: 100%;
        height: 100%;
        background-color: black;
        opacity: 0.5;
    }

    .bienvenida {
        position: absolute;
        top: 40%;
        left: 10%;
        font-size: 2.3rem;
        z-index: 1;
    }

    .contenedor-boton-whatsapp {
        width: 60px;
        height: 60px;
    }

    .contenedor-intro-texto {
        padding: 4rem 1.5rem 0 1.5rem;
    }

    .servicios h2,
    .servicios > p {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .contenedor-flex {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .s-flex-item {
        width: 50%;
    }

    .s-flex-item:first-child {
        border-radius: 0.5rem 0 0 0;
    }

    .s-flex-item:nth-child(2) {
        border-radius: 0 0.5rem 0 0;
    }

    .s-flex-item:nth-child(3) {
        border-radius: 0 0 0 0.5rem;
    }

    .s-flex-item:last-child {
        border-radius: 0 0 0.5rem 0;
    }
    
    .s-flex-item h3 {
        font-size: 1.2rem
    }

    .s-flex-item p {
        font-size: 1rem;
    }

    .ultimo {
        display: block;
    }

    #carouselFade button.carousel-control-next,
    #carouselFade button.carousel-control-prev,
    #carouselFade span {
        display: none;
    }

    #carouselFade,
    #carouselFade .carousel-inner,
    #carouselFade2,
    #carouselFade2 .carousel-inner {
        height: 100%;
    }
      
    #carouselFade2 .carousel-item {
        position: absolute !important; /* lo pide Bootstrap */
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
    }
      
    #carouselFade2 .carousel-item img {
        height: 100%;
        object-fit: cover;
    }

    main section.tamaños {
        padding-left:  1.5rem;
        padding-right: 1.5rem;
    }

    .tamaños #carouselFade3 .carousel-inner {
        min-height: 0;
        padding-bottom: 50%;
    }
    
    #carouselFade3 .carousel-item .contenedor-flex {
        justify-content: space-around;
    }

    #carouselFade3 .descripcion-caja h3 {
        margin-bottom: 2rem;
    }

    #carouselFade3 .descripcion-caja li {
        font-size: 1rem;
    }

    #carouselFade3 .descripcion-caja span {
        font-size: 1.2rem;
    }

    #carouselFade3 .contenedor-flex > img {
        width: 50%;
        margin: 0;
    }

    #carouselFade3 button.carousel-control-next {
        top: 50%;
    }

    #carouselFade3 button.carousel-control-prev {
        top: 50%;
        left: 38%;
    }


    /* FOOTER */
    
    footer {
        padding: 3rem 1.5rem 1rem 1.5rem;
    }

    .f-flex-item {
        width: 50%;
    }

    .f-flex-item:first-child {
        padding-right: 1rem;
    }

    .f-flex-item p,
    .f-flex-item > div {
        margin-bottom: 2rem;
    }

    .alerta {
        width: 55%;
        left: 20%;
    }
}


@media screen and (min-width: 750px) {
    
    /* REGLAS GENERALES */

    section {
        padding-top: 7rem;
    }

    h2 {
        font-size: 2.7rem;
    }

    h3 {
        font-size: 2rem;
    }

    p {
        font-size: 1.5rem;
    }

    a {
        padding: 0.8rem 1.2rem;
        font-size: 1.2rem; 
    }

    img.simbolo {
        width: 40px;
        height: 40px;
    }

    /* HEADER */

    header {
        padding: 1.5rem 2.5rem;
    }

    .h-flex-item img {
        min-width: 250px;
        max-width: 400px;
    }

    nav {
        margin-left: 3rem;
    }


    /* MAIN */

    .bienvenida {
        left: 20%;
        font-size: 3rem;
    }

    .contenedor-boton-whatsapp {
        width: 100px;
        height: 100px;
    }

    .contenedor-intro-texto {
        padding: 6rem 2.5rem 0 2.5rem;
    }

    .servicios h2,
    .servicios > p {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }

    .contenedor-flex {
        margin-top: 4rem;
    }

    .s-flex-item:nth-child(2),
    .s-flex-item:nth-child(3) {
        padding: 2.5rem 2rem;
    }

    .s-flex-item h3 {
        font-size: 1.7rem
    }

    .s-flex-item p {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .s-flex-item img.simbolo {
        margin-right: 0.8rem;
    }

    main section.tamaños {
        padding-left:  2.5rem;
        padding-right: 2.5rem;
    }

    #carouselFade3 .descripcion-caja h3 {
        margin-bottom: 3rem;
    }

    #carouselFade3 .descripcion-caja li {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    #carouselFade3 .descripcion-caja span {
        font-size: 1.7rem;
    }


    /* FOOTER */        

    footer {
        padding: 4rem 2.5rem 1rem 2.5rem;
    }

    .f-flex-item p {
        font-size: 1.5rem;
        margin-bottom: 3rem;
    }

    .f-flex-item > div svg {
        width: 40px;
        height: 40px;
        margin-right: 1.5rem;
    }

    .f-flex-item div:last-of-type svg {
       margin-left: 2.6rem;
    }

    .f-flex-item > div span {
        font-size: 1.5rem;
    }

    .f-flex-item form {
        column-gap: 2rem;
    }

    form > div {
        max-width: 180px;
    }

    form .grid-item-w-100 {
        max-width: 400px;
    }

    form label {
        font-size: 1.3rem;
    }

    form input,
    form textarea,
    form .error {
        font-size: 1rem;
    }

    form button.grid-item-w-100 {
        max-width: 300px;
        font-size: 1.3rem;
    }

    .alerta h4 {
        font-size: 3rem;
    }

    .alerta p {
        font-size: 2rem;
    }

    .alerta button {
        font-size: 1.5rem;
    }
}
