@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Cormorant+Garamond:wght@500;600;700&display=swap');

:root {
    --sc-bg: #f5efe8;
    --sc-sand: #e8d8c6;
    --sc-blush: #d9b8a7;
    --sc-clay: #7a104e;
    --sc-clay-dark: #58052c;
    --sc-forest: #6f7c66;
    --sc-text: #40342f;
    --sc-muted: #7d6b63;
    --sc-white: #fffaf6;
    --sc-line: rgba(122, 79, 62, .14);
    --sc-shadow: 0 20px 60px rgba(97, 69, 54, .08);
    --sc-radius: 1.4rem;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at top right, rgba(217, 184, 167, .18), transparent 28%),
        radial-gradient(circle at left center, rgba(232, 216, 198, .45), transparent 26%),
        var(--sc-bg);
    color: var(--sc-text);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

a {
    color: var(--sc-clay-dark);
}

a:hover {
    color: var(--sc-clay);
}

h1, h2, h3, h4, h5, .display-font, .navbar-brand {
    font-family: 'Cormorant Garamond', Georgia, serif;
    letter-spacing: .01em;
}

.navbar {
    background: rgba(255, 250, 246, .1) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(122, 79, 62, .08);
}

.navbar-brand {
    font-size: 1.7rem;
}

.nav-link {
    color: var(--sc-text) !important;
    font-weight: 500;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--sc-clay-dark) !important;
}

.hero {
    position: relative;
    overflow: hidden;
    background:
    linear-gradient(135deg, rgba(232,216,198,.72), rgba(217,184,167,.18)),
    linear-gradient(180deg, rgba(255,250,246,.92), rgba(245,239,232,.96));
    background-image: url('http://localhost/gemaly/public/assets/img/Imagen2.jpg');
    background-blend-mode: multiply;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    margin-top: -160px;
}

.bg-hero {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    background-color: rgba(255, 255, 255, 0.3) !important;
    z-index: 2;
}

.bg-mandala {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0px;
    left: 0;
    z-index: 3;
    overflow: hidden; /* Evita que el mandala se salga de los bordes al girar */
}

/* Esta es la capa que realmente gira */
.bg-mandala::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('http://localhost/gemaly/public/assets/img/circle-yoga.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    
    /* Aplicamos la animación solo a esta capa */
    animation: girar-mandala 20s linear infinite;
    z-index: -1; /* Se mantiene al fondo dentro de .bg-mandala */
}

@keyframes girar-mandala {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 120px;
    background: linear-gradient(180deg, transparent, rgba(245,239,232,.9));
    pointer-events: none;      
}

.hero-content {
    margin-top: 30vh;
    position: relative;
    z-index: 4;
}

.card,
.soft-panel,
.glass-card {
    border: 1px solid var(--sc-line);
    border-radius: var(--sc-radius);
    box-shadow: var(--sc-shadow);
    background: rgba(255, 250, 246, .8);
}

.glass-card {
    backdrop-filter: blur(8px);
}

.soft-panel {
    background: linear-gradient(180deg, rgba(255,250,246,.95), rgba(255,247,241,.88));
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .9rem;
    border-radius: 999px;
    background: rgba(163, 110, 87, .1);
    color: var(--sc-clay-dark);
    font-size: .875rem;
    font-weight: 600;
}

#entrenamiento {
    background-image: url('http://localhost/gemaly/public/assets/img/Imagen3.jpg');
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    z-index: 1;
}

.bg-entrenamiento {
    background-color: rgba(255, 255, 255, 0.1) !important;
    position: relative;
    z-index: 2;
}

.entrenamiento-content {
    padding-top: 3vh;
    position: relative;
    z-index: 3;
}

#cursos {
    background-image: url('http://localhost/gemaly/public/assets/img/Imagen5.jpg');
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    z-index: 1;
}

.bg-cursos {
    background-color: rgba(255, 255, 255, 0.5) !important;
    position: relative;
    z-index: 2;
}

.cursos-content {
    padding-top: 3vh;
    position: relative;
    z-index: 3;
}

