/* Reset y estilos base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body, html {
    height: 100%;
    background-color: #f2f2f2;
    overflow-x: hidden;
    max-width: 100vw;
}

.container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 300px;
    background: linear-gradient(135deg, #ffffff 80%, #e8fbf6 100%);
    color: #000000;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: hidden;
    transition: width 0.3s;
    box-shadow: 2px 0 18px 0 rgba(31,175,158,0.10), 0 1.5px 0 #e8fbf6;
}

.sidebar-header {
    background-color: #1FAF9E;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    min-height: 160px;
    justify-content: center;
    border-bottom: 1.5px solid #e8fbf6;
    box-shadow: 0 2px 8px rgba(31,175,158,0.08);
}

.sidebar .logo {
    text-align: center;
    width: 100%;
}

.sidebar .logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 8px;
}

.sidebar .logo h3 {
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
}

.sidebar nav {
    flex: 1;
    width: 100%;
    padding: 20px 0;
    overflow-y: auto;
}

.sidebar nav ul {
    list-style: none;
    width: 100%;
    padding: 0 15px;
}

.sidebar nav ul li {
    margin-bottom: 8px;
}

.sidebar nav ul li:not(:last-child) {
    border-bottom: 1px solid #f2f2f2;
    margin-bottom: 2px;
}

.sidebar nav ul li a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    border-left: 4px solid transparent;
    transition: background 0.25s, color 0.25s, border-left 0.25s, box-shadow 0.2s;
    font-size: 16px;
    font-weight: 400;
    box-shadow: none;
    position: relative;
    letter-spacing: 1.5px;
}

.sidebar nav ul li a:hover,
.sidebar nav ul li a.active {
    background: linear-gradient(90deg, #E8FBF6 80%, #d2f7ec 100%);
    color: #1FAF9E;
    border-left: 4px solid #1FAF9E;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(31,175,158,0.07);
}

.sidebar-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 8px;
    display: inline-block;
    filter: grayscale(100%) brightness(0.5);
    transition: filter 0.2s;
}

.sidebar nav ul li a.active .sidebar-icon,
.sidebar nav ul li a:hover .sidebar-icon {
    filter: invert(54%) sepia(80%) saturate(426%) hue-rotate(120deg) brightness(92%) contrast(90%);
}

/* Header */
.header {
    background: linear-gradient(135deg, #17C8B3 0%, #17C8B3 100%);
    color: #fff;
    padding: 6px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 275px;
    min-height: 170px;
    width: calc(100vw - 275px);
    max-width: calc(100vw - 275px);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    animation: bgShift 10s ease-in-out infinite alternate;
}

.header-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 44px;
    font-weight: 800;
    margin: 0;
    gap: 14px;
    text-align: center;
    position: relative;
    letter-spacing: -0.5px;
    width: 100%;
    max-width: 100%;
}

.header-text .main-title {
    background: linear-gradient(135deg, #ffffff 0%, #dffefe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 3px 15px rgba(0,0,0,0.25);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.header-text .subtitle {
    font-size: 19px;
    font-weight: 500;
    color: rgba(255,255,255,0.92);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 8px;
    opacity: 0.95;
}

.header-text::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
    border-radius: 50px;
    animation: pulseLine 2.5s infinite ease-in-out;
}

/* Animaciones */
@keyframes titleGlow {
    0% { 
        text-shadow: 0 3px 12px rgba(0,0,0,0.2), 0 0 25px rgba(255,255,255,0.1);
    }
    100% { 
        text-shadow: 0 3px 15px rgba(0,0,0,0.35), 0 0 40px rgba(255,255,255,0.25);
    }
}

@keyframes pulseLine {
    0%, 100% { opacity: 0.6; width: 80px; }
    50% { opacity: 1; width: 120px; }
}

@keyframes bgShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Main content */
.main-content {
    flex: 1;
    padding: 10px 0;
    position: relative;
    margin-left: 305px;
    width: calc(100vw - 275px);
    max-width: calc(100vw - 275px);
    box-sizing: border-box;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Recommendation box */
.recommendation {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(120deg, #e8fff8 80%, #d2f7ec 100%);
    border: 1.5px solid #1abc9c;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(31,175,158,0.10), 0 1.5px 0 #e8fbf6;
    padding: 20px;
    margin: 15px 0;
    color: #222;
    font-size: 18px;
    min-height: 70px;
    width: 90%;
    max-width: 1100px;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
}

.recommendation:hover {
    box-shadow: 0 8px 32px rgba(31,175,158,0.18), 0 3px 0 #b2f2e6;
    transform: translateY(-2px) scale(1.01);
}

.recommendation strong {
    color: #1abc9c;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.icon-recomendacion {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0;
    filter: drop-shadow(0 2px 8px rgba(31,175,158,0.10));
    background: #e8fff8;
    border-radius: 50%;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(31,175,158,0.10);
    transition: box-shadow 0.2s;
}

.recommendation:hover .icon-recomendacion {
    box-shadow: 0 4px 16px rgba(31,175,158,0.18);
}

/* Intro section */
.intro-section {
    padding: 40px 70px 60px 70px;
    background-color: white;
    margin: 0 auto 40px auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 1100px;
    box-sizing: border-box;
}

.intro-section h3 {
    font-size: 32px;
    color: #1FAF9E;
    margin-bottom: 35px;
    font-weight: 500;
    text-align: center;
}

.intro-section p {
    font-size: 17px;
    color: #555;
    text-align: justify;
    line-height: 1.8;
    margin-bottom: 25px;
}

.intro-section pre {
    font-size: 17px;
    color: #555;
    text-align: justify;
    line-height: 1.8;
    margin-bottom: 25px;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    white-space: pre-line;
}

/* Content card */
.content-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 1100px;
    margin: 10px auto;
    box-sizing: border-box;
}

.logo-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    transition: all 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
}



