/* RESET DE BASE */

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    padding-top: 0;   /* le hero commence sous le menu, on ajuste si besoin */
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
}




#navbar{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(26, 26, 26, 0.95);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 40px;
    z-index: 1000;
}

#navbar .logo-nav {
    color: #f0c14b;
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
}

#navbar .nav-links {
    display: flex;              
    list-style: none;            
    gap: 30px;                   
}

#navbar .nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

#navbar .nav-links a:hover {
    color: #f0c14b;              /* doré au survol */
}

#navbar .logo-nav img {
    height: 68px;
    background: #fff;           /* fond blanc derrière le logo */
    border-radius: 50%;         /* rond parfait */
    padding: 6px;               /* espace entre le logo et le bord du cercle */
}

#hero{

    position: relative;
    color: #fff;
    text-align: center;
    padding: 160px 20px 120px;
    overflow: hidden;
}

.slideshow {
    position: absolute;              /* se place derrière le contenu */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;                      /* tout au fond */
}

/* Chaque image du diaporama */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;                      /* invisible par défaut */
    transition: opacity 2s ease-in-out;   /* fondu doux sur 2 secondes */
}

/* le voile sombre par-dessus chaque image (pour lire le texte) */
.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
}

.slide.active {
    opacity: 1;                      /* l'image active est visible */
}

/* Le contenu du hero (titre, nav...) doit passer AU-DESSUS du diaporama */
#hero nav,
#hero h1,
#hero p,
#hero ul,
#hero #btn-reservar {
    position: relative;
    z-index: 1;                      /* au-dessus des slides (z-index 0) */
}

#hero h1{
    font-size: 48px;
    margin-bottom: 10px;  

}

/* Logo Fusion Ibiza sur le hero (remplace l'ancien titre texte) */
#hero h1 .hero-logo{
    display: block;
    width: 80%;
    max-width: 440px;
    height: auto;
    margin: 0 auto 6px;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.55));
}

#hero p{
    font-size: 18px;
    color: #f0c14b;
    margin-bottom: 20px;
}

#hero nav{
    margin-bottom: 30px;
}

#hero nav button{
    background: transparent;
    color: #fff;
    border: 1px solid #f0c14b;
    padding: 6px 14px;
    margin: 0 4px;
    border-radius: 4px;
    cursor: pointer; 
}

#hero nav button:hover,
#hero nav button.active{
    background: #f0c14b;
    color: #1a1a1a;
}

#btn-reservar{
    display: inline-block;
    background: #f0c14b;
    color: #1a1a1a;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}
#btn-reservar:hover{
    background: #fff;

}

#hero ul{
    list-style: none;
    margin-bottom: 25px;
}
#hero ul li{
    font-size: 16px;
    color:#ddd;
    
}


/* ===== SECTIONS GÉNÉRALES ===== */
section{
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

section > h2{
    text-align: center;
    font-size: 36px;
    color: #1a1a1a;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Applique le flexbox aux 3 sections de carte */
#carta,
#desayunos,
#bebidas {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

#carta > h2,
#desayunos > h2,
#bebidas > h2,
#desayunos > .horario,
#bebidas > .destacado {
    width: 100%;
}

.categoria{
    flex: 1;
    min-width: 300px;
    max-width: 360px;
    background: #faf8f5;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.categoria:hover{
    transform: translateY(-5px)
}

/* ===== TITRE DE CATÉGORIE (h3) ===== */
.categoria h3 {
    font-size: 22px;
    color: #1a1a1a;
    border-bottom: 2px solid #f0c14b;   /* trait doré sous le titre */
    padding-bottom: 8px;                 /* espace entre le texte et le trait */
    margin-bottom: 15px;                 /* espace après le titre */
}

/* le sous-titre (Ensaladas, Carnes frescas...) */
.categoria .subtitulo {
    font-style: normal;
    color: #888;
    font-size: 14px;
    margin-bottom: 15px;
    margin-top: -10px;
}

.categoria article{
    margin-bottom: 14px;
}

.categoria h4{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 16px;
    color: #1a1a1a;
    gap: 10px;

}
.categoria h4 span:last-of-type{
    color: #f0c14b;
    font-weight: bold;
    white-space: nowrap;
}

.categoria article p{
    font-size: 14px;
    color: #666;
    margin-top: 2px;
}

.horario,
.destacado {
    text-align: center;
    font-size: 18px;
    color: #f0c14b;              
    font-weight: bold;
    margin-top: -25px;           
    margin-bottom: 40px;
}

.precio-cat {
    color: #f0c14b;
    font-weight: bold;
    font-size: 16px;
}

/* ===== EL LUGAR ===== */
#lugar {
    text-align: center;
}

