/* VARIABLES DE COLOR */
:root {
    --color-bg: #252525;
    --color-surface: #111827;
    --color-surface-hover: #1f2937;
    --color-text: #f3f4f6;
    --color-primary: #d4af37;
    --color-primary-hover: #b8962e;
    --color-border: #374151;
    --color-dark: #020617;
    --color-gold-light: #f5d76e;
    --color-gold-dark: #8c6a1c;
}


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

/* BODY */
body {
    font-family: "Montserrat", sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
}

/*---- HEADER SIDEBAR ----*/

/* -------- SIDEBAR BASE -------- */

.sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--sidebar-color);
    position: fixed;
    height: 100vh;
    width: 80px;
    padding: 30px 0 6px;
    transition: width 0.3s ease;
    z-index: 100;
    top: 0;
    left: 0;
}

/* -------- MENU BUTTON -------- */

input[type="checkbox"] {
    display: none;
}

.sidebar__form {
    position: absolute;
    margin-top: 3rem;
    right: 1rem;
    z-index: 20;
}

.sidebar__form label {
    font-size: 2rem;
    cursor: pointer;
}

/* ----- LOGO ------ */

.sidebar__logo {
    display: flex;
    justify-content: center;
}

.sidebar__logo img {
    width: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

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

.sidebar__nav {
    display: flex;
    flex: 1;
    align-items: center;
}

.sidebar__nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 0;
    width: 100%;
}

/* -------- ITEMS -------- */

.sidebar__item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    text-decoration: none;
    color: var(--icono-color);
    border-radius: 50%;
    transition: all 0.3s ease;
    gap: 10px;
}

/* ICONO */
.sidebar__item span {
    font-size: 2rem;
}

/* TEXTO */
.sidebar__item span:last-child {
    font-size: 0.9rem;
    display: none;
}

/* HOVER */
.sidebar__item a:hover {
    background-color: var(--color-border);
    color: var(--color-gold-light);
}

/* -------- SIDEBAR ABIERTO -------- */

.sidebar:has(input[type="checkbox"]:checked) {
    width: 220px;
}

/* LOGO ABIERTO */
.sidebar:has(input[type="checkbox"]:checked) .sidebar__logo {
    justify-content: flex-start;
    padding-left: 20px;
}

.sidebar:has(input[type="checkbox"]:checked) .sidebar__logo img {
    width: 60px;
}

/* NAV ABIERTO */
.sidebar:has(input[type="checkbox"]:checked) .sidebar__nav ul {
    align-items: flex-start;
}

/* ITEM ABIERTO */
.sidebar:has(input[type="checkbox"]:checked) .sidebar__item a {
    width: 100%;
    justify-content: flex-start;
    padding-left: 15px;
    gap: 10px;
    border-radius: 25px;
}

/* TEXTO VISIBLE */
.sidebar:has(input[type="checkbox"]:checked) .sidebar__item span:last-child {
    display: inline;
}

/*---- HOME -----*/
/* Video de fondo FIJO */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

/* Filtro oscuro para que el texto se lea siempre */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

/* Contenedor del contenido */
.content-wrapper {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
}