/* Buscador */
#buscador {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Contenido */
#contenido {
    white-space: pre-wrap;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    max-height: 500px;
    overflow-y: auto;
    font-family: monospace;
}

mark {
    background-color: rgb(0, 255, 157);
}

/* Imágenes */
.img,
.dashboard-img,
.intro-section img,
.content-card img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(44,62,80,0.10);
    object-fit: contain;
    cursor: pointer;
}

/* Modal de imagen */
.img-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(30, 30, 30, 0.85);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.img-modal.show {
    display: flex;
}

.img-modal-content {
    margin: 0 auto;
    display: block;
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.25);
    background: #fff;
    padding: 8px;
    object-fit: contain;
}

.img-modal-caption {
    margin: 20px auto 0 auto;
    text-align: center;
    color: #fff;
    font-size: 18px;
    max-width: 90vw;
    word-break: break-word;
}

.img-modal-close {
    position: absolute;
    top: 24px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.2s;
}

.img-modal-close:hover {
    color: #1FAF9E;
}

/* Indicaciones row */
.indicaciones-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    width: 100%;
    margin-bottom: 22px;
}

.icon-indicaciones,
.indicaciones-row .icon-indicaciones {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
    margin: 0;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
    filter: none;
    transition: none;
}

.indicaciones-row span {
    font-size: 1.5rem;
    font-weight: bold;
    color: #222;
    letter-spacing: 0.5px;
}

/* Responsive design */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
    
    .sidebar-header {
        min-height: 120px;
    }
    
    .header {
        margin-left: 200px;
        width: calc(100vw - 200px);
        max-width: calc(100vw - 200px);
        min-height: 120px;
    }
    
    .header-text {
        font-size: 32px;
        gap: 8px;
    }
    
    .header-text .subtitle {
        font-size: 14px;
        letter-spacing: 1px;
    }
    
    .header-text::after {
        width: 60px;
        height: 2px;
    }
    
    .main-content {
        margin-left: 200px;
        width: calc(100vw - 200px);
        max-width: calc(100vw - 200px);
        padding: 20px 0;
    }
    
    .recommendation {
        width: 95%;
        margin: 20px 0;
        padding: 15px;
        font-size: 16px;
        gap: 10px;
    }
    
    .icon-recomendacion {
        width: 26px;
        height: 26px;
        padding: 2px;
    }
    
    .intro-section {
        width: 95%;
        padding: 30px 30px 40px 30px;
    }
    
    .intro-section h3 {
        font-size: 28px;
        margin-bottom: 25px;
    }
    
    .content-card {
        width: 95%;
        padding: 25px;
    }
}

@media (max-width: 600px) {
    .img-modal-content {
        max-width: 98vw;
        max-height: 60vh;
    }
    
    .img-modal-caption {
        font-size: 15px;
    }
    
    .img-modal-close {
        top: 10px;
        right: 18px;
        font-size: 32px;
    }
}

/* Estilos para pre en intro-section */
.intro-section pre {
    font-size: 17px;
    color: #555;
    text-align: justify;
    line-height: 1.8;
    margin-bottom: 25px;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    white-space: pre-line;
}

/* Variables CSS */
:root {
    --primary: #1FAF9E;
    --primary-dark: #17897d;
    --primary-light: #17c3b2;
    --accent: #b2f2e6;
    --text: #ffffff;
    --shadow-light: rgba(31, 175, 158, 0.25);
    --shadow-dark: rgba(23, 137, 125, 0.3);
}

/* Botones de mantenimiento y volver */
.mantenimientos-nav button,
.btn-volver-inicio {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--text);
    border: none;
    border-radius: 16px;
    padding: 16px 24px;
    font-size: 1.06rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 
        0 6px 20px var(--shadow-light),
        0 3px 0 var(--accent),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: 
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.3s ease;
    letter-spacing: 1px;
    outline: none;
    position: relative;
    overflow: hidden;
    min-width: 220px;
    max-width: 260px;
    min-height: 60px;
    max-height: 60px;
    white-space: normal;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.25;
    text-align: center;
    margin-bottom: 4px;
    box-sizing: border-box;
    border: 2px solid rgba(178, 242, 230, 0.3);
}

.mantenimientos-nav button span,
.btn-volver-inicio span {
    display: block;
    width: 100%;
    position: relative;
    z-index: 2;
}

