/* CSS Styles for Metamorfosis Website */

/* ===============================
    VARIABLES CSS (Admin Theme)
    ================================ */
:root {
    --admin-bg-primary: #120a1a;
    --admin-bg-secondary: #0b0611;
    --admin-card-bg: linear-gradient(145deg, #1f132b, #2c193d);
    --admin-card-hover: linear-gradient(145deg, #2c193d, #3a2252);
    --admin-border: rgba(255, 255, 255, 0.06);
    --admin-border-hover: rgba(170, 120, 255, 0.25);
    --admin-text-primary: #f1ebff;
    --admin-text-secondary: #b8accf;
    --admin-accent: #a98bff;
    --admin-shadow: 0 6px 18px rgba(0, 0, 0, 0.65);
    --admin-shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.75);
}

/* ===============================
    RESET Y ESTILOS BASE
    ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Marcellus', sans-serif;
    overflow-x: hidden;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    min-height: 100vh;
    position: relative;
}

/* Efecto de estrellas del Fondo*/
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, white, transparent),
        radial-gradient(2px 2px at 60px 70px, white, transparent),
        radial-gradient(1px 1px at 50px 50px, white, transparent),
        radial-gradient(1px 1px at 130px 80px, white, transparent),
        radial-gradient(2px 2px at 90px 10px, white, transparent);
    background-size: 200px 200px;
    animation: twinkle 5s infinite;
    opacity: 0.6;
    z-index: 1;
    pointer-events: none;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.3;
    }
}

/* ===============================
    TIPOGRAFÍA
    ================================ */
h1 {
    font-size: clamp(1.6rem, 4vw, 4.2rem);
    font-weight: 300;
    letter-spacing: 0.35rem;
    margin-bottom: 1.4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

h3 {
    font-size: clamp(1.2rem, 3vw, 2.2rem);
    font-weight: 300;
    letter-spacing: 0.22rem;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.85),
            rgba(200, 180, 255, 0.85));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeSub 3s ease-in-out infinite;
}

@keyframes fadeSub {

    0%,
    100% {
        opacity: 0.9;
    }

    50% {
        opacity: 0.75;
    }
}

/* ===============================
    LAYOUT PRINCIPAL
    ================================ */
.main-content {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 1.2rem 1rem;
}

.main-contentInicio,
.navbar,
.footer-main,
.footer-bottom {
    position: relative;
    z-index: 2;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    flex: 1;
    justify-content: center;
}

.video-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===============================
    SPINNER
    ================================ */
.spinner-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    opacity: 0.8;
    animation: fadeIn 0.5s ease-in-out;
    text-align: center;
    padding: 30px 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 0.8;
    }
}

/* ===============================
    NAVBAR
    ================================ */
.navbar-metamorfosis {
    background: rgba(15, 12, 41, 0.85) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.3);
    position: sticky !important;
    top: 0;
    z-index: 1000 !important;
    width: 100%;
}

.navbar-metamorfosis .navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #b993d6, #8ca6db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0;
    margin: 0;
}

.navbar-metamorfosis .navbar-brand img {
    height: clamp(2.5rem, 3.5vw, 3rem);
    width: auto;
    object-fit: contain;
    margin-left: 1rem;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.navbar-metamorfosis .navbar-brand img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px rgba(185, 147, 214, 0.7));
}

.navbar-metamorfosis .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 400;
}

.navbar-metamorfosis .nav-link:hover {
    color: #b993d6 !important;
    transform: translateY(-2px);
}

.navbar-metamorfosis .nav-link:active,
.navbar-metamorfosis .nav-link:focus {
    color: #b993d6 !important;
}

/* BOTÓN — REGISTRARSE */
.btn-outline-member {
    border: 1.5px solid rgba(200, 170, 255, 0.8);
    color: rgba(200, 170, 255, 0.9);
    background: transparent;
    padding: 0.5rem 1.3rem;
    margin-right: 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    letter-spacing: 0.18rem;
    text-transform: uppercase;
    transition: all 0.35s ease;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.btn-outline-member:hover {
    background: linear-gradient(135deg,
            rgba(200, 170, 255, 0.25),
            rgba(160, 130, 230, 0.35));
    color: #ffffff;
    border-color: rgba(220, 190, 255, 1);
    box-shadow:
        0 0 14px rgba(200, 170, 255, 0.5),
        inset 0 0 12px rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.btn-outline-member:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(200, 170, 255, 0.35);
}

.btn-outline-member:active {
    transform: scale(0.96);
    box-shadow: 0 0 8px rgba(200, 170, 255, 0.4);
}

/* Botón Soy Miembro */
.navbar-metamorfosis .btn-member {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    color: white !important;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    display: inline-block;
}

.navbar-metamorfosis .btn-member:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    color: white !important;
}

/* Toggler para móviles */
.navbar-metamorfosis .navbar-toggler {
    border-color: rgba(185, 147, 214, 0.5);
    padding: 0.25rem 0.75rem;
}

.navbar-metamorfosis .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(185, 147, 214, 0.3);
}

.navbar-metamorfosis .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===============================
    FOOTER
    ================================ */
.footer-main {
    background: rgba(15, 12, 41, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    margin-top: 4rem;
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(138, 43, 226, 0.3);
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: bold;
    background: linear-gradient(45deg, #b993d6, #8ca6db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #b993d6;
}

.footer-bottom {
    background: rgba(10, 8, 30, 0.98);
    padding: 0.8rem 0;
    text-align: center;
    border-top: 1px solid rgba(138, 43, 226, 0.2);
    z-index: 100;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: #8ca6db;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-bottom a:hover {
    color: #b993d6;
}

/* ===============================
    BOTONES GENERALES
    ================================ */
.main-buttons {
    display: flex;
    gap: 6rem;
    margin-top: 3rem;
    padding-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-menu {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.btn-menu:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.2);
    color: white;
}

/* ===============================
    MODALES - ESTILOS BASE
    ================================ */
.modal-content {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 2rem);
    background: radial-gradient(circle at top, #1a1a2e, #0a0a16 70%);
    border: 1px solid rgba(120, 90, 255, 0.3);
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    /* Evita que el contenido desborde los bordes redondeados */
}

.modal-dialog {
    margin: 1rem auto;
    max-width: 900px;
}

.modal-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.95), rgba(10, 10, 22, 0.95));
    border-bottom: 1px solid rgba(150, 130, 255, 0.12);
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(170, 150, 255, 0.6);
    color: #c8bfff;
}

.modal-header .btn-close {
    filter: invert(80%);
    opacity: 0.8;
    transition: 0.2s ease;
}

.modal-header .btn-close:hover {
    opacity: 1;
    filter: drop-shadow(0 0 10px #a289ff);
}

.modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1.25rem;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
}

@supports (-webkit-overflow-scrolling: touch) {
    .modal-body {
        -webkit-overflow-scrolling: touch;
    }
}

