:root {
    --color-bg: #0f0f0f;
    --color-surface: #1a1a1a;
    --color-traslucer:#627b6285;
    --color-text: #f5f5f5;
    --color-text-muted: #b3b3b3;

    --color-primary: #627b62;   
    --color-secondary: #7d6542; 
    --color-accent: #5f572a; 

    --color-border: #2a2a2a;
}

html {
    scroll-padding-top: 100px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: radial-gradient(
    circle at top,
    #1a1a1a,
    #0f0f0f 70%);
    min-height: 100vh;
    font-family: sans-serif;
    line-height: 1.6;
}

body::before,
body::after {
    content: "";
    position: fixed;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.25;
}

body::before {
    background: #627b62;
    top: 10%;
    left: 5%;
    animation: luzVerde 12s ease-in-out infinite alternate;
}

body::after {
    background: #7d6542;
    bottom: 10%;
    right: 5%;
    animation: luzCafe 14s ease-in-out infinite alternate;
}

/*---- HEADER NAV ----*/

.header {
    display: flex;
    position: sticky;
    top: 10px;
    z-index: 1000;
    background: var(--color-primary);
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 1rem auto;
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    border-radius: 25px;

    /*animacion*/
    container-type: inline-size;
    container-name: header;
    animation: header-movement both;
    animation-timeline:scroll();
    animation-range:10px 80px ;
}

.img-logo{
    width: 120px;
    height: auto;
    margin-bottom: 8px;
}
.nav-list {
    display: flex;
    overflow-x: auto;
    list-style: none;
    margin: 0;
    gap: 10px;
    padding-top: 8px 10px;
}

.nav-list li {
    flex: 0 0 auto;
}

.nav-list a {
    display: block;
    padding: 14px 16px;
    color: var(--color-text);
    text-decoration: none;
}

.nav-list a:hover {
    border-radius: 8px;
    font-size: 1rem;
    background: var(--color-accent);
    color: #000;
    transition: all 0.25s ease;
}


/* HEADER ANIMACIONES*/
@keyframes header-movement {
    from {
        background: var(--color-primary);

    }
    to {
        background-color: var(--color-traslucer);
        backdrop-filter: blur(8px);
        color: #fff;
    }

}

/* ---- MOBILE FIRST ---- */

/* ocultamos checkbox */
.menu-toggle {
    display: none;
}

/* icono hamburguesa */
.menu-icon {
    display: block;
    font-size: 28px;
    cursor: pointer;
    color: white;
}

/* nav oculto */
.nav {
    max-height: 0;
    overflow: hidden;
    width: 100%;
    transition: max-height 0.3s ease;
}

/* cuando se abre */
.menu-toggle:checked ~ .nav {
    max-height: 300px;
}

/* lista vertical */
.nav-list {
    flex-direction: column;
    align-items: center;
    gap: 10px;
}


/* ---- MEDIA QUERIES ---- */
@media (min-width: 768px){


    .menu-icon {
        display: none;
    }


    .nav {
        max-height: none;
        overflow: visible;
    }


    .nav-list {
        flex-direction: row;
        justify-content: center;
    }
}


/* ---- MEDIA QUERIES ----*/

/*---- END HEADER NAV ----*/




/*---- SECTION GENERAL ----*/

.section {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    padding: 20px 25px;
    color: var(--color-text);
}

/*---- HOME ----*/

.hero {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}


.hero img:not(.hero-logo) {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-logo {
    position: absolute;
    padding: 5px;
    border-radius: 6px;
    top: 10px;
    left: 50%;
    transform: translate(-50%);
    width: 200px;
}

.hero-logo {
    backdrop-filter: blur(4px);
    border-radius: 50%;
}

.home {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding-top: 40px;
    gap: 8px;
}

.home h1 {
    font-size: 24px;
    margin-bottom: 15px;
}

.home p{
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom:10px;
}

.home p:last-child{
    margin-top: 20px;
    font-weight: 500;
    color: var(--color-accent);
}


/* ---- SECTION ACORDEON ---- */

.faq__item {
    display: block;
    background: var(--color-primary);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq__input {
    display: none;
}

/* ICONO (+) */
.faq__title::after {
    content: "+";
    transition: transform 0.3s ease;
}

.faq__input:checked + .faq__title::after {
    content: "−";
}

/* ----  Contenido cerrado y abierto ---- */

.faq__content{
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 5px;
    max-height:0;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0 10px;
}

.faq__input:checked ~ .faq__content {
    max-height: 15000px;
    padding: 15px 5px;
    overflow: visible;
}

.faq__input:not(:checked) + .faq__title:hover {
    background: var(--color-surface);
}

/*---- CONTENIDO DE CAMARERO ----*/

.contenido-camarero {
    margin-top: 25px;
    border-top: 1px solid var(--color-border);
    padding-top: 20px;
}

.bloque {
    scroll-margin-top: 80px;
}

.pasos {
    background: var(--color-secondary);
    margin: 8px 0;
    border-radius: 10px;
    overflow: hidden;
}

.pasos a {
    display: block;
    padding: 14px 16px;
    color: var(--color-text);
    transition: all 0.25s ease;
}

.pasos a:hover {
    background: var(--color-border);
    transform: translateX(5px);
}

.faq__title {
    padding: 15px;
    font-weight:bold;
    text-align: center;
    position: relative;
}

.faq__content a {
    text-decoration: none;
}


/* --- FAQ CARD ---*/

.faq__text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.faq__number {
    background: var(--color-accent);
    padding: 4px 10px;
    border-radius: 6px;
    margin-right: 10px;
    font-size: 0.85rem;
}

/* LISTAS */
.faq__list {
    padding-left: 20px;
    margin-bottom: 15px;
}

.faq__list li {
    margin-bottom: 8px;
}

/* CARD */

.bloque {
    margin: 30px;
}

.bloque h3 {
    text-align: center;
    margin: 10px;
}

.faq__card {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(6px);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.faq__card-header {
    background: var(--color-accent);
    color: var(--color-bg);
    padding: 10px;
    font-weight: 600;
    text-align: center;
}

.faq__card-body {
    padding: 15px;
}

.faq__card-footer {
    background: red;
    text-align: center;
    border-radius: 10px 2px 10px 2px;
    padding: 10px;
    font-size: 0.85rem;
}

/* GRID */

.faq__grid-container {
    width: 100%;
    overflow-x: auto;
}

.faq__grid {
    display: grid;
    grid-template-columns: 150px 1fr 1fr;
    min-width: 500px;
    margin: 15px 0;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;
}

/* COLUMNA ROJA */

.faq__grid-side {
    grid-row: 1 / span 4;
    color: white;
    font-weight: 700;
    text-align: center;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.grid-amarillo {
    background: linear-gradient(to bottom, #facc15, #eab308);
    color: #111;
}

.grid-rojo {
    background: linear-gradient(to bottom, #dc2626, #b91c1c);
    color: white;
}


/* HEADERS */
.faq__grid-header {
    background: #374151;
    color: white;
    padding: 10px;
    font-weight: 600;
    text-align: center;
    border-radius:5px 5px 5px 5px;
}

/* ITEMS */
.faq__grid-item {
    padding: 10px;
    border-top: 1px solid var(--color-border);
    border-left: 1px solid var(--color-border);
    background: #e5e7eb97;
    color: #111;
    border-radius:5px 5px 5px 5px;
    transition: background 0.2s ease;
}

.faq__grid-item:hover {
    background: #ffffff;
}


/*RECEPCIONISTA*/
.protocolo-container{
    width: 100%;
    overflow-x:auto ;
}

.protocolo {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: 10px;
}

/* columna ETAPA */
.protocolo td.etapa{
    background: linear-gradient(to bottom, #dc2626, #b91c1c);
    font-weight: bold;
    text-align: center;
}


/* headers */
.protocolo th {
    background: #374151;
    color: white;
    padding: 12px;
    text-align: center;
}

/* celdas */
.protocolo td {
    padding: 12px;
    border: 1px solid #ccc;
    background: #e5e7ebb9;
    color: #111;
}
.protocolo tr:hover td:not(.etapa) {
    background: #d1d5db;
}

/*---- FOOTER ----*/

.footer {
    justify-content: flex-end;
    padding: 30px 20px;
    text-align: center;
    margin-left: 0;
    padding: 30px 20px;
    text-align: center;
    color: var(--color-text);
    border-top: 1px solid var(--color-border);
    opacity: 0.8;
}


.footer p {
    font-weight: 600;
    margin-bottom: 5px;
}

.footer span {
    font-size: 0.85rem;
    color: var(--color-gold-light);
}
