
/* =====================================================
   TODO PANADERO
   HOJA DE ESTILOS PRINCIPAL
   Diseño original + optimización responsive
   ===================================================== */


/* =====================================================
   CONFIGURACIÓN GENERAL
   ===================================================== */

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;

    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 400;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    color: #ffffff;
    background: #000000;

    overflow-x: hidden;
}


/* =====================================================
   TIPOGRAFÍAS Y ENCABEZADOS
   ===================================================== */

h1, h2, h3, h4, h5, h6 {

    font-family: 'Coustard', serif;

    color: #ffffff;

    font-weight: normal;

    letter-spacing: 1px;

    margin-top: 0;
    margin-bottom: 12px;

}

h1 {

    font-size: 38px;

    line-height: 1.3;

    padding: 0;

}

h2 {

    font-size: 26px;

    line-height: 1.4;

}

h3 {

    font-size: 21px;

    line-height: 1.4;

}

h5 {

    font-size: 22px;

    line-height: 30px;

    color: #b7b7b7;

}


/* =====================================================
   PÁRRAFOS Y ENLACES
   ===================================================== */

p {

    margin-top: 0;

    margin-bottom: 15px;

}

a {

    color: #ffffff;

    text-decoration: none;

    font-weight: normal;

    transition: color .2s ease;

}

a:hover {

    color: #ffa800;

}


/* =====================================================
   FONDO Y SLIDER
   ===================================================== */

#maximage {

    display: none;

    position: fixed !important;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    z-index: 0;

}

#maximage img {

    max-width: 100%;

}

#maximage .gradient {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    z-index: 1;

}


/* =====================================================
   CONTENIDO PRINCIPAL
   ===================================================== */

main {

    position: relative;

    z-index: 100;

}

.content {

    display: none;

    position: absolute;

    top: 12%;

    left: 0;

    width: 55%;

    max-height: 65vh;

    overflow-y: auto;

    margin: 40px;

    padding: 0;

    z-index: 100;

    color: #ffffff;

    -webkit-font-smoothing: antialiased;

}

.content p {

    max-width: 850px;

}

.content ul {

    padding-left: 25px;

    margin-bottom: 20px;

}

.content li {

    margin-bottom: 7px;

}


/* =====================================================
   LOGOTIPO
   ===================================================== */

#logo {

    position: absolute;

    left: 0;

    bottom: 20%;

    width: 90%;

    height: auto;

    margin: 40px;

    z-index: 1000;

    float: left;

    color: #ffa800;

    font-family: 'Coustard', serif;

    font-size: 4em;

    line-height: 1.1;

}


/* =====================================================
   NAVEGACIÓN PRINCIPAL
   ===================================================== */

.main-nav {

    position: absolute;

    left: 0;

    bottom: 12%;

    z-index: 1001;

    margin: 5px;

}

.main-nav ul {

    margin: 0;

    padding: 0;

}

.main-nav ul li {

    list-style: none;

    display: inline-block;

    padding: 0 12px;

    border-left: 1px solid #b7b7b7;

}

.main-nav ul li:first-child {

    border-left: none;

}

.main-nav ul li a {

    display: inline-block;

    padding: 5px 0;

}

.main-nav ul li a.active {

    color: #ffa800;

}


/* =====================================================
   REDES SOCIALES
   ===================================================== */

.social-nav {

    position: absolute;

    top: 0;

    left: 40px;

    z-index: 1002;

}

.social-nav ul {

    margin: 0;

    padding: 0;

}

.social-nav ul li {

    list-style: none;

    display: block;

    float: left;

    background: #393939;

    padding: 70px 10px 5px 10px;

    margin: 1px;

    opacity: .65;

    transition: opacity .2s ease;

}

.social-nav ul li:hover {

    opacity: 1;

}

.social-nav img {

    display: block;

    max-width: 100%;

    height: auto;

}


/* =====================================================
   CONTROLES DEL SLIDER
   ===================================================== */

#arrow_left,
#arrow_right {

    position: absolute;

    top: 60px;

    right: 40px;

    width: 42px;

    height: 42px;

    z-index: 1003;

}

#arrow_left {

    right: 95px;

}

#arrow_left img,
#arrow_right img {

    display: block;

    max-width: 100%;

    height: auto;

}


/* =====================================================
   BOTÓN FLOTANTE WHATSAPP
   ===================================================== */

.whatsapp {

    position: fixed;

    width: 62px;

    height: 62px;

    right: 25px;

    bottom: 25px;

    background-color: #25d366;

    color: #ffffff;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    font-size: 36px;

    z-index: 99999;

    box-shadow: 0 4px 15px rgba(0, 0, 0, .30);

    text-decoration: none;

    transition:
        transform .25s ease,
        background-color .25s ease;

}

