﻿/* RESET */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* VARIABLES */
:root{
    --principal:#4B2E2B;
    --secundario:#FFF3E0;
    --acento:#C89B3C;
    --blanco:#ffffff;
}

/* GENERALES */
html{
    scroll-behavior:smooth;
}

html, body{
    width:100%;
    overflow-x:hidden;
}

body{
    font-family:'Poppins',sans-serif;
    background:var(--secundario);
    color:var(--principal);
}

h1,h2{
    font-family:'Dancing Script',cursive;
}

h3{
    font-family:'Playfair Display',serif;
}

.contenedor{
    width:90%;
    max-width:1200px;
    margin:auto;
}

section{
    padding:80px 0;
}

h2{
    text-align:center;
    margin-bottom:35px;
    font-size:38px;
}

/* BOTON */
.boton{
    display:inline-block;
    padding:15px 35px;
    background:var(--acento);
    color:white;
    text-decoration:none;
    border-radius:40px;
    transition:.3s;
}

.boton:hover{
    background:var(--principal);
}

/* HERO */
#hero{
    background:#EDE0D4;
    text-align:center;
    padding-bottom:40px;
    width:100%;
}

.header-imagenes{
    display:flex;
    width:100%;
}

.header-img{
    flex:1;
    height:200px;
    object-fit:cover;
}

#hero h1{
    font-family:'Dancing Script',cursive;
    color:var(--principal);
    font-size:68px;
    margin-top:40px;
    margin-bottom:15px;
}

.logo-header{
    width:120px;
    height:auto;
    display:block;
    margin:0 auto 20px;
    border-radius:10px;
}

.nav-header{
    display:flex;
    justify-content:center;
    gap:25px;
    flex-wrap:wrap;
    margin-bottom:30px;
}

.nav-header a{
    color:var(--principal);
    text-decoration:none;
    font-weight:500;
    font-size:16px;
    transition:.3s;
}

.nav-header a:hover{
    color:var(--acento);
}

/* MOBILE STICKY BAR */
.mobile-bar{
    display:none;
}

/* HAMBURGER */
.hamburger{
    display:none;
}

/* NOSOTROS */
#nosotros p{
    max-width:800px;
    margin:0 auto 20px;
    text-align:center;
    line-height:1.8;
}

#nosotros p:last-child{
    margin-bottom:0;
}

/* MENU */
#menu{
    background:white;
}

.productos{
    display:flex;
    justify-content:center;
    gap:30px;
    flex-wrap:wrap;
}

.producto{
    width:280px;
    background:var(--secundario);
    padding:25px;
    border-radius:12px;
    text-align:center;
}

.producto-img{
    width:100%;
    height:180px;
    object-fit:cover;
    border-radius:10px;
    margin-bottom:15px;
}

.producto h3{
    margin-bottom:15px;
}

.producto p{
    font-size:22px;
    color:var(--acento);
    font-weight:bold;
}

/* EXPERIENCIA */
#experiencia{
    text-align:center;
}

#experiencia p{
    max-width:800px;
    margin:auto;
    line-height:1.8;
}

/* GALERIA */
.imagenes{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}

.imagenes img{
    width:100%;
    height:250px;
    object-fit:cover;
    border-radius:10px;
}

/* CONOCE MAS */
#conoce-mas{
    background:white;
}

.conoce-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.conoce-item{
    background:var(--secundario);
    padding:25px;
    border-radius:12px;
    text-align:center;
}

.conoce-item h3{
    margin-bottom:15px;
    font-size:24px;
}

.conoce-item p{
    margin-top:15px;
    line-height:1.6;
    font-size:15px;
}

.conoce-imagenes{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.conoce-imagenes img{
    width:100%;
    height:140px;
    object-fit:cover;
    border-radius:10px;
}

.conoce-img-single{
    width:100%;
    height:200px;
    object-fit:cover;
    border-radius:10px;
}

/* UBICACION */
#ubicacion{
    text-align:center;
}

#ubicacion p{
    margin-bottom:25px;
}

iframe{
    width:100%;
    height:450px;
    border:none;
    border-radius:12px;
}

/* CTA FINAL */
#cta{
    background:var(--principal);
    text-align:center;
}

#cta h2{
    color:white;
    margin-bottom:30px;
}

/* MODAL PRUEBA WHATSAPP */

.modal-prueba{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.65);
    z-index:9999;
    justify-content:center;
    align-items:center;
    padding:20px;
}