.bg-suscribete {
    background-image: url('http://localhost/gemaly/public/assets/img/circle-yoga-600x574.png');
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
    background-attachment: local;
    position: relative;
    z-index: 1;
}

.btn-gold,
.btn-dark {
    background: linear-gradient(135deg, var(--sc-clay), var(--sc-clay-dark));
    border-color: var(--sc-clay-dark);
    color: #fff !important;
    box-shadow: 0 12px 24px rgba(97, 5, 77, 0.18);
}

.btn-gold:hover,
.btn-dark:hover {
    background: linear-gradient(135deg, var(--sc-clay-dark), #5a0b40);
    border-color: #5a0935;
}

.btn-outline-dark,
.btn-outline-secondary {
    border-color: rgba(122,79,62,.28);
    color: var(--sc-clay-dark);
}

.btn-outline-dark:hover,
.btn-outline-secondary:hover {
    background: rgba(163,110,87,.08);
    color: var(--sc-clay-dark);
    border-color: var(--sc-clay-dark);
}

.badge-soft {
    background: rgba(163, 110, 87, .12);
    color: var(--sc-clay-dark);
}

.metric-card {
    padding: 1.25rem;
    min-height: 100%;
}

.metric-card .metric-value {
    font-size: 2rem;
    line-height: 1;
    margin-top: .4rem;
}

.progress {
    background: rgba(122,79,62,.08);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--sc-clay), var(--sc-forest));
}

.dashboard-shell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.sidebar-panel {
    position: sticky;
    top: 90px;
    padding: 1rem;
}

.module-block + .module-block {
    margin-top: 1rem;
}

.module-card {
    border: 1px solid var(--sc-line);
    border-radius: 1.1rem;
    background: rgba(255,255,255,.58);
    overflow: hidden;
}

.module-card.is-locked {
    opacity: .84;
}

.module-card.is-active {
    border-color: rgba(163,110,87,.4);
    box-shadow: 0 10px 26px rgba(122,79,62,.08);
}

.module-head {
    padding: 1rem 1rem .8rem;
    border-bottom: 1px solid rgba(122,79,62,.08);
}

.video-list {
    padding: .5rem;
}

.video-item {
    display: flex;
    gap: .8rem;
    align-items: flex-start;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    border-radius: 1rem;
    padding: .85rem;
    color: var(--sc-text);
}

.video-item:hover,
.video-item.is-current {
    background: rgba(163,110,87,.08);
}

.video-item.is-locked {
    opacity: .6;
    cursor: not-allowed;
}

.video-index {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(163,110,87,.12);
    color: var(--sc-clay-dark);
    font-size: .85rem;
    font-weight: 700;
}

.video-stage {
    width: 100%;
    min-height: 100%;
    padding: 1.25rem;
}

.player-shell {
    border-radius: 1.35rem;
    overflow: hidden;
    background: linear-gradient(135deg, #2f2622, #4a3b34);
    box-shadow: var(--sc-shadow);
}

.player-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    background: #1f1a18;
}

.player-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .75rem;
    color: rgba(255,255,255,.84);
}

.timeline-list {
    display: grid;
    gap: 1rem;
}

.timeline-item {
    padding: 1rem 1.1rem;
    border: 1px dashed rgba(122,79,62,.22);
    border-radius: 1rem;
    background: rgba(255,255,255,.55);
}

.list-group-item {
    border-color: rgba(122,79,62,.1);
}

.table > :not(caption) > * > * {
    background: transparent;
    border-color: rgba(122,79,62,.08);
}

.footer {
    background: rgba(255,250,246,.85);
    border-top: 1px solid rgba(122,79,62,.08);
}

.admin-nav-grid {
    display: grid;
    gap: .75rem;
}

.quick-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .95rem 1rem;
    border-radius: 1rem;
    border: 1px solid var(--sc-line);
    background: rgba(255,255,255,.66);
    text-decoration: none;
    color: var(--sc-text);
}

.quick-link:hover {
    background: rgba(163,110,87,.08);
}

.text-muted {
    color: var(--sc-muted) !important;
}

@media (max-width: 991.98px) {
    .dashboard-shell {
        grid-template-columns: 1fr;
    }

    .sidebar-panel {
        position: static;
    }
}