.whatsapp i {

    margin: 0;

    line-height: 1;

}

.whatsapp:hover {

    background-color: #1ebe5d;

    color: #ffffff;

    transform: scale(1.08);

}

.whatsapp:focus-visible {

    outline: 3px solid #ffffff;

    outline-offset: 4px;

}


/* =====================================================
   PIE DE PÁGINA
   ===================================================== */

.main2-nav {

    position: absolute;

    bottom: 2%;

    left: 0;

    z-index: 1001;

    width: 90%;

    margin: 5px;

    color: #b7b7b7;

    font-size: 12px;

}

.main2-nav p {

    margin: 0;

}

.main2-nav a {

    color: #ffffff;

}

.main2-nav a:hover {

    color: #ffa800;

}


/* =====================================================
   BOTÓN PANTALLA COMPLETA
   COMPATIBILIDAD CON EL DISEÑO ORIGINAL
   ===================================================== */

button.full-screen {

    position: absolute;

    top: 0;

    right: 0;

    width: 31px;

    height: 31px;

    background: url("../images/full-screen-btn.png");

    border: 0;

    cursor: pointer;

    opacity: .7;

}

button.full-screen:hover {

    opacity: 1;

}


/* =====================================================
   TABLETS
   ===================================================== */

@media screen and (max-width: 1024px) {

    .content {

        width: 65%;

        margin: 25px;

        top: 12%;

        max-height: 60vh;

    }

    #logo {

        font-size: 3.2em;

        margin: 25px;

    }

    .social-nav {

        left: 20px;

    }

}


/* =====================================================
   CELULARES
   ===================================================== */

@media screen and (max-width: 600px) {

    body {

        font-size: 14px;

        line-height: 1.6;

    }

    h1 {

        font-size: 27px;

        line-height: 1.3;

    }

    h2 {

        font-size: 21px;

        line-height: 1.4;

    }

    h3 {

        font-size: 18px;

        line-height: 1.4;

    }

    p {

        margin-bottom: 12px;

    }


    /* CONTENIDO */

    .content {

        position: absolute;

        top: 13%;

        left: 0;

        width: calc(100% - 30px);

        max-height: 53vh;

        overflow-y: auto;

        margin: 15px;

        padding: 15px;

        background: rgba(0, 0, 0, .72);

        border-radius: 5px;

        z-index: 100;

        -webkit-overflow-scrolling: touch;

    }


    /* LOGOTIPO */

    #logo {

        position: absolute;

        bottom: 23%;

        left: 0;

        width: calc(100% - 30px);

        margin: 15px;

        font-size: 2.5em;

        line-height: 1.1;

    }


    /* MENÚ */

    .main-nav {

        position: absolute;

        bottom: 12%;

        left: 0;

        width: 100%;

        margin: 0;

        z-index: 1001;

    }

    .main-nav ul {

        display: flex;

        justify-content: center;

        align-items: center;

        flex-wrap: wrap;

        padding: 0 5px;

        margin: 0;

    }

    .main-nav ul li {

        display: inline-block;

        padding: 4px 9px;

        font-size: 13px;

    }

    .main-nav ul li a {

        padding: 5px 0;

    }


    /* REDES SOCIALES */

    .social-nav {

        top: 0;

        left: 10px;

    }

    .social-nav ul li {

        padding: 48px 8px 5px;

    }

    .social-nav img {

        max-width: 28px;

        height: auto;

    }


    /* FLECHAS DEL SLIDER */

    #arrow_left,
    #arrow_right {

        top: 15px;

        right: 15px;

        width: 32px;

        height: 32px;

    }

    #arrow_left {

        right: 55px;

    }


    /* PIE DE PÁGINA */

    .main2-nav {

        position: absolute;

        bottom: 2px;

        left: 0;

        width: 100%;

        margin: 0;

        padding: 0 10px;

        font-size: 10px;

        line-height: 1.4;

    }


    /* WHATSAPP */

    .whatsapp {

        width: 55px;

        height: 55px;

        right: 15px;

        bottom: 15px;

        font-size: 32px;

    }

}


/* =====================================================
   CELULARES PEQUEÑOS
   ===================================================== */

@media screen and (max-width: 360px) {

    h1 {

        font-size: 24px;

    }

    h2 {

        font-size: 19px;

    }

    #logo {

        font-size: 2.1em;

    }

    .main-nav ul li {

        padding: 4px 6px;

        font-size: 12px;

    }

}


/* =====================================================
   ACCESIBILIDAD: REDUCIR ANIMACIONES
   ===================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        scroll-behavior: auto !important;

        transition-duration: .01ms !important;

        animation-duration: .01ms !important;

        animation-iteration-count: 1 !important;

    }

}
