:root {
    --imss-verde: #006341;
    --imss-verde-claro: #39A935;
    --imss-verde-luminoso: #00a86b;
    --imss-esmeralda: #10b981;
    --imss-guinda: #9f2241;
}

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

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #006341 0%, #003825 100%);
    overflow-x: hidden;
}

/* ===== LAYOUT PRINCIPAL ===== */
.container {
    display: flex;
    min-height: 100vh;
}

/* Ajustes responsivos para pantallas con altura reducida (como Macbook 13/14" - resolviendo scroll y lag sin usar zoom) */
@media (max-height: 1100px) {
    .info-panel {
        padding: 1.5rem 2rem;
    }

    .login-panel {
        padding: 1.5rem;
    }

    .brand-header {
        margin-bottom: 1rem;
    }

    .logo-container {
        width: 50px;
        height: 50px;
    }

    .logo-container img {
        max-width: 35px;
        max-height: 35px;
    }

    .main-title {
        margin-bottom: 1rem;
    }

    .main-title h2 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .main-title p {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .features {
        margin-bottom: 1rem;
        gap: 0.75rem;
    }

    .feature-item {
        padding: 0.8rem;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .feature-text h4 {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }

    .feature-text p {
        font-size: 0.8rem;
    }

    .stats-row {
        padding-top: 1rem;
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .login-card {
        max-width: 360px;
    }

    .login-header {
        margin-bottom: 1.25rem;
    }

    .login-header h3 {
        font-size: 1.4rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-label {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }

    .form-input {
        padding: 0.85rem 1rem 0.85rem 3rem;
        font-size: 0.9rem;
    }

    .btn-submit {
        padding: 0.85rem 1.25rem;
    }

    .developer-credits {
        bottom: 1rem;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }

    .dev-avatar {
        width: 30px;
        height: 30px;
    }

    .dev-info strong {
        font-size: 0.75rem;
    }

    .dev-info span {
        font-size: 0.65rem;
    }

    .dev-links a {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
}

@media (max-height: 900px) {
    .info-panel {
        padding: 1rem;
    }

    .brand-text h1 {
        font-size: 1.2rem;
    }

    .brand-text p {
        font-size: 0.8rem;
    }

    .main-title h2 {
        font-size: 1.5rem;
    }

    .main-title p {
        display: none;
    }

    .features {
        display: none;
    }

    .stats-row {
        border-top: none;
        padding-top: 0;
        margin-top: 0.75rem;
    }

    .login-panel {
        padding: 1rem;
    }

    .login-card {
        max-width: 300px;
    }

    .login-header h3 {
        font-size: 1.2rem;
    }

    .developer-credits {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 1rem;
    }

    .tutorial-bubble {
        bottom: 15px;
        right: 15px;
        padding: 10px 15px;
    }

    .bubble-text {
        display: none;
    }
}

/* ===== PANEL IZQUIERDO - INFO DEL SISTEMA ===== */
.info-panel {
    flex: 1.2;
    background: linear-gradient(135deg, #006341 0%, #004d32 50%, #003825 100%);
    color: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Patrón decorativo */
.info-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Orbes luminosos */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 10s ease-in-out infinite alternate;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--imss-verde-luminoso);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--imss-esmeralda);
    bottom: -80px;
    right: -80px;
    animation-delay: 5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 30px) scale(1.1);
    }
}

.info-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
}

/* Header con logo */
.brand-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.logo-container {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.logo-container img {
    max-width: 55px;
    max-height: 55px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: auto;
}

.logo-fallback {
    font-size: 2.5rem;
    color: var(--imss-verde);
}

.brand-text h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.brand-text p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Título principal */
.main-title {
    margin-bottom: 2rem;
}

.main-title h2 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #a8e6cf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-title p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.7;
}

/* Features */
.features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(10px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--imss-verde-luminoso), var(--imss-verde));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 168, 107, 0.3);
}

.feature-text h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.feature-text p {
    font-size: 0.85rem;
    opacity: 0.8;
    line-height: 1.5;
}

/* Stats */
.stats-row {
    display: flex;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--imss-verde-luminoso);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