.modal-footer {
    border-top: 1px solid rgba(150, 130, 255, 0.2);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Responsive Modals Global */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem auto;
        max-width: calc(100% - 1rem);
    }

    .modal-content {
        max-height: calc(100vh - 1rem);
    }

    .modal-footer {
        flex-wrap: nowrap !important;
        gap: 8px !important;
        padding: 0.8rem 1rem !important;
    }

    .modal-footer>button,
    .modal-footer>.btn {
        flex: 1 !important;
        margin: 0 !important;
        padding: 0.6rem 0.4rem !important;
        font-size: 0.8rem !important;
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-footer .btn i {
        margin-right: 4px;
        font-size: 0.9rem;
    }
}

/* Animación de entrada tipo "warp" */
.modal.fade .modal-dialog {
    transform: scale(0.7) translateY(-20px);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.3, 0.1, 0.3, 1.0);
}

.modal.fade.show .modal-dialog {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Sombras neón al enfocar elementos dentro del modal */
.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
    border-color: #9d7aff;
    box-shadow: 0 0 12px rgba(150, 120, 255, 0.7);
}

/* Botones dentro del modal estilo galaxia */
.modal-content .btn-galaxy {
    background: linear-gradient(45deg, #6b4eff, #9b78ff);
    border: none;
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
    transition: 0.25s ease;
}

.modal-content .btn-galaxy:hover {
    background: linear-gradient(45deg, #8063ff, #b89aff);
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(150, 120, 255, 0.7);
}

/* Scrollbar galáctico dentro del modal */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(#8c79ff, #5c4bff);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.modal-body p {
    color: #ffffff !important;
    font-size: 1.05rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* ===============================
    MODALES - VIDEOS
    ================================ */
.video-wrapper {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

.video-vertical {
    width: 100%;
    aspect-ratio: 9 / 16;
    background: #000;
    border-radius: 10px;
    box-shadow: 0 0 18px rgba(140, 110, 255, 0.4);
    border: 1px solid rgba(150, 130, 255, 0.3);
}

/* Contenedor YOUTUBE responsive */
.youtube-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 18px rgba(140, 110, 255, 0.4);
    border: 1px solid rgba(150, 130, 255, 0.3);
}

.youtube-horizontal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===============================
    MODALES - SECCIONES
    ================================ */
.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #dcd6ff;
    margin-bottom: 10px;
    text-shadow: 0 0 6px rgba(150, 120, 255, 0.5);
}

.section-phrase {
    font-style: italic;
    color: #c7bfff;
    text-align: center;
    margin-top: 8px;
    text-shadow: 0 0 4px rgba(150, 120, 255, 0.3);
}

.section-block {
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(150, 130, 255, 0.15);
}

.section-block:last-of-type {
    border-bottom: none;
}

.section-video-row {
    border-bottom: 1px solid rgba(150, 130, 255, 0.15);
    padding-bottom: 20px;
}

.section-video-row:last-of-type {
    border-bottom: none;
}

.section-desc {
    color: #cfc8ff;
    font-size: 0.95rem;
}

/* ===============================
    MODALES - ACORDEONES
    ================================ */
.accordion {
    --galaxy-border: rgba(170, 150, 255, 0.25);
    --galaxy-border-strong: rgba(170, 150, 255, 0.5);
    --galaxy-bg: rgba(22, 16, 40, 0.65);
    --galaxy-bg-active: rgba(35, 25, 65, 0.9);
    --galaxy-text: #e5ddff;
}

.accordion-item {
    background: var(--galaxy-bg);
    border: 1px solid var(--galaxy-border);
    border-radius: 14px !important;
    margin-bottom: 14px;
    box-shadow: 0 0 22px rgba(150, 130, 255, 0.15);
    overflow: hidden;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.accordion-button {
    background: var(--galaxy-bg);
    color: var(--galaxy-text);
    padding: 16px 20px;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    font-weight: 500;
    border: none;
    transition: 0.25s ease;
    box-shadow: none !important;
}

.accordion-button.collapsed {
    color: #cabdff;
    background: var(--galaxy-bg);
}

.accordion-button:not(.collapsed) {
    background: var(--galaxy-bg-active);
    color: white;
    border-bottom: 1px solid var(--galaxy-border-strong);
    box-shadow: inset 0 0 15px rgba(180, 150, 255, 0.25);
}

.accordion-button::after {
    filter: brightness(130%) hue-rotate(235deg);
    opacity: 0.8;
}

.accordion-body {
    background: rgba(10, 8, 25, 0.55);
    color: var(--galaxy-text);
    padding: 20px 24px;
    border-top: 1px solid var(--galaxy-border);
}

.accordion-button:hover {
    background: rgba(45, 32, 85, 0.8);
    color: white;
}

/* ===============================
    MODAL - PROXIMAMENTE
    ================================ */
.modal-proximamente {
    background: radial-gradient(circle at top, #1a1a2e, #0a0a16 70%);
    border: 1px solid rgba(180, 150, 255, 0.2);
    border-radius: 20px !important;
    box-shadow: 0 0 25px rgba(170, 140, 255, 0.45);
    animation: modalFade 0.5s ease;
}

.proximo-icon img {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 0 12px rgba(200, 170, 255, 0.7));
    animation: levitar 3s ease-in-out infinite;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
}

@keyframes levitar {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

.modal-proximamente .modal-title {
    color: #e7ddff;
    font-size: 1.4rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(170, 140, 255, 0.6);
}

.proximo-title {
    color: #efe9ff;
    font-size: 1.2rem;
    font-weight: 500;
    text-shadow: 0 0 6px rgba(140, 110, 255, 0.45);
}

.proximo-desc {
    color: #cfcfe8;
    font-size: 1rem;
    line-height: 1.5;
}

/* ===============================
    MODAL - CALENDARIO
    ================================ */
.calendario-responsive {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.calendario-iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

#modalCalendario iframe {
    width: 100%;
    height: 100%;
}

/* ===============================
    MODAL - TIENDA
    ================================ */
.modal-tienda-content {
    background: radial-gradient(circle at top, #1a1a2e, #0a0a16 70%) !important;
    border: 1px solid rgba(170, 150, 255, 0.3) !important;
    border-radius: 18px !important;
    padding: 1.5rem;
    box-shadow: 0 0 25px rgba(170, 150, 255, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.modal-tienda-title {
    font-size: 1.4rem;
    font-weight: 600;
    background: linear-gradient(135deg, #9f7aea, #f3a4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 12px rgba(180, 150, 255, 0.5);
    padding: 0.2rem 0;
    display: inline-block;
}

.tienda-country-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.btn-country {
    flex: 0 0 calc(33.333% - 0.6rem);
    max-width: 180px;
    display: block;
    padding: 0.85rem 1rem;
    background: rgba(80, 60, 150, 0.5);
    border: 1px solid rgba(160, 130, 255, 0.4);
    border-radius: 12px;
    text-align: center;
    color: #eee !important;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-country:hover {
    background: rgba(130, 110, 255, 0.7);
    border-color: rgba(200, 170, 255, 0.8);
    color: white !important;
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(175, 140, 255, 0.5);
}

.btn-country:active {
    transform: translateY(-2px);
}

#modalTienda .modal-footer .btn-secondary,
#modalCompraServicio .modal-footer .btn-secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

#modalTienda .modal-footer .btn-secondary:hover,
#modalCompraServicio .modal-footer .btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
}

/* ===============================
    MODAL - LOGIN
    ================================ */
.modal-login-content {
    background: radial-gradient(circle at top, #1a1a2e, #0a0a16 70%);
    border: 1px solid rgba(150, 130, 255, 0.35);
    border-radius: 22px;
    box-shadow: 0 0 30px rgba(150, 120, 255, 0.35);
}

.login-input {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(150, 130, 255, 0.35) !important;
    color: #fff !important;
}

.login-input::placeholder {
    color: #cfc7ff;
}

.login-input:focus {
    border-color: #9d7aff !important;
    box-shadow: 0 0 12px rgba(150, 120, 255, 0.7) !important;
}

#modalLogin .modal-body p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 0 6px rgba(150, 120, 255, 0.3);
}

#modalLogin .modal-dialog {
    max-width: 360px !important;
    width: 100%;
}

#modalLogin .modal-body {
    padding: 2rem 1.6rem;
}

.titleUser {
    filter:
        drop-shadow(0 0 6px rgba(200, 170, 255, 0.45)) drop-shadow(0 0 14px rgba(160, 120, 255, 0.35));
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
    opacity: 0.95;

}

.modal-login-content input,
.modal-login-content textarea {
    width: 100%;
    box-sizing: border-box;
}

.modal-login-sm {
    max-width: 420px !important;
}

/* ===============================
    MODAL - PAGO
    ================================ */
#montoPago {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(150, 130, 255, 0.25);
}

#montoPago::placeholder {
    color: #cfc7ff;
}

.form-label {
    font-weight: 500;
    text-shadow: 0 0 6px rgba(170, 150, 255, 0.6);
}

#metodoPago {
    background-color: rgba(20, 17, 40, 0.8) !important;
    color: #fff !important;
    border: 1px solid rgba(150, 130, 255, 0.4) !important;
    border-radius: 8px;
    padding: 10px;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

#metodoPago option {
    background-color: #0f0b20;
    color: #fff;
}

#metodoPago option:hover {
    background-color: #1c1538;
}

.monto-badge {
    background: linear-gradient(135deg, #9333ea, #a855f7, 0.2);
    padding: 0.6rem 1.2rem;
    color: white;
    border-radius: 30px;
    display: inline-block;
    font-size: 1.4rem;
    font-weight: bold;
    text-shadow: 0 0 15px rgba(147, 51, 234, 0.6);
    margin: 10px auto;
}

/* ===============================
    CARDS DE CONTACTO
    ================================ */
.social-card {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(150, 130, 255, 0.15);
    border-radius: 14px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    padding: 15px;
    transition: 0.3s ease;
}

.social-card:hover {
    border-color: rgba(180, 150, 255, 0.4);
    box-shadow: 0 0 18px rgba(170, 140, 255, 0.3);
    transform: translateY(-3px);
}

.social-icon {
    font-size: 2.4rem;
    color: #cfc5ff;
    text-shadow: 0 0 10px rgba(180, 120, 255, 0.6);
    transition: 0.3s ease;
}

.social-card:hover .social-icon {
    text-shadow: 0 0 14px rgba(200, 150, 255, 0.9);
    transform: scale(1.07);
}

.social-card .card-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 0 6px rgba(170, 150, 255, 0.5);
    margin-bottom: 4px;
}

.social-handle {
    color: #d8d1ff;
    font-size: 0.9rem;
    opacity: 0.9;
    text-shadow: 0 0 4px rgba(200, 180, 255, 0.3);
}

/* ===============================
    PÁGINA INDEX
    ================================ */
#bg-video {
    position: relative;
    width: clamp(240px, 36vw, 720px);
    max-height: clamp(180px, 38vh, 380px);
    height: auto;
    object-fit: contain;
    margin: 0.6rem 0;
    z-index: 2;
    opacity: 0;
    display: block;
}