#lugar > p {
    max-width: 700px;           /* limite la largeur du texte pour la lisibilité */
    margin: 0 auto 20px;        /* centre le paragraphe + espace en dessous */
    font-size: 17px;
    color: #444;
}

#lugar h3 {
    font-size: 24px;
    color: #f0c14b;             /* sous-titres en doré */
    margin-top: 30px;
    margin-bottom: 10px;
}

/* les photos */
#lugar figure {
    display: inline-block;      /* les 3 figures côte à côte */
    margin: 15px;
    width: 340px;
    overflow: hidden;

}

#lugar figure img {
    width: 100%;                /* l'image remplit sa figure */
    height: 240px;
    object-fit: cover;          /* la photo remplit sans se déformer */
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.4s ease;
}
/*
#lugar figure img:hover{
    transform: scale(1.08);
}
*/

#contacto{
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    max-width: 100%;
    margin: 0;
}

#contacto > h2{
    color: #fff;                    
    font-size: 36px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

#contacto .info-contacto{
    display: inline-block;
    vertical-align: top;
    width: 280px;
    margin: 20px;
    text-align: center;
}

#contacto .info-contacto h3 {
    color: #f0c14b;                 /* sous-titres en doré */
    font-size: 20px;
    margin-bottom: 15px;
}

#contacto .info-contacto p,
#contacto .info-contacto address {
    color: #ddd;                    /* texte gris clair */
    font-style: normal;             /* enlève l'italique par défaut de address */
    line-height: 1.8;
    margin-bottom: 5px;
}

#contacto a {
    color: #f0c14b;                 /* liens en doré */
    text-decoration: none;
    transition: color 0.3s;
}

#contacto a:hover {
    color: #fff;                    /* au survol : blanc */
}

/* ===== RESPONSIVE MOBILE ===== */
/* Ces règles s'appliquent UNIQUEMENT sur les écrans de moins de 768px (mobile/tablette) */

html {
    scroll-behavior: smooth;
}



/* Le bouton hamburger : caché par défaut (desktop) */
#hamburger {
    display: none;               /* invisible sur grand écran */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* Les 3 barres du hamburger */
#hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #fff;            /* barres blanches */
    border-radius: 2px;
    transition: all 0.3s;
}

/* ===== BOUTON RETOUR EN HAUT ===== */
#btn-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #f0c14b;
    color: #1a1a1a;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;                      /* invisible par défaut */
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 999;
}

#btn-top.visible {
    opacity: 1;                      /* apparaît quand on a scrollé */
    visibility: visible;
}

#btn-top:hover {
    background: #fff;
}

/* ===== BANDEAU AVIS GOOGLE ===== */
#avis {
    text-align: center;         /* tout centré */
    padding: 50px 20px;         /* de l'air autour */
    background: #faf8f5;         /* fond crème, contraste avec le footer sombre */
}

.avis-estrellas {
    color: #f0c14b;             /* étoiles dorées */
    font-size: 28px;
    letter-spacing: 4px;        /* espace entre les étoiles */
}

.avis-nota {
    font-family: 'Playfair Display', serif;  /* ta police de titres */
    font-size: 48px;            /* le 4,6 bien gros */
    color: #1a1a1a;
    margin: 10px 0 5px;
}

.avis-texto {
    font-size: 18px;
    color: #555;                /* gris doux */
}

@media (max-width: 768px) {

    #hero {
        padding: 120px 15px 80px;
    }

    #hero h1 {
        font-size: 36px;
    }

    #hero p {
        font-size: 16px;
    }

    section > h2 {
        font-size: 28px;
    }

    /* ===== MENU HAMBURGER ===== */
    #hamburger {
        display: flex;
    }

    #navbar .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(26, 26, 26, 0.98);
        flex-direction: column;
        padding: 20px 0;
        gap: 0;
    }

    #navbar .nav-links.open {
        display: flex;
    }

    #navbar .nav-links li {
        text-align: center;
        padding: 12px 0;
    }

    #contacto .info-contacto {
        display: block;
        width: 100%;
        margin: 20px 0;
    }

}