.modal-prueba.visible{
    display:flex;
}

.modal-prueba-contenido{
    background:white;
    border-radius:20px;
    padding:50px 40px;
    text-align:center;
    max-width:400px;
    width:100%;
    box-shadow:0 25px 60px rgba(0,0,0,.3);
}

.modal-prueba-contenido p{
    font-size:20px;
    font-weight:600;
    color:var(--principal);
    margin-bottom:30px;
}

.modal-prueba-cerrar{
    background:var(--acento);
    color:white;
    border:none;
    padding:12px 40px;
    border-radius:40px;
    font-size:16px;
    font-weight:700;
    cursor:pointer;
    transition:.3s;
    font-family:'Poppins',sans-serif;
}

.modal-prueba-cerrar:hover{
    opacity:.85;
    transform:translateY(-2px);
}

/* SCROLL TO TOP */
#scroll-top{
    position:fixed;
    bottom:30px;
    right:30px;
    width:50px;
    height:50px;
    border-radius:50%;
    background:var(--principal);
    color:white;
    border:none;
    font-size:24px;
    cursor:pointer;
    opacity:0;
    visibility:hidden;
    transition:.3s;
    z-index:999;
    box-shadow:0 2px 10px rgba(0,0,0,.2);
}

#scroll-top.visible{
    opacity:1;
    visibility:visible;
}

#scroll-top:hover{
    transform:translateY(-3px);
    box-shadow:0 4px 15px rgba(0,0,0,.3);
}

/* RESPONSIVE */
@media(max-width:768px){
    html, body{
        overflow-x:hidden;
        width:100%;
    }

    .contenedor{
        position:relative;
        width:100%;
        max-width:100%;
        padding:0 15px;
    }

    #hero{
        width:100%;
    }

    #hero h1{
        font-size:26px;
        margin-top:10px;
    }

    h2{
        font-size:24px;
        margin-bottom:20px;
    }

    section{
        padding:30px 0;
    }

    .header-imagenes{
        display:flex;
        flex-wrap:nowrap;
    }

    .header-img{
        height:100px;
        flex:1;
    }

    .header-img:nth-child(n+3){
        display:none;
    }

    .logo-header{
        width:70px;
    }

    .mobile-bar{
        display:flex;
        align-items:center;
        justify-content:space-between;
        position:fixed;
        top:0;
        left:0;
        width:100%;
        height:56px;
        padding:0 15px;
        background:var(--secundario);
        box-shadow:0 2px 12px rgba(0,0,0,.1);
        z-index:1000;
    }

    .mobile-bar-logo{
        width:40px;
        height:40px;
        border-radius:50%;
        object-fit:cover;
    }

    .mobile-hamburger{
        display:block !important;
        position:static !important;
        font-size:28px;
        color:var(--principal);
        background:none;
        border:none;
        cursor:pointer;
        z-index:1003;
    }

    #hamburger{
        display:none;
    }

    body{
        padding-top:56px;
    }

    .nav-header{
        position:fixed;
        top:0;
        left:0;
        width:100%;
        height:100vh;
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        gap:24px;
        background:rgba(255,243,224,.97);
        z-index:1002;
        opacity:0;
        visibility:hidden;
        transition:opacity .4s ease, visibility .4s ease;
    }

    .nav-header.open{
        opacity:1;
        visibility:visible;
    }

    .nav-cerrar{
        position:absolute;
        top:15px;
        right:20px;
        background:none;
        border:none;
        font-size:40px;
        color:var(--principal);
        cursor:pointer;
        line-height:1;
    }

    .nav-header a{
        font-size:22px;
        font-weight:600;
    }

    .boton{
        margin-top:10px;
    }

    .producto{
        width:100%;
        max-width:280px;
        padding:15px;
    }

    .producto-img{
        height:130px;
    }

    .imagenes{
        grid-template-columns:repeat(2,1fr);
        gap:10px;
    }

    .imagenes img{
        height:130px;
    }

    .conoce-grid{
        grid-template-columns:1fr;
        gap:20px;
    }

    .conoce-item{
        padding:12px;
    }

    .conoce-imagenes img{
        height:90px;
    }

    .conoce-img-single{
        height:120px;
    }

    iframe{
        height:220px;
    }

    #scroll-top{
        width:38px;
        height:38px;
        font-size:18px;
        bottom:15px;
        right:15px;
        opacity:1;
        visibility:visible;
    }
}
