/* ==== RESET CSS ==== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

/* ==== HEADER ==== */
header {
    background-color: #c47104; /* Azul principal */
    color: white;
    padding: 10px 0;
    text-align: center;
    position: relative;
}

/* Sección superior del header */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* ==== MENÚ HAMBURGUESA ==== */
.menu-container {
    position: relative;
}

.label-check {
    display: none;
}

.hamburger-label {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.hamburger-label div {
    width: 100%;
    height: 5px;
    background-color: #fff;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

#label-check:checked + .hamburger-label .line1 {
    transform: rotate(40deg) translate(12px, 13px);
}

#label-check:checked + .hamburger-label .line2 {
    opacity: 0;;
}

#label-check:checked + .hamburger-label .line3 {
    transform: rotate(-40deg) translate(12px, -13px);
}

/* ==== MENÚ DESPLEGABLE ==== */
.menu-dropdown {
    display: none;
    flex-direction: column;
    background: #fff;
    color: #333;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 50px;
    left: 0;
    z-index: 1000;
    padding: 10px;
    min-width: 200px;
}

#label-check:checked ~ .menu-dropdown {
    display: flex;
}

.menu-dropdown a,
.btn-dropdown {
    display: block;
    text-align: left;
    padding: 10px 15px;
    margin: 5px 0;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    border-radius: 5px;
    border: 1px solid #ddd;
    background: #fff;
    transition: background 0.3s, color 0.3s;
    cursor: pointer;
}

.menu-dropdown a:hover,
.btn-dropdown:hover {
    background: #f0f0f0;
    color: #000;
}

/* ==== DROPDOWN INTERNO (Contacto y Soporte) ==== */
.dropdown {
    position: relative;
    margin-top: 5px;
}

.dropdown-content {
    display: none;
    background: #fff;
    color: #333;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 1000;
    width: 280px;
}

.dropdown-content.show {
    display: block;
}

.dropdown-content p {
    font-size: 14px;
    margin: 5px 0;
}

/* ==== TÍTULO DEL HEADER ==== */
.header-title h1 {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

/* ==== BOTONES INICIAR SESIÓN Y REGISTRARSE ==== */
.header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-action {
    background-color: #16b3be;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-action:hover {
    background-color: #139aa3;
}

/* ==== CONTENIDO PRINCIPAL ==== */
.container {
    padding: 20px;
    text-align: center;
    background-color: #ffffff;
    margin: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.container h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.container p {
    font-size: 16px;
    color: #555;
}

/* ==== BOTÓN REGRESAR ==== */
.back-link {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: #4F46E5;
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.back-link:hover {
    background-color: #3C35C1;
    transform: scale(1.05);
}

.container {
    background-color: #f9fafc;
    border-radius: 10px;
    padding: 25px;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    font-family: 'Arial', sans-serif;
}

h2 {
    text-align: center;
    color: #333;
    font-size: 24px;
    margin-bottom: 15px;
}

p {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}

p:last-of-type {
    text-align: center;
    font-size: 14px;
    color: #444;
    margin-top: 20px;
    font-weight: bold;
}


/* ==== RESPONSIVIDAD ==== */

/* ✅ Adaptabilidad para Tablets (max-width: 768px) */
@media (max-width: 768px) {
    .header-top {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    /* Menú en la esquina superior izquierda */
    .menu-container {
        order: 1;
        position: absolute;
        top: 10px;
        left: 10px;
    }

    .hamburger-label {
        width: 30px;
        height: 30px;
    }

    .hamburger-label div {
        height: 3px;
    }

    /* Botones en la esquina superior derecha */
    .header-buttons {
        order: 2;
        position: absolute;
        top: 10px;
        right: 10px;
        display: flex;
        gap: 5px;
    }

    .btn-action {
        font-size: 12px;
        padding: 6px 10px;
    }

    /* Título y logo alineados en el centro */
    .header-middle {
        order: 3;
        margin-top: 8rem; /* Espacio suficiente después del menú y botones */
        text-align: center;
    }

    .header-title {
        margin-top: 2rem; /* Espacio después de los botones */
    }

    .header-title h1 {
        font-size: 24px;
        margin-bottom: 1rem; /* Espacio entre título y logo */
    }

    .header-logo {
        margin-top: 1rem; /* Espacio adicional debajo del título */
        text-align: center; /* Centrar el logo */
    }

    .header-logo img {
        max-width: 160px; /* Tamaño más grande para el logo */
    }
}

/* ✅ Adaptabilidad para Teléfonos Grandes (max-width: 600px) */
@media (max-width: 600px) {
    .header-top {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    /* Menú en la esquina superior izquierda */
    .menu-container {
        order: 1;
        position: absolute;
        top: 10px;
        left: 10px;
    }

    .hamburger-label {
        width: 25px;
        height: 25px;
    }

    .hamburger-label div {
        height: 2.5px;
    }

    /* Botones en la esquina superior derecha */
    .header-buttons {
        order: 2;
        position: absolute;
        top: 10px;
        right: 10px;
        display: flex;
        gap: 5px;
    }

    .btn-action {
        font-size: 11px;
        padding: 5px 8px;
    }

    /* Título y logo alineados en el centro */
    .header-middle {
        order: 3;
        margin-top: 10rem; /* Espacio suficiente después del menú y botones */
        text-align: center;
    }

    .header-title {
        margin-top: 2rem; /* Espacio después de los botones */
    }

    .header-title h1 {
        font-size: 22px;
        margin-bottom: 1rem; /* Espacio entre título y logo */
    }

    .header-logo {
        margin-top: 1rem; /* Espacio adicional debajo del título */
        text-align: center; /* Centrar el logo */
    }

    .header-logo img {
        max-width: 150px; /* Tamaño más grande para el logo */
    }
}

/* ✅ Adaptabilidad para Teléfonos Pequeños (max-width: 480px) */
@media (max-width: 480px) {
    .header-top {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    /* Menú en la esquina superior izquierda */
    .menu-container {
        order: 1;
        position: absolute;
        top: 8px;
        left: 8px;
    }

    .hamburger-label {
        width: 20px;
        height: 20px;
    }

    .hamburger-label div {
        height: 2px;
    }

    /* Botones en la esquina superior derecha */
    .header-buttons {
        order: 2;
        position: absolute;
        top: 8px;
        right: 8px;
        display: flex;
        gap: 5px;
    }

    .btn-action {
        font-size: 10px;
        padding: 4px 6px;
    }

    /* Título y logo alineados en el centro */
    .header-middle {
        order: 3;
        margin-top: 12rem; /* Espacio suficiente después del menú y botones */
        text-align: center;
    }

    .header-title {
        margin-top: 1rem; /* Espacio después de los botones */
    }

    .header-title h1 {
        font-size: 18px;
        margin-bottom: 3.5rem; /* Espacio entre título y logo */
        position: relative;
        left: 77.5px;
    }

    .header-logo {
        margin-top: 4rem; /* Espacio adicional debajo del título */
        position: relative;
        left: -110.5px;
    }

    .header-logo img {
        max-width: 140px; /* Tamaño más grande para el logo */
    }
}