.mantenimientos-nav button .btn-title,
.btn-volver-inicio .btn-title {
    font-size: 1.08rem;
    font-weight: 800;
    margin-bottom: 2px;
    letter-spacing: 1.1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mantenimientos-nav button .btn-desc,
.btn-volver-inicio .btn-desc {
    font-size: 0.97rem;
    font-weight: 500;
    opacity: 0.95;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Efectos hover y focus */
.mantenimientos-nav button:hover,
.btn-volver-inicio:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 10px 25px var(--shadow-dark),
        0 5px 0 var(--accent),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    letter-spacing: 1.2px;
}

.mantenimientos-nav button:active,
.btn-volver-inicio:active {
    transform: translateY(2px) scale(0.98);
    box-shadow: 
        0 4px 12px var(--shadow-light),
        0 1px 0 var(--accent),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.mantenimientos-nav button:focus,
.btn-volver-inicio:focus {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* Efectos visuales con pseudo-elementos */
.mantenimientos-nav button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
    z-index: 1;
    opacity: 0.6;
}

.mantenimientos-nav button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.7s ease;
    z-index: 3;
}

.mantenimientos-nav button:hover::after {
    left: 100%;
}

/* Layout de navegación */
.mantenimientos-nav {
    gap: 24px;
    margin-bottom: 40px;
}

.mantenimientos-nav-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 16px;
}

/* Botón volver específico */
.btn-volver-inicio {
    min-width: 140px;
    max-width: 170px;
    padding-left: 18px;
    padding-right: 18px;
    transition: 
        background 0.18s, 
        transform 0.14s, 
        box-shadow 0.18s,
        letter-spacing 0.14s;
}

.btn-volver-inicio:hover {
    transform: translateY(-1.5px) scale(1.01);
    box-shadow: 0 6px 18px rgba(31,175,158,0.15), 0 2px 0 #b2f2e6;
    letter-spacing: 1px;
}

/* Media queries responsivos */
@media (max-width: 900px) {
    .mantenimientos-nav-row {
        flex-wrap: wrap;
        gap: 14px;
    }
    
    .mantenimientos-nav button,
    .btn-volver-inicio {
        padding: 12px 16px;
        font-size: 0.98rem;
        min-width: 180px;
        max-width: 200px;
        min-height: 54px;
        max-height: 54px;
        border-radius: 14px;
    }
}

@media (max-width: 600px) {
    .mantenimientos-nav-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .mantenimientos-nav button,
    .btn-volver-inicio {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        padding: 12px 0;
        font-size: 0.96rem;
        min-height: 50px;
        max-height: 60px;
    }
}

/* Títulos especiales */
.titulo-especial {
    font-size: 28px;
    font-weight: bold;
    color: #1abc9c;
    text-transform: uppercase;
    letter-spacing: 1.9px;
    text-align: center;
    margin: 20px 0;
    position: relative;
    text-shadow: 3px 3px 6px rgb(113, 255, 189);
}

.titulo-especial::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #1abc9c;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgb(113, 255, 189);
}

/* Modo oscuro */
body.dark-mode, html.dark-mode {
    background-color: #181c1f !important;
    color: #e0e0e0;
}

.dark-mode .header {
    background-color: #1FAF9E !important;
    color: #fff;
}