.fade-in {
    animation: fadeIn 2s ease forwards;
}

.fade-out {
    animation: fadeOut 2s ease forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* ===============================
    PÁGINA INICIO
    ================================ */
#inicio {
    overflow-y: auto;
    min-height: 90vh;
    margin-bottom: 2rem;
}

.btn-galaxy {
    position: relative;
    display: inline-block;
    color: #fff;
    background: radial-gradient(circle at 30% 30%, #432371, #000);
    border: 1px solid #7b5ebc;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.2rem;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 1;
    text-decoration: none;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.btn-galaxy::before,
.btn-galaxy::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(2px 2px at 20% 30%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 80% 70%, #ffd6ff, transparent),
        radial-gradient(1px 1px at 60% 40%, #b89bff, transparent),
        radial-gradient(2px 2px at 40% 80%, #fff, transparent);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}

.btn-galaxy:hover::before,
.btn-galaxy:hover::after {
    opacity: 1;
    transform: scale(1);
    animation: star-twinkle 2s infinite ease-in-out;
}

@keyframes star-twinkle {

    0%,
    100% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.btn-galaxy:hover {
    box-shadow: 0 0 25px 5px rgba(187, 134, 252, 0.4),
        0 0 40px 15px rgba(90, 45, 146, 0.3);
    border-color: #d8b4ff;
    color: #ffdfff;
    transform: translateY(-5px) scale(1.03);
}

.main-contentInicio {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 1rem;
    margin-bottom: 2rem;
    margin-top: 3rem;
}

.menu-gridInicio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    width: 100%;
    padding: 0 1rem;
    cursor: pointer;
}

.menu-buttonInicio {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(147, 51, 234, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: clamp(0.5rem, 2vw, 1rem);
    border-radius: 20px;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 3;
    cursor: pointer;
}

.menu-buttonInicio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.menu-buttonInicio:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: rgba(147, 51, 234, 0.8);
    box-shadow: 0 15px 40px rgba(147, 51, 234, 0.4);
    color: white;
    cursor: pointer;
}

.menu-buttonInicio:hover::before {
    opacity: 1;
}

.menu-buttonInicio span {
    position: relative;
    z-index: 3;
}

/* Mandala Animada de Fondo */
.mandala-container {
    margin-top: 2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 0;
    pointer-events: none;
}

.mandala {
    width: 120vmin;
    height: 120vmin;
    opacity: 0.3;
    animation: girar 120s linear infinite;
}

@keyframes girar {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.mandala circle,
.mandala ellipse,
.mandala path,
.mandala line {
    fill: none;
    stroke: #ffffff;
    stroke-width: 1.5;
    opacity: 0.6;
}

.mandala .petal {
    stroke: #ffffff;
    stroke-width: 1.2;
    opacity: 0.5;
}

.mandala .detail {
    stroke: #ffffff;
    stroke-width: 0.8;
    opacity: 0.4;
}

/* ===============================
    PÁGINA TIENDA
    ================================ */
.tienda-main-title {
    font-size: clamp(1rem, 5vw, 2.5rem);
    font-weight: 600;
    letter-spacing: 0.2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(147, 51, 234, 0.3);
}

.tienda-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    letter-spacing: 0.05rem;
    margin-bottom: 0;
}

.tienda-card {
    background: rgba(20, 15, 40, 0.72);
    border: 1px solid rgba(150, 130, 255, 0.25);
    border-radius: 14px;
    padding: 1.2rem;
    box-shadow: 0 0 18px rgba(150, 120, 255, 0.12);
    transition: 0.3s ease;
}

.tienda-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 26px rgba(180, 150, 255, 0.35);
}

.tienda-img {
    width: 100%;
    aspect-ratio: 2.5/3.5;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(150, 130, 255, 0.2);
}

.tienda-title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: #e5ddff;
    text-shadow: 0 0 6px rgba(160, 140, 255, 0.6);
}

.tienda-card .tienda-desc {
    color: #c3c8cf;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    line-height: 1.5;
    text-align: justify !important;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    overflow-wrap: anywhere;
    word-break: break-word;
    width: 100%;
    display: block;
    /* Scroll para descripciones largas */
    max-height: 480px;
    overflow-y: auto;
    padding-right: 8px;
}

/* Scrollbar personalizado */
.tienda-card .tienda-desc::-webkit-scrollbar {
    width: 6px;
}

.tienda-card .tienda-desc::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.tienda-card .tienda-desc::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 4px;
}

.tienda-card .tienda-desc::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.7);
}

