:root {
    --primary-color: #007aff;
    --secondary-color: #f0f0f0;
    --text-color: #1a1a1a;
    --border-color: #e0e0e0;
    --background-color: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --card-background: #ffffff;
    --input-background: #ffffff;
    --hover-color: #f5f5f5;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Performance optimizations */
* {
    box-sizing: border-box;
}

/* Reduce layout thrashing */
.container,
.main-layout,
.content-wrapper {
    contain: layout style;
}

/* Optimize font loading */
@font-face {
    font-family: 'Source Code Pro';
    font-display: swap;
}

/* Critical above-the-fold styles */
.header {
    will-change: transform;
}

.textarea {
    will-change: contents;
    contain: layout;
}

[data-theme="dark"] {
    --primary-color: #40a9ff;
    --secondary-color: #2a2a2a;
    --text-color: #ffffff;
    --border-color: #404040;
    --background-color: #1a1a1a;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --card-background: #2a2a2a;
    --input-background: #333333;
}

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

body {
    font-family: 'Source Code Pro', monospace;
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
    line-height: 1.5;
    font-weight: 300;
    transition: background-color 0.3s ease, color 0.3s ease;
    /* Performance optimizations */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
    contain: layout style;
    transform: translateZ(0); /* Force GPU layer */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
}

.header {
    text-align: left;
    margin-bottom: 2rem;
    position: relative;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.main-icon {
    display: block;
}

.header-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.7;
    font-weight: 300;
}

.main-area {
    background: var(--card-background);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 12px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.textarea {
    width: 100%;
    height: 300px;
    padding: 2rem;
    border: none;
    font-family: 'Source Code Pro', monospace;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--input-background);
    resize: none;
    outline: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.textarea:focus {
    outline: none;
    border-color: transparent;
}

.main-area:focus-within {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.textarea::placeholder {
    color: var(--text-color);
    opacity: 0.5;
    font-weight: 300;
}

.stats-bar {
    background: var(--secondary-color);
    border-top: 1px solid var(--border-color);
    padding: 0.10rem 0rem 0.10rem 0.70rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.7;
    font-weight: 300;
}

.stats-left {
    display: flex;
    gap: 2rem;
}

.stat {
    display: flex;
    gap: 0.3rem;
}

.stat-value {
    color: var(--text-color);
    font-weight: 400;
}

.options-section {
    background: transparent;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.options-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.options-title {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-color);
}

.options-actions {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
}

.action-link {
    color: #007aff;
    cursor: pointer;
    text-decoration: none;
}

.action-link:hover {
    text-decoration: underline;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.option-item.full-width {
    grid-column: 1 / -1;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.15s ease;
    background: transparent;
}

.option-item:hover {
    border:2px solid #34c759;
}

.option-item.active {
    border-color: #34c759;
}

.custom-checkbox {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.check-icon {
    width: 16px;
    height: 16px;
    stroke: var(--primary-color);
    fill: none;
    stroke-width: 2;
    transition: all 0.15s ease;
}

.option-item.active .check-icon {
    stroke: #34c759;
}

.option-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    user-select: none;
    transition: color 0.15s ease;
}

.option-item.active .option-label {
    color: #34c759;
    font-weight: 400;
}

.custom-input-section {
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    padding: 1.5rem 0;
    margin: 1rem 0;
}

[data-theme="dark"] .custom-input-section {
    border-top: 1px solid #404040;
    border-bottom: 1px solid #404040;
}

.custom-input-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.custom-input {
    width: 100%;
    height: 50px;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--input-background);
    color: var(--text-color);
    font-family: 'Source Code Pro', monospace;
    font-size: 0.85rem;
    font-weight: 300;
    outline: none;
    transition: border-color 0.15s ease, background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
}

.custom-input:focus {
    border-color: var(--primary-color);
}

.custom-input::placeholder {
    color: var(--text-color);
    opacity: 0.5;
}

.custom-input-section .option-item {
    width: 100%;
    box-sizing: border-box;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.controls-row {
    display: flex;
    gap: 0.75rem;
}

.controls-row.single {
    justify-content: stretch;
}

.controls-row.double {
    justify-content: space-between;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--card-background);
    color: var(--text-color);
    font-family: 'Source Code Pro', monospace;
    font-size: 0.85rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.controls-row.single .btn {
    width: 100%;
}

.controls-row.double .btn {
    flex: 1;
}

.btn:hover {
    border-color: #007aff;
    color: #007aff;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: #007aff;
    border-color: #007aff;
    color: #ffffff;
}

.btn-primary:hover {
    background: #0056cc;
    border-color: #0056cc;
    color: #ffffff;
}

.icon {
    width: 30px;
    height: 30px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}



.toast {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: #2b2b2b;
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 300;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 999999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.warning {
    background: #ff9500;
}

.toast.success {
    background: #007aff;
}

/* Banner Superior Styles */
.ad-banner-top {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90px;
}

.adsense-placeholder-horizontal {
    width: 100%;
    max-width: 728px;
    height: 90px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--border-color) 100%);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    transition: all 0.3s ease;
}

.adsense-placeholder-horizontal:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.adsense-placeholder-horizontal .ad-label {
    font-size: 10px;
    color: var(--text-color);
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.adsense-placeholder-horizontal .ad-content-horizontal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.adsense-placeholder-horizontal .ad-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2px;
}

.adsense-placeholder-horizontal .ad-description {
    font-size: 11px;
    color: var(--text-color);
    opacity: 0.7;
    line-height: 1.3;
}

.adsense-placeholder-horizontal .ad-cta {
    font-size: 10px;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 2px;
}

/* Responsive para banner superior */
@media (max-width: 768px) {
    .ad-banner-top {
        padding: 0 15px;
        margin: 15px auto;
    }
    
    .adsense-placeholder-horizontal {
        max-width: 320px;
        height: 50px;
    }
    
    .adsense-placeholder-horizontal .ad-title {
        font-size: 12px;
    }
    
    .adsense-placeholder-horizontal .ad-description {
        font-size: 10px;
    }
}

/* Main layout - content stays in original position */
.main-layout {
    position: relative;
}

/* Sidebar ads - positioned absolutely - Optimized for performance */
.ad-sidebar {
    position: fixed !important;
    width: 160px !important;
    height: fit-content !important;
    z-index: 1000 !important;
    box-sizing: border-box !important;
    top: 2rem !important;
    will-change: transform !important; /* Optimize for animations */
    contain: layout style !important; /* Contain layout calculations */
}

/* Left sidebar ad */
.ad-sidebar-left {
    left: calc(50% - 600px - 180px) !important;
}

/* Right sidebar ad */
.ad-sidebar-right {
    right: calc(50% - 600px - 180px) !important;
    top: 50% !important;
    transform: translateY(-50%) translateZ(0) !important; /* Force GPU acceleration */
}

/* AdSense Placeholder */
.adsense-placeholder {
    width: 160px;
    height: 400px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ad-label {
    background: #f0f0f0;
    color: #666;
    font-size: 10px;
    text-align: center;
    padding: 4px;
    border-bottom: 1px solid #ddd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ad-content {
    flex: 1;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.ad-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.2;
}

.ad-description {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 20px;
}

.ad-cta {
    background: #007aff;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.ad-cta:hover {
    background: #0056b3;
}

/* Horizontal Banner Ad */
.ad-banner-horizontal {
    width: 100%;
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

.adsense-placeholder-horizontal {
    width: 728px;
    height: 90px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ad-content-horizontal {
    flex: 1;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ad-content-horizontal .ad-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-right: 15px;
}

.ad-content-horizontal .ad-description {
    font-size: 11px;
    color: #666;
    flex: 1;
    margin-right: 15px;
}

.ad-content-horizontal .ad-cta {
    background: #007aff;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.ad-content-horizontal .ad-cta:hover {
    background: #0056b3;
}

/* Hide ads on smaller screens */
@media (max-width: 1400px) {
    .ad-sidebar {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .ad-banner-horizontal {
        display: none;
    }
}

.ad-sidebar-left .adsbygoogle {
    min-height: 400px;
    max-height: calc(100vh - 8rem);
    width: 160px;
}

/* Desktop layout - two columns */
@media (min-width: 769px) {
    .content-wrapper {
        display: grid;
        grid-template-columns: 1fr 500px;
        gap: 2rem;
        align-items: start;
    }
    
    .left-column {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        position: sticky;
        top: 2rem;
    }
    
    .right-column {
        /* Remove sticky from right column to allow normal scrolling */
    }
}

/* Hide sidebar on smaller screens */
@media (max-width: 1400px) {
    .ad-sidebar-left {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 2rem 1rem;
        max-width: 100%;
    }

    .main-area {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .options-section {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .textarea {
        padding: 1.5rem;
    }

    .stats-bar {
        padding: 0.75rem 1.5rem;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .controls {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
    }

    .options-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .custom-input-container {
        flex-direction: column;
        align-items: stretch;
    }

    /* Mobile buttons positioning */
    .support-button {
        position: static;
        width: 35px;
        height: 35px;
        margin: 0;
        display: inline-flex;
    }

    .theme-toggle {
        position: static;
        width: 35px;
        height: 35px;
        margin: 0;
        display: inline-flex;
    }

    .support-button svg,
    .theme-toggle svg {
        width: 18px;
        height: 18px;
    }

    .header {
        margin-bottom: 1.5rem;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .title {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .main-icon {
        width: 40px;
        height: 40px;
    }

    .mobile-buttons {
        display: flex;
        gap: 0.75rem;
        align-items: center;
    }

    /* Hide desktop buttons on mobile */
    .support-button:not(.mobile-support),
    .theme-toggle:not(.mobile-theme) {
        display: none !important;
    }
}

/* Hide mobile buttons on desktop */
@media (min-width: 769px) {
    .mobile-buttons {
        display: none;
    }
}

/* Header with support button */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.header-text {
    flex: 1;
}



.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    color: var(--text-color);
}

.theme-toggle:hover {
    transform: scale(1.1);
    background-color: #40a9ff;
}

.theme-toggle:hover svg {
    fill: white;
    stroke: white;
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;

}

.support-button {
    position: fixed;
    top: 20px;
    right: 80px;
    width: 50px;
    height: 50px;
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    transition: all 0.2s ease;
    color: #ff7f7f;
    display: flex;
    align-items: center;
    justify-content: center;
}

.support-button:hover {
    background-color: coral;
    transform: scale(1.1);
    cursor: pointer;
}

.support-button:hover svg {
    fill: white;
    stroke: white;
}

.support-button svg {
    width: 24px;
    height: 24px;
    transition: all 0.2s ease;
}

/* Support Drawer */
.support-drawer {
    position: fixed;
    inset: 0;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.support-drawer.open {
    visibility: visible;
    opacity: 1;
}

.drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

[data-theme="dark"] .drawer-overlay {
    background-color: rgba(0, 0, 0, 0.7);
}

.drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background: var(--card-background);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .drawer-content {
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
}

.support-drawer.open .drawer-content {
    transform: translateX(0);
}

.drawer-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h3 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-color);
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    color: var(--text-color);
    opacity: 0.7;
}

.close-btn:hover {
    background-color: var(--secondary-color);
}

.drawer-body {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.support-description {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-color);
    opacity: 1;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.support-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.support-link {
    display: block;
    padding: 1rem 0;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: none;
}

.support-link:hover {
    background: none;
    transform: none;
    box-shadow: none;
}

.support-link:last-child {
    border-bottom: none;
}

.support-link-name {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    display: block;
}

.support-link-description {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-color);
    opacity: 1;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .drawer-content {
        width: 100%;
    }
    
    .drawer-header {
        padding: 1.5rem;
    }
    
    .drawer-body {
        padding: 1.5rem;
    }
}

/* Botón de maximizar */
.maximize-btn {
    background: none;
    border: none;
    color: var(--text-color);
    opacity: 0.7;
    cursor: pointer;
    padding: 0.75rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.maximize-btn:hover {
    opacity: 1;
    background: var(--border-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background: var(--card-background);
    border-radius: 1rem;
    width: 90vw;
    height: 80vh;
    max-width: 1200px;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
    margin: 0;
    position: relative;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 600;
}

.close-modal-btn {
    background: none;
    border: none;
    color: var(--text-color);
    opacity: 0.7;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal-btn:hover {
    opacity: 1;
    background: var(--secondary-color);
}

.modal-body {
    flex: 1;
    padding: 2rem;
    display: flex;
}

.modal-body textarea {
    width: 100%;
    height: 100%;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    font-family: 'Source Code Pro', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 1rem;
    line-height: 1.6;
    background: var(--input-background);
    color: var(--text-color);
    resize: none;
    outline: none;
    transition: border-color 0.2s ease;
}

.modal-body textarea:focus {
    border-color: var(--primary-color);
}

.modal-body textarea::placeholder {
    color: var(--text-color);
    opacity: 0.5;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Estilos para el botón de opciones */
.stats-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.options-btn {
    /* Hereda estilos del botón base */
}

.options-btn:hover {
    /* Hereda estilos del botón base */
}

/* Ocultar botón de opciones en desktop */
@media (min-width: 769px) {
    .options-btn {
        display: none;
    }
}

/* Ocultar opciones de limpieza en móvil */
@media (max-width: 768px) {
    .options-section {
        display: none;
    }
    
    .modal-content {
        width: 95vw;
        max-width: 95vw;
        height: 85vh;
        margin: 0;
        border-radius: 1rem;
    }
    
    .modal.active {
        align-items: center;
        justify-content: center;
        padding: 1rem;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
    
    .options-modal-body {
        padding: 1rem;
        overflow-y: auto;
    }
    
    .mobile-options-grid {
        gap: 0.75rem;
    }
    
    .mobile-options-grid .option-item {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .custom-input-section {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
    }
    
    .custom-input-container {
        width: 100%;
        box-sizing: border-box;
    }
    
    .custom-input {
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 0.5rem;
    }
}

/* Estilos específicos para el modal de opciones */
.options-modal-body {
    padding: 1.5rem;
}

.mobile-options-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-options-grid .option-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.15s ease;
    background: transparent;
}

.mobile-options-grid .option-item:hover {
    border: 2px solid #34c759;
}

.mobile-options-grid .option-item.active {
    border-color: #34c759;
}

.mobile-options-grid .option-item.full-width {
    width: 100%;
}

.mobile-options-grid .option-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    user-select: none;
    transition: color 0.15s ease;
}

.mobile-options-grid .option-item.active .option-label {
    color: #34c759;
    font-weight: 400;
}

.mobile-actions {
    display: flex;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.mobile-actions .action-link {
    color: #007aff;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
}

.mobile-actions .action-link:hover {
    text-decoration: underline;
}

.custom-input-section {
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    padding: 1.5rem 0;
    margin: 1rem 0;
}

[data-theme="dark"] .custom-input-section {
    border-top: 1px solid #404040;
    border-bottom: 1px solid #404040;
}

.custom-input-section .option-item {
    width: 100%;
    box-sizing: border-box;
    margin-top: 0.75rem;
}

.custom-input-section .option-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    user-select: none;
    transition: color 0.15s ease;
}

.custom-input-section .option-item.active .option-label {
    color: #34c759;
    font-weight: 400;
}