.dark-mode .header-text .main-title {
    background: linear-gradient(135deg, #e0e0e0 0%, #b2f2e6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark-mode .header-text .subtitle {
    color: #b2f2e6;
}

.dark-mode .sidebar {
    background: linear-gradient(135deg, #23272b 80%, #1FAF9E 100%);
    color: #e0e0e0;
    box-shadow: 2px 0 18px 0 rgba(31,175,158,0.10), 0 1.5px 0 #1FAF9E;
}

.dark-mode .sidebar-header {
    background-color: #1FAF9E;
    border-bottom: 1.5px solid #1FAF9E;
}

.dark-mode .sidebar nav ul li a {
    color: #e0e0e0;
}

.dark-mode .sidebar nav ul li a.active,
.dark-mode .sidebar nav ul li a:hover {
    background: linear-gradient(90deg, #1FAF9E 80%, #17897d 100%);
    color: #fff;
    border-left: 4px solid #b2f2e6;
}

.dark-mode .main-content,
.dark-mode .intro-section,
.dark-mode .content-card {
    background: #23272b !important;
    color: #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.dark-mode .recommendation {
    background: #1a2226;
    border-color: #1FAF9E;
    color: #e0e0e0;
}

.dark-mode .recommendation strong {
    color: #b2f2e6;
}

.dark-mode .icon-recomendacion {
    background: #23272b;
}


.dark-mode pre,
.dark-mode .intro-section pre {
    color: #b2f2e6;
}

.dark-mode mark {
    background-color: #1FAF9E;
    color: #fff;
}

.dark-mode .img,
.dark-mode .dashboard-img,
.dark-mode .intro-section img,
.dark-mode .content-card img {
    background: #23272b;
    border-color: #1FAF9E;
}

.dark-mode .img-modal {
    background-color: rgba(10, 20, 30, 0.95);
}

.dark-mode .img-modal-content {
    background: #23272b;
}

.dark-mode .img-modal-caption {
    color: #b2f2e6;
}

.dark-mode .img-modal-close {
    color: #b2f2e6;
}

.dark-mode .sidebar nav ul li {
    border-bottom: 1px solid #1FAF9E;
}

.dark-mode .mantenimientos-nav button,
.dark-mode .btn-volver-inicio {
    background: linear-gradient(90deg, #23272b 0%, #1FAF9E 100%);
    color: #b2f2e6;
    border: 2px solid #1FAF9E;
}

.dark-mode .mantenimientos-nav button:hover,
.dark-mode .btn-volver-inicio:hover {
    background: linear-gradient(90deg, #1FAF9E 0%, #23272b 100%);
    color: #fff;
}

.dark-mode .titulo-especial {
    text-shadow: none;
}

.dark-mode .titulo-especial::after {
    box-shadow: none;
}

.dark-mode p,
.dark-mode .intro-section p,
.dark-mode .content-card p {
    color: #fff !important;
}

.dark-mode img.icon-recomendacion,
.dark-mode .icon-recomendacion,
.dark-mode svg,
.dark-mode .sidebar-icon {
    filter: brightness(1.2) saturate(2) drop-shadow(0 0 2px #b2f2e6) !important;
}

/* Botón toggle dark mode */
.toggle-dark-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    margin-left: 18px;
    margin-right: 18px;
    transition: color 0.2s;
    outline: none;
    align-self: flex-end;
}

.toggle-dark-btn:hover {
    color: #1FAF9E;
}

.dark-mode .toggle-dark-btn {
    color: #b2f2e6;
}

/* Switch dark mode */
.switch-dark {
    position: absolute;
    top: 10px;
    right: 20px;
    width: 54px;
    height: 28px;
    margin: 0;
    vertical-align: middle;
    z-index: 100;
}

.switch-dark input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #ccc;
    transition: background 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    transition: transform 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(31,175,158,0.10);
    z-index: 1;
}

.slider-icon {
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    bottom: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
    transition: transform 0.4s;
}

.slider .icon {
    position: absolute;
    font-size: 1.3rem;
    left: 0; top: 0; right: 0; bottom: 0;
    margin: auto;
    transition: opacity 0.3s;
}

.slider .sun {
    color: #FFD600;
    opacity: 1;
}

.slider .moon {
    color: #000;
    opacity: 0;
}

input:checked + .slider {
    background: #000;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

input:checked + .slider .slider-icon {
    transform: translateX(26px);
}

input:checked + .slider .sun {
    opacity: 0;
}

input:checked + .slider .moon {
    opacity: 1;
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
  background: #e8f8f5;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb {
  background: #1FAF9E;
  border-radius: 8px;
  border: 2px solid #e8f8f5;
}

::-webkit-scrollbar-thumb:hover {
  background: #16a085;
}

::-webkit-scrollbar-button {
  display: none;
  height: 0;
  width: 0;
}

/* Selector de temas */
.theme-switch {
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 100;
}

#theme-button {
    background-color: #1FAF9E;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s, color 0.3s;
}

#theme-button:hover {
    background-color: #17897d;
}

#theme-icon {
    font-size: 20px;
}

.dropdown-arrow {
    font-size: 16px;
}

.theme-options {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    width: 120px;
    z-index: 101;
}

.theme-options li {
    padding: 8px 12px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s, color 0.3s;
}

.theme-options li:hover {
    background-color: #f2f2f2;
}

/* Estilos generales para iconos */
ion-icon {
    font-size: 16px;
    color: #333;
}

.theme-options ion-icon {
    font-size: 1.2rem;
}

/* Filas de tabla */
tbody tr:nth-child(even) {
    background: #f2fdfb;
    color: #000;
}

tbody tr:hover {
    background: #d1f7f0;
    color: #000;
    transition: background 0.3s, color 0.3s;
}

/* Celdas con colspan */
td[colspan="2"] {
    text-align: center;
    color: #000;
    font-style: italic;
}

/* Modo oscuro */
.dark-mode {
    /* Tabla */
    background: #00000093;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(44, 62, 80, 0.2);
}

.dark-mode tbody tr:nth-child(even) {
    background: #2a2f33;
    color: #e0e0e0;
}

.dark-mode tbody tr:hover {
    background: #1FAF9E;
    color: #fff;
}

.dark-mode td[colspan="2"] {
    color: #000000;
}

.dark-mode th {
    background: #1FAF9E;
    color: #fff;
    border-bottom: 2px solid #17897d;
}

.dark-mode td {
    background: #241f1ff3;
    color: #fff;
}

/* Indicaciones */
.indicaciones-row span {
    color: #333;
    font-size: 26px;
    font-weight: 500;
}

.indicaciones-row .icon-indicaciones {
    width: 32px;
    height: 32px;
    fill: #1abc9c;
    margin-right: 8px;
}

.dark-mode .indicaciones-row span {
    color: #fff;
}

.dark-mode .indicaciones-row .icon-indicaciones {
    fill: #1cffd5;
}

/* Recomendación */
.recommendation {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border: 1px solid #1abc9c;
    border-radius: 8px;
    background-color: #23272b;
    box-shadow: 0 0 12px rgba(31, 175, 158, 0.5);
    transition: box-shadow 0.3s ease;
}

.icon-recomendacion {
    width: 40px;
    height: 40px;
    fill: #1abc9c;
    transition: fill 0.3s ease;
}

body.dark-mode .icon-recomendacion {
    fill: #b2f2e6;
}

/* SVG generales */
svg {
    width: 40px;
    height: 40px;
    fill: #1abc9c;
    background: #e8fff8;
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 4px 16px rgba(31, 175, 158, 0.5);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

svg:hover {
    background: #b2f2e6;
    box-shadow: 0 6px 24px rgba(178, 242, 230, 0.5);
}

body.dark-mode svg {
    background: #1FAF9E;
    box-shadow: 0 4px 16px rgba(31, 175, 158, 0.5);
}

/* Botones de navegación */
.navigation-buttons, .cajas-nav, .compras-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.navigation-buttons button, .cajas-nav button, .compras-nav button {
    background-color: #1abc9c;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(31, 175, 158, 0.2);
}

.navigation-buttons button:hover, .cajas-nav button:hover, .compras-nav button:hover {
    background-color: #16a085;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(31, 175, 158, 0.3);
}

.cajas-nav button, .compras-nav button {
    padding: 12px 24px;
    margin: 0 25px;
}

/* Botón volver arriba */
.back-to-top {
    position: relative;
    text-align: right;
    margin-top: 20px;
}

.back-to-top button {
    background-color: #1FAF9E;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 17px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(31, 175, 158, 0.2);
}

.back-to-top button:hover {
    background-color: #17897d;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(31, 175, 158, 0.3);
}

/* Selector de tema */
.theme-switch {
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 200;
    font-family: 'Poppins', sans-serif;
}

.theme-switch button {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.theme-switch button:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.05);
}

#theme-icon {
    font-size: 1.4rem;
    transition: transform 0.4s ease-in-out, color 0.4s;
}

.theme-switch .dropdown-arrow {
    font-size: 1rem;
    transition: transform 0.3s;
}

.theme-options {
    display: none;
    list-style: none;
    padding: 8px;
    margin: 6px 0 0 0;
    border-radius: 12px;
    background: rgba(20,20,20,0.8);
    backdrop-filter: blur(12px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    position: absolute;
    right: 0;
    width: 160px;
    animation: fadeIn 0.3s ease-in-out;
}

.theme-options li {
    padding: 10px;
    border-radius: 8px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.25s ease-in-out, transform 0.2s;
}

.theme-options li:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(4px);
}

.theme-options li ion-icon[name="sunny"] {
    color: #FFD600;
}

.theme-options li ion-icon[name="moon"] {
    color: #a6baff;
}

.theme-options.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 300px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    color: #000;
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
    transition: width 0.3s ease, background 0.3s ease;
}