/* ===== PANEL DERECHO - LOGIN ===== */
.login-panel {
    flex: 0.8;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    position: relative;
}

.login-card {
    width: 100%;
    max-width: 400px;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #64748b;
    font-size: 0.95rem;
}

/* Formulario */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.form-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.form-input.has-password-toggle {
    padding-right: 3rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--imss-verde);
    box-shadow: 0 0 0 4px rgba(0, 99, 65, 0.1);
}

.form-input:focus+.input-icon {
    color: var(--imss-verde);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.25rem;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: var(--imss-verde);
}

.alert-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-5px);
    }

    40%,
    80% {
        transform: translateX(5px);
    }
}

.alert-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    animation: pulse-warning 2s ease-in-out infinite;
}

@keyframes pulse-warning {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(251, 191, 36, 0);
    }
}

.btn-submit {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--imss-verde) 0%, var(--imss-verde-claro) 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 8px 25px rgba(0, 99, 65, 0.25);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 99, 65, 0.35);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit.is-loading {
    opacity: 0.92;
    pointer-events: none;
    cursor: wait;
}

.btn-submit.is-loading i {
    animation: spin-login 0.85s linear infinite;
}

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

.forgot-link {
    margin-top: 0.9rem;
    text-align: center;
}

.forgot-link a {
    color: #475569;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: color 0.2s ease;
}

.forgot-link a:hover {
    color: var(--imss-verde);
}

.recovery-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}

.recovery-modal-overlay.active {
    display: flex;
}

.recovery-modal {
    width: min(520px, 100%);
    background: #fff;
    border-radius: 16px;
    border: 1px solid #dbe5df;
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.32);
    padding: 22px 20px;
    position: relative;
}

.recovery-modal h4 {
    margin: 0;
    color: #0f172a;
    font-size: 1.15rem;
}

.recovery-subtitle {
    margin: 6px 0 14px;
    color: #475569;
    font-size: 0.92rem;
}

.recovery-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 9px;
    background: #f1f5f9;
    color: #334155;
    cursor: pointer;
}

.recovery-step {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recovery-step label {
    font-size: 0.82rem;
    color: #475569;
    font-weight: 600;
}

.recovery-step input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    min-height: 42px;
    padding: 10px 12px;
    font-size: 0.94rem;
}

.recovery-step input:focus {
    border-color: var(--imss-verde);
    box-shadow: 0 0 0 3px rgba(0, 99, 65, 0.12);
    outline: none;
}

.recovery-btn {
    margin-top: 6px;
    border: none;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--imss-verde), var(--imss-verde-claro));
    color: #fff;
    font-weight: 700;
    min-height: 42px;
    cursor: pointer;
}

.recovery-channel-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.recovery-channel {
    border: 1px solid #d1d5db;
    background: #f8fafc;
    border-radius: 12px;
    padding: 11px 12px;
    text-align: left;
    color: #1f2937;
    cursor: pointer;
    font-weight: 600;
}

.recovery-channel:hover {
    border-color: var(--imss-verde);
    background: #f0faf4;
}

.recovery-helper {
    margin: 0 0 8px;
    font-size: 0.88rem;
    color: #334155;
}

.recovery-status {
    margin-top: 12px;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.87rem;
    display: none;
}