@supports (text-justify: inter-word) {
    .tienda-card .tienda-desc {
        text-justify: inter-word;
    }
}

.tienda-price {
    font-size: 1.25rem;
    margin-bottom: 0.9rem;
    color: #c3c8cf;
    font-weight: 600;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.4);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(100%) drop-shadow(0 0 8px #b896ff);
}

.carousel-control-prev,
.carousel-control-next {
    width: 12%;
}

.carousel-inner img {
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 0 15px rgba(110, 85, 255, 0.4);
}

/* ===============================
    PANEL DE ADMINISTRACIÓN
    ================================ */
body.admin-page {
    background: radial-gradient(circle at top, var(--admin-bg-primary), var(--admin-bg-secondary));
    color: var(--admin-text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hacer que el contenido principal crezca y empuje el footer hacia abajo */
body.admin-page>.container,
body.admin-page>div:not(.navbar):not(.footer-main):not(.footer-bottom):not(.modal) {
    flex: 1 0 auto;
}

/* Asegurar que el footer quede al final */
body.admin-page .footer-main {
    margin-top: auto;
}


.admin-header {
    background: linear-gradient(135deg, rgba(42, 23, 61, 0.35), rgba(60, 36, 83, 0.26));
    color: var(--admin-text-primary);

    /* Layout Centrado */
    display: flex;
    align-items: center;
    /* Centrado vertical */
    justify-content: center;
    /* Centrado horizontal del container */
    min-height: 200px;
    /* Altura mínima consistente */

    padding: 3rem 5rem;
    margin-bottom: 5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    position: relative;
}

.admin-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.admin-header h1 {
    font-size: clamp(3rem, 6vw, 3.5rem);
    font-weight: 300;
    margin-bottom: 0;
    margin-left: 1rem;
    background: linear-gradient(135deg, #506dbe, #9357a5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-header p {
    opacity: 0.75;
    margin: 0;
    font-size: 0.95rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 1rem;
}

.admin-card {
    margin-top: 0;
    border: 1px solid var(--admin-border);
    border-radius: 18px;
    background: var(--admin-card-bg);
    box-shadow: var(--admin-shadow);
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease, border-color 0.35s ease;
    height: 100%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.admin-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(169, 139, 255, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.admin-card:hover {
    transform: translateY(-6px) scale(1.01);
    background: var(--admin-card-hover);
    border-color: var(--admin-border-hover);
    box-shadow: var(--admin-shadow-hover), 0 0 18px rgba(170, 120, 255, 0.25);
}

.admin-card:hover::before {
    opacity: 1;
}

.admin-card .card-body {
    padding: 2rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.admin-card i {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--admin-accent);
    filter: drop-shadow(0 0 10px rgba(169, 139, 255, 0.45));
    transition: transform 0.35s ease, filter 0.35s ease;
}

.admin-card:hover i {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 18px rgba(190, 150, 255, 0.75));
}

.admin-card h5 {
    font-family: 'Marcellus', serif;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--admin-text-primary);
    font-size: 1.3rem;
    letter-spacing: 0.05rem;
    transition: color 0.3s ease;
}

.admin-card:hover h5 {
    color: #ffffff;
}

.admin-card p {
    color: var(--admin-text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.admin-card:hover p {
    color: #d0c4e8;
}

/* ===============================
    BOTONES ADMIN
    ================================ */
.btn-admin {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-admin:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.5);
}

.btn-admin:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(102, 126, 234, 0.3);
}

.btn-admin i {
    font-size: 1rem;
}

.btn-admin-dark {
    background: linear-gradient(135deg, #2a173d, #3c2453);
    color: rgba(177, 149, 226, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.55rem 1.3rem;
    font-weight: 500;
    letter-spacing: 0.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
}

.btn-admin-dark i {
    margin-right: 0.4rem;
}

.btn-admin-dark:hover {
    background: linear-gradient(135deg, #3c2453, #52306f);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.6),
        0 0 12px rgba(170, 120, 255, 0.35);
}

.btn-admin-dark:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(88, 51, 83, 0.5);
}

.btn-admin-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 0.7rem 1.8rem;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-admin-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #667eeab0 0%, #764ba2cc 100%);
    color: white;
}

.btn-admin-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.7rem 1.8rem;
    border-radius: 12px;
    color: var(--admin-text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-admin-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ===============================
    TABLA DE USUARIOS ADMIN
    ================================ */
.admin-table-card {
    background: linear-gradient(145deg, #1b0b31 0%, #271343 100%) !important;
    border: 1px solid rgba(170, 120, 255, 0.2) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6) !important;
}

.admin-table {
    background: transparent !important;
    color: #443274;
}

.admin-table thead {
    background: linear-gradient(135deg, rgba(80, 45, 130, 0.8), rgba(60, 30, 100, 0.8)) !important;
}

.admin-table th {
    color: #eee7ff !important;
    font-weight: 600;
    padding: 0.6rem 0.85rem !important;
    border: none !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05rem;
    background-color: #443274;
}

.admin-table tbody tr {
    border-bottom: 1px solid rgba(170, 120, 255, 0.08);
    transition: all 0.3s ease;
}

.admin-table tbody tr:hover {
    background: linear-gradient(90deg,
            rgba(102, 126, 234, 0.08) 0%,
            rgba(118, 75, 162, 0.12) 50%,
            rgba(102, 126, 234, 0.08) 100%) !important;
    transform: translateY(3px);
}

.admin-table td {
    color: #d4c5ee !important;
    padding: 0.55rem 0.85rem !important;
    border: none !important;
    vertical-align: middle;
    background-color: #533f8a;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6f87ee, #764ba1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.badge-rol {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.badge-admin {
    background: linear-gradient(135deg, #10b981bd, #059668de);
    color: white;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-regular {
    background: linear-gradient(135deg, #5ce4f6cc, #3ca2afcc);
    color: white;
    border: 1px solid rgba(92, 184, 246, 0.3);
}

.badge-oruga {
    background: linear-gradient(135deg, #f5e50bd2, #f5d20bd2);
    color: white;
    border: 1px solid rgba(245, 183, 11, 0.3);
}

.badge-capullo {
    background: linear-gradient(135deg, #e7771cd5, #ff8d0ad5);
    color: white;
    border: 1px solid rgba(185, 112, 16, 0.3);
}

.badge-mariposa {
    background: linear-gradient(135deg, #d832a1cb, #e525ebbe);
    color: white;
    border: 1px solid rgba(230, 59, 246, 0.3);
}

.badge-sin-rol {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.admin-badge {
    padding: 0.45rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.admin-badge i {
    font-size: 0.9rem;
}

.admin-badge-active {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.15));
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

.admin-badge-inactive {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.15));
    color: #ff7e7e;
    border: 1px solid rgba(255, 93, 93, 0.4);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.btn-action {
    padding: 0.5rem 0.7rem;
    font-size: 0.9rem;
    border-radius: 8px;
    margin: 0.15rem;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.btn-action i {
    font-size: 1rem;
}

.admin-table td:last-child {
    white-space: nowrap !important;
    vertical-align: middle;
}

.search-box {
    background: rgba(30, 20, 45, 0.6) !important;
    border: 1px solid rgba(170, 120, 255, 0.3) !important;
    border-radius: 10px;
    padding: 0.7rem 1.2rem;
    color: white !important;
    width: 100%;
    max-width: 350px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.search-box::placeholder {
    color: rgba(200, 180, 255, 0.5) !important;
}

.search-box:focus {
    background: rgba(40, 30, 60, 0.8) !important;
    border-color: #667eea !important;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.4) !important;
    outline: none;
}

/* ===============================
   PAGINACIÓN GALÁCTICA RESPONSIVE
   ================================ */

.galaxy-pagination .page-link {
    background-color: rgba(22, 16, 40, 0.8) !important;
    border: 1px solid rgba(170, 150, 255, 0.3) !important;
    color: #b8accf !important;
    border-radius: 8px;
    margin: 0 3px;
    transition: all 0.3s ease;
    padding: 0.5rem 0.75rem;
}

.galaxy-pagination .page-link:hover {
    background-color: rgba(102, 126, 234, 0.3) !important;
    color: white !important;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.4);
}

.galaxy-pagination .page-item.disabled .page-link {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.galaxy-pagination .page-item:first-child .page-link,
.galaxy-pagination .page-item:last-child .page-link {
    border-radius: 8px;
}

/* Paginación responsive */
@media (max-width: 768px) {
    #paginationContainer {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }

    #paginationInfo {
        font-size: 0.8rem;
    }

    .galaxy-pagination .page-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
        margin: 0 2px;
    }
}

@media (max-width: 576px) {
    #paginationInfo {
        font-size: 0.75rem;
    }

    .galaxy-pagination .page-link {
        padding: 0.35rem 0.5rem;
        font-size: 0.8rem;
        margin: 0 1px;
    }

    .galaxy-pagination .page-link i {
        font-size: 0.75rem;
    }
}


/* ===============================
    ESTILOS MEJORADOS PARA BITÁCORA
    ================================ */

/* Corrección del margin-top en admin-card */
.admin-card {
    margin-top: 0;
    border: 1px solid var(--admin-border);
    border-radius: 18px;
    background: var(--admin-card-bg);
    box-shadow: var(--admin-shadow);
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease, border-color 0.35s ease;
    height: 100%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* ===============================
    DISEÑO DE NOTAS GALÁCTICAS
   =============================== */

.nota-card {
    border: 1px solid rgba(169, 139, 255, 0.15) !important;
    background: linear-gradient(145deg, rgba(31, 19, 43, 0.7), rgba(15, 10, 25, 0.8)) !important;
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border-radius: 16px !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 5px solid var(--admin-accent) !important;
    position: relative;
    overflow: visible !important;
}

/* Brillo sutil de fondo en hover */
.nota-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(169, 139, 255, 0.1), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nota-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(169, 139, 255, 0.4) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 15px rgba(138, 43, 226, 0.2) !important;
}

.nota-card:hover::after {
    opacity: 1;
}

/* Avatar y Header de nota */
.nota-card img.rounded-circle {
    border: 2px solid var(--admin-accent) !important;
    box-shadow: 0 0 10px rgba(169, 139, 255, 0.3);
}

.nota-content {
    font-size: 1.05rem;
    color: var(--admin-text-secondary);
    line-height: 1.7;
    text-align: left;
    white-space: pre-wrap;
    max-height: 17rem;
    /* ~10 líneas */
    overflow-y: auto;
    padding-right: 6px;
}

.nota-content::-webkit-scrollbar {
    width: 5px;
}

.nota-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
}

.nota-content::-webkit-scrollbar-thumb {
    background: rgba(169, 139, 255, 0.4);
    border-radius: 4px;
}

.nota-content::-webkit-scrollbar-thumb:hover {
    background: rgba(169, 139, 255, 0.7);
}

/* Inputs con estilo "Espacial" */
.glass-input,
.admin-form-control {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(170, 120, 255, 0.15) !important;
    color: #f1ebff !important;
}

.glass-input:focus {
    background: rgba(138, 43, 226, 0.05) !important;
    border-color: var(--admin-accent) !important;
    box-shadow: 0 0 12px rgba(169, 139, 255, 0.3) !important;
}

/* Stats estilo Badge Galáctico */
.stat-item {
    background: rgba(169, 139, 255, 0.1);
    padding: 6px 18px;
    border-radius: 50px;
    border: 1px solid rgba(169, 139, 255, 0.2);
    color: var(--admin-text-primary);
    backdrop-filter: blur(5px);
    transition: 0.3s;
}

.stat-item:hover {
    background: rgba(169, 139, 255, 0.2);
    border-color: var(--admin-accent);
}

/* ===============================
    OPTIMIZACIÓN RESPONSIVE
   =============================== */

@media (max-width: 991px) {

    /* El formulario baja, eliminamos el sticky para que no tape contenido */
    .position-sticky {
        position: static !important;
        margin-top: 2rem;
    }

    .nota-card {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 576px) {
    .nota-card {
        border-left-width: 3px !important;
    }

    .nota-card .card-body {
        padding: 1.25rem !important;
    }

    .nota-content {
        font-size: 0.95rem;
    }

    .stats-mini {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem !important;
    }

    .stat-item {
        padding: 4px 12px;
        font-size: 0.85rem;
    }
}

/* Ajustes de espaciado para el cambio de orden */
@media (max-width: 991px) {

    /* Separación entre el formulario (ahora arriba) y el feed (abajo) */
    .order-first.col-lg-4 {
        margin-bottom: 2.5rem;
    }

    /* En móvil no queremos que el título de la página sea gigante */
    h1,
    .admin-header h1 {
        font-size: 1.8rem !important;
        text-align: center;
    }
}

/* Mejora para el Sticky solo en pantallas grandes */
@media (min-width: 992px) {
    .sticky-lg-top {
        position: sticky !important;
        top: 100px;
    }
}

/* Animación sutil para las notas al aparecer */
.nota-card {
    animation: galaxyFadeIn 0.6s ease-out backwards;
}

@keyframes galaxyFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Limitar ancho máximo para mejor legibilidad */
#feedNotas {
    max-width: 100%;
    margin: 0 auto;
}











/* Mejora en la card de estadísticas y formulario */
.perfil-card-galaxy {
    margin-top: 0 !important;
}

.perfil-card-galaxy.mb-4 {
    margin-bottom: 2rem !important;
}

/* Asegurar que el spinner de carga se vea bien */
#feedNotas .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}




























/* ===============================
    MODAL EDITAR USUARIO
    ================================ */
.profile-photo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.profile-photo-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 3px dashed rgba(102, 126, 234, 0.3);
    overflow: hidden;
    transition: all 0.3s ease;
}

.profile-photo-preview:hover {
    border-color: rgba(102, 126, 234, 0.6);
    transform: scale(1.05);
}

.profile-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#modalEditarUsuario .modal-dialog {
    max-width: 700px;
}

#modalEditarUsuario .admin-form-control {
    background: rgba(30, 20, 45, 0.4);
    border: 1px solid rgba(170, 120, 255, 0.25);
    transition: all 0.3s ease;
}

#modalEditarUsuario .admin-form-control:focus {
    background: rgba(40, 30, 60, 0.6);
    border-color: #667eea;
    box-shadow: 0 0 12px rgba(102, 126, 234, 0.3);
}

#modalEditarUsuario .btn-admin-primary {
    min-width: 150px;
}

#modalEditarUsuario .btn-admin-secondary {
    min-width: 120px;
}

/* ===============================
    FORMULARIOS ADMIN
    ================================ */
.admin-form-group {
    margin-bottom: 1.5rem;
}

.admin-form-label {
    color: var(--admin-text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.admin-form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--admin-text-primary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    width: 100%;
    transition: all 0.3s ease;
}

.admin-form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--admin-accent);
    box-shadow: 0 0 12px rgba(169, 139, 255, 0.3);
    outline: none;
}

.admin-form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* ===============================
    CORRECCIÓN DE SELECTS (MODO OSCURO)
    ================================= */
select,
.admin-form-control,
.form-select {
    color-scheme: dark;
}

select option,
.admin-form-control option,
.form-select option {
    background-color: #1a1a2e !important;
    color: #f1ebff !important;
    padding: 10px;
}

select:focus>option:checked {
    background: #667eea !important;
    color: #fff !important;
}

/* ===============================
    RESPONSIVE - GLOBAL
    ================================ */
/* Navbar Responsive */
@media (max-width: 991px) {

    .navbar-metamorfosis .navbar-nav {
        padding: 1rem 0;
    }

    .navbar-metamorfosis .nav-link {
        margin: 0.5rem 0;
        padding: 0.5rem 1rem;
    }

    .navbar-metamorfosis .btn-member {
        margin-top: 1rem;
        width: 100%;
        max-width: 200px;
    }

    .btn-admin {
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 768px) {
    .navbar-metamorfosis {
        padding: 0.3rem 0;
    }

    .navbar-metamorfosis .navbar-brand img {
        height: 2.2rem;
        margin-left: 0.5rem;
    }
}

@media (max-width: 576px) {
    .navbar-metamorfosis .navbar-brand img {
        height: 2rem;
    }
}

/* ===============================
    RESPONSIVE - ADMIN PANEL
    ================================= */
/* Pantallas grandes (>1400px) */
@media (min-width: 1400px) {

    .admin-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .admin-card {
        margin-top: 2rem;
    }
}

/* Pantallas medianas-grandes (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .admin-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.8rem;
    }

    .admin-card {
        margin-top: 1.5rem;
    }

    .admin-card .card-body {
        padding: 1.8rem 1.5rem;
    }

    .admin-card i {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .admin-card h5 {
        font-size: 1.15rem;
    }

    .admin-card p {
        font-size: 0.88rem;
    }
}

/* Laptops medianas (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .admin-header {
        padding: 1.8rem 0;
    }

    .admin-header h1 {
        font-size: clamp(2rem, 5vw, 2.5rem);
    }

    .admin-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .admin-card {
        margin-top: 1rem;
    }

    .admin-card .card-body {
        padding: 1.5rem 1.2rem;
    }

    .admin-card i {
        font-size: 2.8rem;
        margin-bottom: 0.8rem;
    }

    .admin-card h5 {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }

    .admin-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* Tablets horizontales (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .admin-header {
        padding: 1.5rem 0;
    }

    .admin-header h1 {
        font-size: clamp(1.5rem, 5vw, 2rem);
        padding: 0 0.5rem;
    }

    .admin-header p {
        font-size: 0.88rem;
        padding: 0 0.5rem;
    }

    .admin-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .admin-card {
        margin-top: 0.8rem;
    }

    .admin-card .card-body {
        padding: 1.5rem;
    }

    .admin-card i {
        font-size: 2.8rem;
        margin-bottom: 1rem;
    }

    .admin-card h5 {
        font-size: 1.15rem;
    }

    .admin-card p {
        font-size: 0.88rem;
    }

    /* Tabla de usuarios - Tablets */
    .admin-table {
        font-size: 0.85rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.8rem 0.6rem !important;
    }

    .admin-table td:last-child {
        white-space: nowrap !important;
    }

    .user-avatar {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .btn-action {
        padding: 0.45rem 0.6rem;
        font-size: 0.85rem;
        margin: 0.1rem;
        display: inline-flex !important;
    }

    .btn-action i {
        font-size: 0.95rem;
    }

    .badge-rol {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
}

/* Tablets verticales (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .admin-header {
        padding: 1.5rem 0;
    }

    .admin-header h1 {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
        padding: 0 0.5rem;
    }

    .admin-header p {
        font-size: 0.85rem;
        padding: 0 0.5rem;
    }

    .admin-header .d-flex {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .admin-header .btn {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    .admin-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
        margin-top: 1.2rem;
    }

    .admin-card {
        margin-top: 0.5rem;
    }

    .admin-card .card-body {
        padding: 1.3rem;
    }

    .admin-card i {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }

    .admin-card h5 {
        font-size: 1.05rem;
    }

    .admin-card p {
        font-size: 0.82rem;
    }

    /* Tabla de usuarios */
    .admin-table {
        font-size: 0.8rem;
        min-width: 850px;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.7rem 0.5rem !important;
    }

    .user-avatar {
        width: 35px;
        height: 35px;
        font-size: 0.95rem;
    }

    .admin-table td:last-child {
        white-space: nowrap !important;
        padding: 0.6rem 0.3rem !important;
    }

    .btn-action {
        padding: 0.4rem 0.5rem;
        font-size: 0.75rem;
        margin: 0.05rem;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    .btn-action i {
        font-size: 0.85rem;
    }

    .badge-rol {
        padding: 0.35rem 0.7rem;
        font-size: 0.7rem;
    }
}

/* Móviles grandes (≤ 575px) */
@media (max-width: 575px) {
    .admin-header {
        padding: 1.2rem 0;
    }

    .admin-header h1 {
        font-size: clamp(1.2rem, 7vw, 1.5rem);
        letter-spacing: 0.02rem;
        padding: 0 0.5rem;
    }

    .admin-header p {
        font-size: 0.8rem;
        padding: 0 0.5rem;
    }

    .admin-header .d-flex {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }

    .admin-header .btn {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .admin-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1rem;
    }

    .admin-card {
        margin-top: 0.5rem;
    }

    .admin-card .card-body {
        padding: 1.3rem;
    }

    .admin-card i {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }

    .admin-card h5 {
        font-size: 1.1rem;
    }

    .admin-card p {
        font-size: 0.85rem;
    }

    /* Tabla de usuarios */
    .search-box {
        max-width: 100%;
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    .admin-table {
        min-width: 900px;
        font-size: 0.75rem;
    }

    .admin-table th {
        padding: 0.6rem 0.4rem !important;
        font-size: 0.7rem;
    }

    .admin-table td {
        padding: 0.6rem 0.4rem !important;
    }

    .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
        border-width: 1px;
    }

    .admin-table td div {
        font-size: 0.75rem;
    }

    .admin-table td small {
        font-size: 0.65rem;
    }

    .admin-table td:last-child {
        white-space: nowrap;
        padding: 0.5rem 0.25rem !important;
        text-align: center;
    }

    .btn-action {
        padding: 0.35rem 0.45rem;
        font-size: 0.7rem;
        margin: 0.05rem 0.02rem;
        border-radius: 6px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: auto;
        width: auto;
    }

    .btn-action i {
        font-size: 0.8rem;
        margin: 0;
    }

    .badge-rol {
        padding: 0.3rem 0.6rem;
        font-size: 0.65rem;
        letter-spacing: 0.02rem;
    }

    .admin-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.65rem;
    }

    .admin-badge i {
        font-size: 0.7rem;
    }
}

/* Móviles pequeños (≤ 400px) */
@media (max-width: 400px) {
    .admin-header {
        padding: 1rem 0;
    }

    .admin-header h1 {
        font-size: 1.15rem;
        word-break: break-word;
        padding: 0 0.3rem;
    }

    .admin-header p {
        font-size: 0.75rem;
        padding: 0 0.3rem;
    }

    .admin-grid {
        gap: 0.8rem;
        padding: 0 0.5rem;
    }

    .admin-card {
        margin-top: 0.3rem;
    }

    .admin-card .card-body {
        padding: 1rem;
    }

    .admin-card i {
        font-size: 2.2rem;
        margin-bottom: 0.6rem;
    }

    .admin-card h5 {
        font-size: 1rem;
    }

    .admin-card p {
        font-size: 0.8rem;
    }

    /* Tabla de usuarios */
    .admin-table {
        min-width: 850px;
        font-size: 0.7rem;
    }

    .admin-table th {
        padding: 0.5rem 0.3rem !important;
        font-size: 0.65rem;
    }

    .admin-table td {
        padding: 0.5rem 0.3rem !important;
    }

    .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .admin-table td:last-child {
        white-space: nowrap !important;
    }

    .btn-action {
        padding: 0.3rem 0.4rem;
        font-size: 0.65rem;
        margin: 0.03rem 0.01rem;
        border-radius: 5px;
        display: inline-flex !important;
    }

    .btn-action i {
        font-size: 0.75rem;
    }

    .badge-rol {
        padding: 0.25rem 0.5rem;
        font-size: 0.6rem;
    }

    .admin-badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.6rem;
    }
}

/* Optimización para altura de pantalla - Admin */
@media (max-height: 800px) {
    .admin-header {
        padding: 1.2rem 0;
        margin-bottom: 1.5rem;
    }

    .admin-card {
        margin-top: 0.8rem;
    }

    .admin-card .card-body {
        padding: 1.3rem 1.5rem;
    }

    .admin-card i {
        font-size: 2.8rem;
        margin-bottom: 0.8rem;
    }
}

@media (max-height: 700px) {
    .admin-header {
        padding: 1rem 0;
        margin-bottom: 1rem;
    }

    .admin-header h1 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    .admin-grid {
        margin-top: 1rem;
        gap: 1.2rem;
    }

    .admin-card {
        margin-top: 0.5rem;
    }

    .admin-card .card-body {
        padding: 1rem 1.2rem;
    }

    .admin-card i {
        font-size: 2.5rem;
        margin-bottom: 0.6rem;
    }

    .admin-card h5 {
        font-size: 1.05rem;
        margin-bottom: 0.3rem;
    }

    .admin-card p {
        font-size: 0.82rem;
        line-height: 1.3;
    }
}

@media (min-width: 992px) and (max-width: 1199px) and (max-height: 750px) {
    .admin-header {
        padding: 1rem 0;
        margin-bottom: 1rem;
    }

    .admin-grid {
        margin-top: 0.8rem;
        gap: 1.2rem;
    }

    .admin-card {
        margin-top: 0.3rem;
    }

    .admin-card .card-body {
        padding: 1.2rem 1rem;
    }

    .admin-card i {
        font-size: 2.5rem;
        margin-bottom: 0.6rem;
    }

    .admin-card h5 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .admin-card p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}

/* Mejora la legibilidad en scroll horizontal */
@media (max-width: 767px) {
    .table-responsive {
        border-radius: 12px;
        box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
    }

    .table-responsive::after {
        content: '← Desliza →';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(102, 126, 234, 0.2);
        color: rgba(255, 255, 255, 0.6);
        padding: 0.3rem 1rem;
        border-radius: 20px 20px 0 0;
        font-size: 0.7rem;
        pointer-events: none;
        opacity: 0.7;
    }

    .table-responsive.scrolled::after {
        opacity: 0;
        transition: opacity 0.3s ease;
    }
}

@media (max-width: 767px) and (max-height: 500px) {
    .admin-header {
        padding: 0.8rem 0;
        margin-bottom: 1rem;
    }

    .admin-header h1 {
        font-size: 1.3rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.4rem 0.3rem !important;
    }

    .btn-action {
        padding: 0.25rem 0.35rem;
    }
}

/* ===============================
    RESPONSIVE - PÁGINAS GENERALES
    ================================ */
/* 1100px */
@media (max-width: 1100px) {
    .menu-gridInicio {
        grid-template-columns: repeat(2, 1fr);
    }

    .menu-buttonInicio:last-child {
        grid-column: 1 / 2;
    }

    .btn-galaxy {
        padding: 0.8rem 1.6rem;
        font-size: 1.05rem;
        letter-spacing: 0.2rem;
        margin-bottom: 2rem;
    }
}

/* Tablets (≤ 992px) */
@media (max-width: 992px) {
    body.inicio .menu-button {
        font-size: 1.1rem;
        padding: 1.5rem;
        min-height: 110px;
    }

    .btn-galaxy {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        letter-spacing: 0.2rem;
        margin-bottom: 1.5rem;
    }
}

/* Celulares & Tablets (≤ 768px) */
@media (max-width: 768px) {
    h1 {
        font-size: 1.9rem;
        letter-spacing: 0.12rem;
        margin-bottom: 1.2rem;
    }

    .main-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .btn-main {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .footer-main {
        padding: 1.2rem 0;
    }

    .footer-links {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .footer-logo {
        font-size: 1.1rem;
    }

    .video-container {
        margin-bottom: 0.8rem;
    }

    #bg-video {
        width: 70%;
        max-width: 400px;
        max-height: 38vh;
        margin: 0.8rem 0;
    }

    .menu-gridInicio {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .menu-buttonInicio {
        min-height: 100px;
        font-size: 1.1rem;
        padding: 1.5rem;
    }

    .mandala {
        opacity: 0.1;
    }

    .mandala-1,
    .mandala-3 {
        left: 5%;
    }

    .mandala-2,
    .mandala-4 {
        right: 5%;
    }

    .btn-galaxy {
        padding: 1.2rem 2.5rem;
        font-size: 1.6rem;
        letter-spacing: 0.3rem;
        margin-bottom: 2.5rem;
    }

    .btn-galaxy:hover {
        transform: translateY(-3px) scale(1.02);
    }

    .calendario-iframe {
        aspect-ratio: 2.5 / 5;
    }

    .modal-tienda-title {
        font-size: 1.2rem;
    }

    .tienda-country-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.7rem;
    }

    .btn-country {
        padding: 0.75rem 0.8rem;
        font-size: 0.9rem;
    }

    .tienda-img {
        aspect-ratio: 2.3/3.4;
    }

    .tienda-title {
        font-size: 1.05rem;
    }

    .tienda-desc {
        font-size: 0.85rem;
    }

    .tienda-price {
        font-size: 1.1rem;
    }
}

/* Dispositivos chicos altura (≤ 750px altura) */
@media (max-height: 750px) {
    #bg-video {
        max-height: 32vh;
    }

    .main-buttons {
        gap: 1.2rem;
    }
}

/* Dispositivos pequeños (≤ 576px) */
@media (max-width: 576px) {
    .btn-main {
        width: 100%;
        max-width: 280px;
    }

    .btn-galaxy {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        letter-spacing: 0.1rem;
        margin-bottom: 1.2rem;
        border-radius: 30px;
    }

    .menu-buttonInicio {
        padding: 1rem;
        font-size: 0.95rem;
    }

    h1 {
        font-size: 1.7rem;
        letter-spacing: 0.1rem;
    }

    #bg-video {
        width: 85%;
        max-width: 300px;
        max-height: 34vh;
        margin: 0.8rem 0;
    }

    .tienda-card {
        padding: 0.9rem;
    }

    .tienda-img {
        aspect-ratio: 2.1/3.2;
    }

    .btn-outline-member {
        font-size: 0.8rem;
        padding: 0.6rem 1.4rem;
    }
}

/* Dispositivos extra pequeños (≤ 480px) */
@media (max-width: 480px) {
    .calendario-iframe {
        aspect-ratio: 1 / 1.4;
    }

    .modal-tienda-content {
        padding: 1rem;
    }

    .modal-tienda-title {
        font-size: 1.1rem;
    }

    .tienda-country-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }

    .btn-country {
        padding: 0.7rem 0.6rem;
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   FIX MODALES - PRIORIDAD DE ALERTAS
   ========================================================================== */
/* Asegura que los modales de confirmaci�n y mensaje est�n siempre encima de otros modales */
/* Modales de alerta (confirmación, mensaje): usan data-bs-backdrop="false"
   y gestionan su propio backdrop via JavaScript */
.modal-alert {
    z-index: 11000 !important;
}


/* El dialog queda bien centrado sin conflictos de transform */
.modal-alert .modal-dialog {
    transform: none !important;
}

/* Texto Galáctico para Hashtags y destacados */
.text-galactic {
    color: #d4b3ff !important;
    background: linear-gradient(135deg, #a98bff 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 10px rgba(169, 139, 255, 0.4);
    font-weight: 600;
}






/* Centrado del feed y limitación de ancho */
#feedNotas {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centra las tarjetas */
    width: 100%;
}

.nota-card {
    max-width: 650px;
    /* Ancho elegante para lectura */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    /* Aseguramos que la tarjeta esté por delante del fondo galáctico */
    position: relative;
    z-index: 5;
}



/* Forzamos que las capas galácticas no bloqueen los clics */
.perfil-galaxy-bg,
.perfil-stars-small,
.perfil-stars-medium,
.perfil-stars-twinkle,
.perfil-nebula {
    pointer-events: none !important;
    /* IMPORTANTE: Permite que el clic pase a través de ellas */
    z-index: -1 !important;
    /* Van detrás de todo el contenido */
    position: fixed !important;
}

/* Aseguramos que el cuerpo y los contenedores estén por delante de las estrellas */
.container {
    position: relative;
    z-index: 1;
}

/* El modal debe estar SIEMPRE por encima de Bootstrap Popovers (z-index: 1070) */
.modal {
    z-index: 1075 !important;
}

.modal-backdrop {
    z-index: 1065 !important;
}

/* Clase personalizada para el botón de editar */
.text-lila {
    color: var(--admin-accent) !important;
    /* Usa el color #a98bff que ya definiste */
    transition: filter 0.3s ease, transform 0.2s ease;
}

.text-lila:hover {
    color: #c8bfff !important;
    /* Un lila más claro al pasar el mouse */
    filter: drop-shadow(0 0 8px rgba(169, 139, 255, 0.8));
    transform: scale(1.1);
}

/* ===============================
    INTL-TEL-INPUT CUSTOM STYLES
    ================================ */
.iti {
    width: 100%;
}

.iti__country-list {
    background-color: #1a1a2e !important;
    color: #fff !important;
    border: 1px solid rgba(120, 90, 255, 0.3) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
}

.iti__country {
    padding: 8px 10px !important;
    transition: background 0.2s !important;
}

.iti__country:hover,
.iti__country.iti__highlight {
    background-color: rgba(120, 90, 255, 0.3) !important;
}

.iti__dial-code {
    color: #ccc !important;
}

.iti__flag-container {
    padding: 2px !important;
}

.iti__selected-dial-code {
    color: #fff !important;
    margin-left: 4px !important;
}

/* Ajustes para inputs dentro de modales oscuros */
.login-input.tel-input,
.admin-form-control.tel-input {
    padding-left: 90px !important;
}

/* Asegurar que el input ocupe el 100% */
.iti input {
    width: 100% !important;
}

/* ===============================
    SECCIONES Y PARTES - DRAG & DROP
    ================================ */
.sortable-ghost {
    opacity: 0.4;
    background: rgba(169, 139, 255, 0.2);
    border: 2px dashed rgba(169, 139, 255, 0.5);
}

.seccion-card {
    transition: all 0.3s ease;
}

.seccion-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 18px rgba(170, 120, 255, 0.3);
}

.partes-container {
    min-height: 200px;
}

.parte-item {
    background: linear-gradient(145deg, #1f132b, #2c193d);
    border: 1px solid rgba(170, 120, 255, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.parte-item:hover {
    border-color: rgba(170, 120, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.parte-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.parte-header .bi-grip-vertical {
    cursor: move;
    color: #b8accf;
    font-size: 1.2rem;
}

.parte-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #f1ebff;
}

.parte-tipo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(169, 139, 255, 0.2);
    border-radius: 8px;
    color: #a98bff;
}

.parte-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-action {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}