/* Primera vista (Logo y Título) */
.hero-full {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.main-logo {
    width: 250px;
    margin-bottom: 20px;
}

.cards-container {
    padding: 100px 20px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 50px auto 0;
}

.card {
    background: rgba(255, 255, 255, 0.1);/* Fondo semi-transparente */
    backdrop-filter: blur(10px);
    padding:25px 15px;;
    border-radius: 15px;
    text-decoration: none;
    color: white;
    border: 1px solid #d4af37;
    transition: 0.3s;
}

.card:hover {
    background: #d4af37;
    color: black;
    transform: translateY(-10px);
}

.card i {
    font-size: 50px;
    color: #d4af37;
    margin-bottom: 20px;
}

.card:hover i {
    color: black;
}

/* VIDEO DE FONDO CONFIGURACIÓN */

.glass_bcg {
    filter: blur(8px) brightness(0.6);
    transform: scale(1.05);
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

video {
    object-fit: cover;
}


/* CONTENEDOR */
.faq {
    max-width: 820px;
    margin: 60px auto;
    padding: 20px;
}

/* HEADER */
.faq__header {
    text-align: center;
    margin-bottom: 40px;
}

.faq__title {
    padding-bottom:1rem ;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
}

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

/* HOVER */
.faq__item:hover {
    background: var(--color-surface-hover);
}

/* INPUT */
.faq__input {
    display: none;
}

/* QUESTION */
.faq__question {
    padding: 18px 20px;
    font-weight: 500;
    display: flex;
    gap: 10px;
    align-items: center;
    position: relative;
}

/* NUMERO */
.faq__number {
    color: var(--color-primary);
}

/* ICONO (+) */
.faq__question::after {
    content: "+";
    position: absolute;
    right: 20px;
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

/* CONTENT */
.faq__content {
    background-image: url(../img/fondos.png);
    background-repeat: no-repeat;
    background-size: 30%;
    background-position: center;
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    margin: 10px;
    transition: all 0.4s ease;
}

/* ABIERTO */
.faq__input:checked ~ .faq__content {
    max-height: 2000px;
    padding: 20px;
}

/* ROTAR ICONO */
.faq__input:checked ~ .faq__question::after {
    transform: rotate(45deg);
}

/* TEXTOS */
.faq__subtitle {
    text-align: center;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-primary);
}

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


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

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

/* CARD */
.faq__card {
    background: var(--color-bg);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 15px;
    border: 1px solid var(--color-border);
}

.faq__card-header {
    background: var(--color-primary);
    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;
}

.main-content {
    margin-left:5rem; 
    display: flex;
    padding-top: 10rem;
    flex-direction: column;
    align-items: center;
}

/* GRID */
.faq__grid {
    display: grid;
    grid-template-columns: 150px 1fr 1fr;
    margin: 15px 0;
    border: 1px solid var(--color-border);
    border-radius: 10px;
}

/* COLUMNA ROJA */
.faq__grid-side {
    grid-row: 1 / span 3;
    background: linear-gradient(to bottom, #dc2626, #b91c1c);
    color: white;
    font-weight: 700;
    text-align: center;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 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;
}

/*--- SECTION CHECKLIST ----*/

.checklist-section {
    max-width:750px;
    margin: 40px auto;
    padding: 20px;

    background: var(--color-dark); 
    backdrop-filter: blur(8px);

    border-radius: 12px;
    border: 1px solid var(--color-border);

    box-shadow: 
        0 10px 25px #c9a40089,
        0 0 8px #0618bbdd;
}

.checklist-section h2 {
    background: linear-gradient(to right, var(--color-primary), var(--color-gold-dark));
    color:var(--color-text) ;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
}

.checklist__desc {
    background: var(--color-surface);
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.checklist__list {
    width: 100%;
    max-width: 700px;
    list-style: none;
    padding: 0;
}

.checklist__list li {
    background:#b0acac;
    color: #111;
    margin:5px 0;
    border-radius: 5px;
    position: relative;

    padding: 10px 10px 10px 35px;
    display: flex;
    align-items: center;

    border: 1px solid var(--color-border);
    transition: 0.2s ease;
}

.checklist__list li::before {
    content: "✔";
    position:absolute;
    left: 10px;
    color: #00aa36b9;
    font-weight: bold;
    font-size: 1rem;
}

.checklist__list li:hover {
    background: #ffffff14;
    color: var(--color-text);
    transform: translateX(5px);
}

.pre-cierre .checklist__desc{
    background:linear-gradient(to right, #1f9d3a, #5cbf3a);
}

.cierre {
    margin-top:40px ;
}

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

@media (max-width: 768px) {

    .checklist-section {
        margin: 20px 10px;
        padding: 15px;
    }

    .checklist-section h2 {
        font-size: 1.2rem;
        padding: 10px;
    }

    .checklist__desc {
        font-size: 0.9rem;
    }

    .checklist__list li {
        font-size: 0.85rem;
        padding: 10px 10px 10px 30px;
    }

}

@media (max-width: 480px) {

    .checklist-section {
        padding: 10px;
    }

    .checklist-section h2 {
        font-size: 1rem;
    }

    .checklist__list li {
        font-size: 0.8rem;
        padding: 8px 8px 8px 28px;
    }

        .checklist__list li::before {
        font-size: 0.8rem;
        left: 8px;
    }
}

/*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;
}

.main-content + .footer {
    width: 100%;
}

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

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


/* RESPONSIVE */
@media (max-width: 600px) {
    .faq__title {
        font-size: 1.5rem;
    }

    .faq__question {
        font-size: 0.9rem;
    }

}

@media (max-width: 768px) {
    body.sidebar .footer {
        margin-left: 90px;
        width: calc(100% - 90px);
    }
    .sidebar {
        width: 55px;
    }

    .sidebar:has(input[type="checkbox"]:checked) {
        width: 200px;
    }

    .faq {
        padding: 15px;
    }

    .faq__title {
        font-size: 1.4rem;
        padding-bottom: 1rem ;
    }

    .faq__text {
        font-size: 0.9rem;
    }

    .faq__question {
        font-size: 0.9rem;
    }

    .faq__grid {
    display: grid;
    grid-template-columns: 120px 1fr 1fr;
    overflow-x: auto;
}

    .main-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    padding-top: 10rem;
    flex-direction: column;
    align-items: center;
}
    .main-logo {
        width: 180px;
    }

    .footer {
        margin-left: 0;
        width: 100%;
    }
}



@media (max-width: 480px) {

    .sidebar {
        width: 50px;
    }

    .faq {
        margin: 0 auto;
        padding: 10px;
        width: 100%;
    }

    .faq__title {
        font-size: 1.2rem;
        padding: 10px;
    }

    .faq__question {
        font-size: 0.85rem;
    }

    .faq__text {
        font-size: 0.85rem;
    }

    .logo__pag{
        width: 100px;
        margin: 0 auto;
        display: block;
    }

    .main-content {
    margin-left: 0;
    padding: 0 15px;
    padding-top: 5rem;
    align-items: center;
}

.footer {
        margin-left: 0;
        width: 100%;
}
}

/*---- botton de descarga pdf ----*/
.btn-pdf {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background: var(--color-primary);
    color: #111;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
}

.btn-pdf:hover {
    background: var(--color-primary-hover);
    transform: translateY(-3px);
}

.lista__pasos {
    padding-left: 20px;
    margin-bottom: 15px;
}

.lista__pasos li {
    margin-bottom: 8px;
    line-height: 1.6;
    font-size: 0.95rem;
}