.recovery-status.is-error {
    display: block;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.recovery-status.is-success {
    display: block;
    background: #ecfdf5;
    border: 1px solid #86efac;
    color: #166534;
}

/* Admin link */
.admin-link {
    margin-top: 2rem;
    text-align: center;
}

.admin-link a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.admin-link a:hover {
    color: var(--imss-verde);
}

/* Developer Credits */
.developer-credits {
    position: absolute;
    bottom: 0.7rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    padding: 0.78rem 1.2rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-size: 0.8rem;
}

.dev-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 1%;
    border: 2px solid var(--imss-esmeralda);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dev-avatar:hover {
    transform: scale(1.07);
    box-shadow: 0 8px 20px rgba(0, 99, 65, 0.28);
}

.dev-info {
    line-height: 1.3;
}

.dev-info strong {
    display: block;
    color: #1e293b;
    font-size: 0.82rem;
}

.dev-info span {
    color: #64748b;
    font-size: 0.72rem;
}

.dev-links {
    display: flex;
    gap: 0.35rem;
}

.dev-links a {
    width: 29px;
    height: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 6px;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.8rem;
}

/* Modal foto desarrollador */
.avatar-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(3px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.avatar-modal-overlay.active {
    display: flex;
}

.avatar-modal {
    width: min(420px, 96vw);
    background: #fff;
    border-radius: 18px;
    padding: 1rem 1rem 1.1rem;
    position: relative;
    text-align: center;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.35);
}

.avatar-modal h4 {
    margin: 0.4rem 0 0.9rem;
    color: #0f172a;
    font-size: 1rem;
}

.avatar-modal-img {
    width: min(326px, 94vw);
    height: min(320px, 113vw);
    object-fit: cover;
    object-position: center 3%;
    border-radius: 16px;
    border: 4px solid #e2e8f0;
}

.avatar-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: #f1f5f9;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
}

.avatar-modal-close:hover {
    background: #e2e8f0;
}

.dev-links a:hover {
    background: var(--imss-verde);
    color: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }

    .info-panel {
        padding: 2rem;
    }

    .main-title h2 {
        font-size: 2rem;
    }

    .features {
        display: none;
    }

    .stats-row {
        justify-content: center;
    }

    .login-panel {
        padding: 2rem;
    }

    .developer-credits {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 2rem;
        padding: 0.8rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .brand-header {
        flex-direction: column;
        text-align: center;
    }

    .main-title h2 {
        font-size: 1.5rem;
    }

    .stats-row {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* ===== BURBUJA DE VIDEO TUTORIAL ===== */
.tutorial-bubble {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: linear-gradient(135deg, var(--imss-verde) 0%, var(--imss-verde-claro) 100%);
    color: white;
    padding: 14px 22px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 30px rgba(0, 99, 65, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid var(--imss-esmeralda);
}

.tutorial-bubble:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 99, 65, 0.5);
}

.tutorial-bubble i {
    font-size: 1.5rem;
    color: var(--imss-esmeralda);
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

.bubble-pulse {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: var(--imss-esmeralda);
    border-radius: 50%;
    animation: ping 1.5s ease-in-out infinite;
}

@keyframes ping {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* ===== MODAL DE VIDEO ===== */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 50, 30, 0.92);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.video-modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.video-modal {
    background: linear-gradient(145deg, #003825 0%, #004d32 100%);
    border-radius: 24px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: scaleIn 0.4s ease;
    border: 2px solid var(--imss-esmeralda);
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.video-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, var(--imss-verde) 0%, var(--imss-verde-claro) 100%);
}

.video-modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.video-modal-title i {
    font-size: 1.8rem;
    color: var(--imss-esmeralda);
    text-shadow: 0 2px 10px rgba(179, 142, 93, 0.5);
}

.video-modal-title h4 {
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.video-modal-title span {
    font-size: 0.85rem;
    opacity: 0.9;
    display: block;
    margin-top: 2px;
}

.video-modal-close {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-close:hover {
    background: var(--imss-guinda);
    border-color: var(--imss-guinda);
    transform: rotate(90deg);
}

.video-modal-body {
    padding: 0;
    background: #000;
}

.video-modal-body video {
    width: 100%;
    max-height: 70vh;
    display: block;
}

.video-modal-footer {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #002a1c 0%, #003825 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.video-tips {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
}

.video-tips i {
    color: var(--imss-esmeralda);
    font-size: 1.1rem;
}

.video-controls-hint {
    display: flex;
    gap: 15px;
}

.control-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.control-hint kbd {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.75rem;
    color: var(--imss-esmeralda);
}

@media (max-width: 768px) {
    .tutorial-bubble {
        bottom: 20px;
        right: 20px;
        padding: 12px 18px;
    }

    .bubble-text {
        display: none;
    }

    .video-modal {
        width: 95%;
        margin: 10px;
    }

    .video-modal-footer {
        flex-direction: column;
        gap: 10px;
    }

    .video-controls-hint {
        display: none;
    }
}