.sidebar-header {
    background: #1FAF9E;
    padding: 25px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    min-height: 160px;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(31,175,158,0.25);
}

.sidebar .logo img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: contain;
    margin-bottom: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.sidebar .logo img:hover {
    transform: rotate(8deg) scale(1.05);
}

.sidebar .logo h3 {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
}

/* Sidebar Navigation */
.sidebar nav {
    flex: 1;
    padding: 15px 0;
}

.sidebar nav ul {
    list-style: none;
    margin: 0;
    padding: 0 15px;
}

.sidebar nav ul li {
    margin-bottom: 4px;
}

#sidebar-nav ul li a {
    display: flex;
    align-items: center;
    gap: 12px; /* Ajusta este valor según prefieras */
    padding: 12px 16px;
}

.sidebar nav ul li a:hover,
.sidebar nav ul li a.active {
    background: linear-gradient(90deg, #E8FBF6, #d2f7ec);
    color: #1FAF9E;
    border-left: 4px solid #1FAF9E;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(31,175,158,0.1);
    transform: translateX(3px);
}

.sidebar-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: filter 0.25s, transform 0.25s;
    filter: grayscale(100%) brightness(0.5);
}

.sidebar nav ul li a:hover .sidebar-icon,
.sidebar nav ul li a.active .sidebar-icon {
    filter: invert(54%) sepia(90%) saturate(420%) hue-rotate(130deg) brightness(95%) contrast(90%);
    transform: scale(1.1);
}

body.dark-mode .sidebar-icon {
    fill: #b2f2e6;
    filter: brightness(1.2) saturate(2) drop-shadow(0 0 2px #b2f2e6);
}

/* Modo oscuro sidebar */
.dark-mode .sidebar {
    background: rgba(35, 39, 43, 0.9);
    color: #e0e0e0;
}

.dark-mode .sidebar-header {
    background: #17C8B3;
    box-shadow: 0 2px 12px rgba(31,175,158,0.4);
}

.dark-mode .sidebar nav ul li a {
    color: #ccc;
}

.dark-mode .sidebar nav ul li a.active,
.dark-mode .sidebar nav ul li a:hover {
    background: linear-gradient(90deg, #1FAF9E, #17897d);
    color: #fff;
    border-left: 4px solid #b2f2e6;
    box-shadow: 0 3px 12px rgba(31,175,158,0.3);
}

/* Navegación compras */
.compras-nav {
    flex-direction: column;
}

.compras-nav-row {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.compras-nav button {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.compras-nav .btn-title {
    font-weight: bold;
    font-size: 18px;
}

.compras-nav .btn-desc {
    font-size: 14px;
    color: #e0e0e0;
}

/* Sidebar responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 200px; /* Reduce el ancho del sidebar */
    }

    .sidebar-header {
        min-height: 120px; /* Ajusta la altura del encabezado */
    }

    .sidebar .logo img {
        width: 50px; /* Reduce el tamaño del logo */
        height: 50px;
    }

    .sidebar .logo h3 {
        font-size: 14px; /* Reduce el tamaño del texto del logo */
    }

    .sidebar nav ul li a {
        font-size: 14px; /* Reduce el tamaño del texto de los enlaces */
        padding: 10px 12px; /* Ajusta el padding de los enlaces */
    }

    .sidebar-icon {
        width: 18px; /* Ajusta el tamaño de los íconos */
        height: 18px;
    }
}

@media (max-width: 600px) {
    .sidebar {
        width: 100px; /* Reduce aún más el ancho del sidebar */
    }

    .sidebar-header {
        min-height: 100px; /* Ajusta la altura del encabezado */
    }

    .sidebar .logo img {
        width: 40px; /* Reduce el tamaño del logo */
        height: 40px;
    }

    .sidebar .logo h3 {
        font-size: 12px; /* Reduce el tamaño del texto del logo */
    }

    .sidebar nav ul li a {
        font-size: 12px; /* Reduce el tamaño del texto de los enlaces */
        padding: 8px 10px; /* Ajusta el padding de los enlaces */
    }

    .sidebar-icon {
        width: 16px; /* Ajusta el tamaño de los íconos */
        height: 16px;
    }
}

/* Ajuste para pantallas pequeñas: oculta el sidebar y agrega un botón para mostrarlo */
@media (max-width: 480px) {
    .sidebar {
        width: 0; /* Oculta el sidebar */
        overflow: hidden; /* Evita el overflow */
        transition: width 0.3s ease; /* Transición suave */
    }

    .sidebar.open {
        width: 200px; /* Muestra el sidebar cuando está abierto */
    }

    .sidebar-header {
        display: none; /* Oculta el encabezado en pantallas pequeñas */
    }

    .sidebar nav ul {
        padding: 0; /* Ajusta el padding */
    }

    .sidebar nav ul li a {
        font-size: 14px; /* Ajusta el tamaño del texto */
        padding: 10px; /* Ajusta el padding */
    }

    .sidebar-icon {
        width: 18px; /* Ajusta el tamaño de los íconos */
        height: 18px;
    }

    /* Botón para mostrar/ocultar el sidebar */
    .sidebar-toggle {
        position: fixed;
        top: 10px;
        left: 10px;
        background-color: #1FAF9E;
        color: #fff;
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 200;
        box-shadow: 0 4px 12px rgba(31, 175, 158, 0.2);
    }

    .sidebar-toggle:hover {
        background-color: #17897d;
    }
}
/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 13px; /* Ancho del scrollbar */
    height: 13px; /* Altura del scrollbar */
    background: linear-gradient(135deg, #e8f8f5, #d2f7ec); /* Fondo degradado del track */
    border-radius: 12px; /* Bordes redondeados */
    box-shadow: inset 0 2px 8px rgba(31, 175, 158, 0.1); /* Sombra interna */
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1FAF9E, #17C8B3); /* Fondo degradado del thumb */
    border-radius: 12px; /* Bordes redondeados */
    border: 3px solid #e8f8f5; /* Espaciado entre el thumb y el track */
    box-shadow: 0 4px 12px rgba(31, 175, 158, 0.4); /* Sombra para el thumb */
    transition: background 0.3s ease, box-shadow 0.3s ease; /* Transición suave */
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #17897d, #1FAF9E); /* Fondo degradado más oscuro al hover */
    box-shadow: 0 6px 16px rgba(31, 175, 158, 0.6); /* Sombra más intensa al hover */
    transform: scale(1.1); /* Efecto de agrandamiento */
}

::-webkit-scrollbar-track {
    background: linear-gradient(135deg, #f2fdfb, #e8f8f5); /* Fondo degradado del track */
    border-radius: 12px; /* Bordes redondeados */
    box-shadow: inset 0 2px 8px rgba(31, 175, 158, 0.1); /* Sombra interna */
    animation: trackGlow 3s infinite alternate; /* Animación de brillo */
}

/* Animación para el track */
@keyframes trackGlow {
    0% {
        box-shadow: inset 0 2px 8px rgba(31, 175, 158, 0.1), 0 0 8px rgba(31, 175, 158, 0.2);
    }
    100% {
        box-shadow: inset 0 2px 8px rgba(31, 175, 158, 0.1), 0 0 12px rgba(31, 175, 158, 0.4);
    }
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 300px;
    background: linear-gradient(135deg, #ffffff 0%, #e8fbf6 100%);
    backdrop-filter: blur(12px); /* Efecto de desenfoque */
    color: #000;
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
    transition: width 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

/* Sidebar Header */
.sidebar-header {
    background: linear-gradient(135deg, #17C8B3 0%, #17C8B3 100%);
    padding: 25px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    min-height: 160px;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(31,175,158,0.25); /* Sombra externa */
}

.sidebar .logo img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: contain;
    margin-bottom: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Sombra externa */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar .logo img:hover {
    transform: rotate(8deg) scale(1.05); /* Efecto de rotación y escalado */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3); /* Sombra más intensa */
}

.sidebar .logo h3 {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
}

/* Sidebar Navigation */
.sidebar nav {
    flex: 1;
    padding: 15px 0;
}

.sidebar nav ul {
    list-style: none;
    margin: 0;
    padding: 0 15px;
}

.sidebar nav ul li {
    margin-bottom: 4px;
}

.sidebar nav ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    border-left: 4px solid transparent;
    transition: background 0.3s ease, color 0.3s ease, border-left 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    font-size: 16px;
    font-weight: 400;
    box-shadow: none;
    position: relative;
    letter-spacing: 1.8px;
}

.sidebar nav ul li a:hover,
.sidebar nav ul li a.active {
    background: linear-gradient(90deg, #E8FBF6 0%, #d2f7ec 100%);
    color: #1FAF9E;
    border-left: 4px solid #1FAF9E;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(31, 175, 158, 0.1); /* Sombra externa */
    transform: translateX(3px); /* Efecto de desplazamiento */
}

/* Sidebar Icons */
.sidebar-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: filter 0.25s, transform 0.25s;
    filter: grayscale(100%) brightness(0.5);
}

.sidebar nav ul li a:hover .sidebar-icon,
.sidebar nav ul li a.active .sidebar-icon {
    filter: invert(54%) sepia(90%) saturate(420%) hue-rotate(130deg) brightness(95%) contrast(90%);
    transform: scale(1.1); /* Efecto de escalado */
}

/* Responsive Sidebar */
@media (max-width: 768px) {
    .sidebar {
        width: 200px; /* Reduce el ancho del sidebar */
    }

    .sidebar-header {
        min-height: 120px; /* Ajusta la altura del encabezado */
    }

    .sidebar .logo img {
        width: 50px; /* Reduce el tamaño del logo */
        height: 50px;
    }

    .sidebar .logo h3 {
        font-size: 14px; /* Reduce el tamaño del texto del logo */
    }

    .sidebar nav ul li a {
        font-size: 14px; /* Reduce el tamaño del texto de los enlaces */
        padding: 10px 12px; /* Ajusta el padding de los enlaces */
    }

    .sidebar-icon {
        width: 18px; /* Ajusta el tamaño de los íconos */
        height: 18px;
    }
}

@media (max-width: 600px) {
    .sidebar {
        width: 100px; /* Reduce aún más el ancho del sidebar */
    }

    .sidebar-header {
        min-height: 100px; /* Ajusta la altura del encabezado */
    }

    .sidebar .logo img {
        width: 40px; /* Reduce el tamaño del logo */
        height: 40px;
    }

    .sidebar .logo h3 {
        font-size: 12px; /* Reduce el tamaño del texto del logo */
    }

    .sidebar nav ul li a {
        font-size: 12px; /* Reduce el tamaño del texto de los enlaces */
        padding: 8px 10px; /* Ajusta el padding de los enlaces */
    }

    .sidebar-icon {
        width: 16px; /* Ajusta el tamaño de los íconos */
        height: 16px;
    }
}

/* Recommendation box */
.recommendation {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(120deg, #e8fff8 80%, #d2f7ec 100%);
    border: 1.5px solid #1abc9c;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(31, 175, 158, 0.15), 0 1.5px 0 #e8fbf6;
    padding: 20px;
    margin: 15px 0;
    color: #222;
    font-size: 18px;
    font-weight: 600; /* Letras más negritas */
    line-height: 1.6;
    min-height: 70px;
    width: 90%;
    max-width: 1100px;
    position: relative;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.recommendation:hover {
    box-shadow: 0 8px 32px rgba(31, 175, 158, 0.25), 0 3px 0 #b2f2e6;
    transform: translateY(-2px) scale(1.02);
}

.recommendation strong {
    color: #1abc9c;
    font-weight: 700; /* Letras más negritas para el texto destacado */
    letter-spacing: 0.5px;
}

.icon-recomendacion {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0;
    filter: drop-shadow(0 2px 8px rgba(31, 175, 158, 0.15)); /* Sombra externa */
    background: #e8fff8;
    border-radius: 50%;
    padding: 6px;
    box-shadow: 0 4px 16px rgba(31, 175, 158, 0.2); /* Sombra externa */
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.recommendation:hover .icon-recomendacion {
    box-shadow: 0 6px 24px rgba(31, 175, 158, 0.3);
    transform: scale(1.1); /* Efecto de agrandamiento */
}

/* Recommendation box */
.recommendation {
    display: flex;
    align-items: center;
    gap: 20px; /* Espaciado entre el SVG y el texto */
    background: linear-gradient(120deg, #e8fff8 80%, #d2f7ec 100%);
    border: 2px solid #1abc9c;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(31, 175, 158, 0.15), 0 1.5px 0 #e8fbf6;
    padding: 20px;
    margin: 20px 0;
    color: #222;
    font-size: 18px;
    font-weight: 600; /* Letras más negritas */
    line-height: 1.6;
    min-height: 80px; /* Altura mínima del contenedor */
    width: 90%;
    max-width: 1100px;
    position: relative;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.recommendation:hover {
    box-shadow: 0 8px 32px rgba(31, 175, 158, 0.25), 0 3px 0 #b2f2e6;
    transform: translateY(-2px) scale(1.02);
}

.recommendation strong {
    color: #1abc9c;
    font-weight: 700; /* Letras más negritas para el texto destacado */
    letter-spacing: 0.5px;
}

/* SVG icon (foquito) */
.icon-recomendacion {
    width: 50px; /* Aumenta el tamaño del SVG */
    height: 50px;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0;
    filter: drop-shadow(0 4px 12px rgba(31, 175, 158, 0.15)); /* Sombra externa */
    background: linear-gradient(135deg, #e8fff8, #d2f7ec); /* Fondo degradado */
    border-radius: 50%; /* Bordes redondeados */
    padding: 8px; /* Espaciado interno */
    box-shadow: 0 6px 16px rgba(31, 175, 158, 0.2); /* Sombra externa */
    transition: box-shadow 0.3s ease, transform 0.2s ease, background 0.3s ease;
}

.recommendation:hover .icon-recomendacion {
    box-shadow: 0 8px 24px rgba(31, 175, 158, 0.3);
    transform: scale(1.1); /* Efecto de agrandamiento */
    background: linear-gradient(135deg, #b2f2e6, #e8fff8); /* Fondo más destacado al hover */
}

/* Título principal */
.main-title {
    font-size: 48px; /* Tamaño grande para destacar */
    font-weight: 800; /* Letras más gruesas */
    text-align: center;
    color: #1FAF9E; /* Color principal */
    text-transform: uppercase; /* Texto en mayúsculas */
    letter-spacing: 2px; /* Espaciado entre letras */
    background: linear-gradient(135deg, #1FAF9E, #17C8B3); /* Fondo degradado */
    -webkit-background-clip: text; /* Clip para aplicar el degradado al texto */
    -webkit-text-fill-color: transparent; /* Hace que el fondo sea visible */
    background-clip: text;
    text-shadow: 0 4px 12px rgba(31, 175, 158, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2); /* Sombra dinámica */
    margin: 10px 0;
    position: relative;
    animation: glowEffect 3s infinite alternate; /* Animación de brillo */
}

/* Línea decorativa debajo del título */
.main-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #1FAF9E, #17C8B3);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(31, 175, 158, 0.4);
    animation: pulseLine 2.5s infinite ease-in-out; /* Animación de pulso */
}

/* Animación de brillo para el título */
@keyframes glowEffect {
    0% {
        text-shadow: 0 4px 12px rgba(31, 175, 158, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    100% {
        text-shadow: 0 6px 16px rgba(31, 175, 158, 0.6), 0 3px 6px rgba(0, 0, 0, 0.3);
    }
}

/* Animación de pulso para la línea decorativa */
@keyframes pulseLine {
    0%, 100% {
        opacity: 0.6;
        width: 100px;
    }
    50% {
        opacity: 1;
        width: 140px;
    }
}
/* Línea decorativa debajo del título */
.main-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px; /* Aumenta el ancho inicial */
    height: 6px; /* Aumenta la altura */
    background: linear-gradient(90deg, #1FAF9E, #17C8B3, #1FAF9E); /* Degradado vibrante */
    border-radius: 3px; /* Bordes más redondeados */
    box-shadow: 0 4px 12px rgba(31, 175, 158, 0.5), 0 2px 4px rgba(0, 0, 0, 0.2); /* Sombra dinámica */
    animation: pulseLineEnhanced 2.5s infinite ease-in-out; /* Animación mejorada */
}

/* Animación mejorada para la línea decorativa */
@keyframes pulseLineEnhanced {
    0%, 100% {
        opacity: 0.7;
        width: 120px; /* Tamaño más pequeño en los extremos */
    }
    50% {
        opacity: 1;
        width: 160px; /* Tamaño más grande en el centro */
        box-shadow: 0 6px 16px rgba(31, 175, 158, 0.6), 0 3px 6px rgba(0, 0, 0, 0.3); /* Sombra más intensa */
    }
}

.video-center {
    display: block;
    margin: 0 auto;
}.btn-volver-inicio {
    background: linear-gradient(90deg, #1FAF9E 60%, #17c3b2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(31, 175, 158, 0.10);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.5px;
    float: right; /* Mueve el botón al lado derecho */
    margin: 10px 0; /* Ajusta el margen si es necesario */
}