/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: #1f2937;
    background-color: #f9fafb;
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 2;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: scale(1.05);
}

.btn-secondary {
    background-color: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-secondary:hover {
    background-color: #eff6ff;
}

.btn-outline {
    background-color: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.btn-outline:hover {
    background-color: #f3f4f6;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 50%, #eef2ff 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3e%3cg fill='%23f1f5f9' fill-opacity='0.4' fill-rule='evenodd'%3e%3cpath d='m0 40v-40h40v40h-40z' stroke='%23cbd5e1' stroke-width='1'/%3e%3c/g%3e%3c/svg%3e");
    background-size: 4rem 4rem;
    mask-image: linear-gradient(0deg, white, rgba(255,255,255,0.6));
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    mix-blend-mode: multiply;
    animation: blob 7s infinite;
}

.blob-1 {
    top: 0;
    right: 0;
    width: 20rem;
    height: 20rem;
    background-color: #dbeafe;
}

.blob-2 {
    top: 0;
    left: 5rem;
    width: 20rem;
    height: 20rem;
    background-color: #e5e7eb;
    animation-delay: 2s;
}

.blob-3 {
    bottom: -2rem;
    left: 5rem;
    width: 20rem;
    height: 20rem;
    background-color: #eef2ff;
    animation-delay: 4s;
}

@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}

.hero-container {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #dbeafe;
    color: #1e40af;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-highlight {
    display: block;
    color: #2563eb;
}

.hero-description {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #374151;
}

.feature .icon {
    color: #2563eb;
    flex-shrink: 0;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.hero-visual {
    position: relative;
}

.canvas-preview {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2rem;
    transform: rotate(3deg);
    transition: transform 0.3s ease;
}

.canvas-preview:hover {
    transform: rotate(0deg);
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.preview-block {
    height: 4rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid;
}

.block-red { background-color: #fef2f2; border-color: #fca5a5; color: #991b1b; }
.block-orange { background-color: #fff7ed; border-color: #fdba74; color: #c2410c; }
.block-yellow { background-color: #fefce8; border-color: #fde047; color: #a16207; }
.block-green { background-color: #f0fdf4; border-color: #86efac; color: #166534; }
.block-blue { background-color: #eff6ff; border-color: #93c5fd; color: #1e40af; }
.block-purple { background-color: #faf5ff; border-color: #c4b5fd; color: #7c2d12; }
.block-indigo { background-color: #eef2ff; border-color: #a5b4fc; color: #3730a3; }
.block-pink { background-color: #fdf2f8; border-color: #f9a8d4; color: #be185d; }

.floating-icon {
    position: absolute;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.floating-icon-1 {
    top: -1rem;
    right: -1rem;
    background-color: #2563eb;
    color: white;
}

.floating-icon-2 {
    bottom: -1rem;
    left: -1rem;
    background-color: #10b981;
    color: white;
}

/* Canvas Section */
.canvas-section {
    min-height: 100vh;
    padding: 1rem;
}

.canvas-container {
    max-width: 1280px;
    margin: 0 auto;
}

.canvas-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: stretch;
}

.header-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.title-label {
    color: #6b7280;
    font-weight: 500;
    font-size: 0.875rem;
}

.title-input {
    width: 100%;
    padding: 0.5rem 0;
    border: none;
    border-bottom: 2px solid #d1d5db;
    background: transparent;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.title-input:focus {
    border-color: #2563eb;
}

.auto-save-indicator {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.header-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.btn-text-short {
    display: inline;
}

.btn-text-full {
    display: none;
}

/* Canvas Grid */
.canvas-grid {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 2rem;
}

.mobile-layout {
    display: block;
}

.desktop-layout {
    display: none;
}

.block-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Canvas Block Styles */
.canvas-block {
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
    background: white;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.block-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.block-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.25;
}

.info-icon {
    width: 1rem;
    height: 1rem;
    color: #6b7280;
    cursor: pointer;
    flex-shrink: 0;
}

.info-icon:hover {
    color: #374151;
}

.block-counter {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.75rem;
    color: #6b7280;
    min-width: 4rem;
    flex-shrink: 0;
}

.progress-bar {
    width: 3rem;
    height: 0.25rem;
    background-color: #e5e7eb;
    border-radius: 9999px;
    margin-top: 0.25rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.progress-green { background-color: #10b981; }
.progress-yellow { background-color: #f59e0b; }
.progress-red { background-color: #ef4444; }

.block-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    max-height: 18.75rem;
    overflow-y: auto;
}

/* Cuando hay un editor activo, ajustar el contenedor */
.block-content:has(.editor-container) {
    max-height: none;
    overflow-y: visible;
}

/* Asegurar que el editor container tenga el espacio adecuado */
.editor-container {
    position: relative;
    z-index: 10;
    min-height: 220px;
    margin: 0.5rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.content-item {
    position: relative;
    padding: 0.5rem;
    border-radius: 0.25rem;
    group: hover;
}

.content-item:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

.item-content {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    padding-right: 0.5rem;
}

.item-menu {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.content-item:hover .item-menu {
    opacity: 1;
}

.menu-button {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e5e7eb;
    color: #6b7280;
    cursor: pointer;
    padding: 0.125rem;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.menu-button:hover {
    background-color: #f9fafb;
    color: #374151;
    border-color: #d1d5db;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 50;
    min-width: 6rem;
    display: none;
    font-size: 0.75rem;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    color: #374151;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.dropdown-item .icon {
    width: 0.875rem;
    height: 0.875rem;
}

.dropdown-item:hover {
    background-color: #f3f4f6;
}

.dropdown-item.danger {
    color: #dc2626;
}

.dropdown-item.danger:hover {
    background-color: #fef2f2;
}

.empty-message {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 0.75rem;
}

.empty-text {
    font-size: 0.875rem;
    color: #6b7280;
    font-style: italic;
    padding: 0 0.5rem;
}

.block-footer {
    flex-shrink: 0;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(229, 231, 235, 0.5);
    min-height: 2.8rem;
    display: flex;
    align-items: flex-start;
}

.add-button {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.375rem 0;
    width: 100%;
    text-align: left;
    transition: color 0.2s;
}

.add-button:hover {
    color: #1d4ed8;
}

.add-button:disabled {
    color: #9ca3af;
    cursor: not-allowed;
}

/* Block Color Variations */
.canvas-block[data-block="keyPartnerships"] { background-color: #fef2f2; border-color: #fca5a5; }
.canvas-block[data-block="keyActivities"] { background-color: #fff7ed; border-color: #fdba74; }
.canvas-block[data-block="valuePropositions"] { background-color: #fefce8; border-color: #fde047; }
.canvas-block[data-block="customerRelationships"] { background-color: #f0fdf4; border-color: #86efac; }
.canvas-block[data-block="customerSegments"] { background-color: #f0fdfa; border-color: #5eead4; }
.canvas-block[data-block="keyResources"] { background-color: #eff6ff; border-color: #93c5fd; }
.canvas-block[data-block="channels"] { background-color: #eef2ff; border-color: #a5b4fc; }
.canvas-block[data-block="costStructure"] { background-color: #faf5ff; border-color: #c4b5fd; }
.canvas-block[data-block="revenueStreams"] { background-color: #fdf2f8; border-color: #f9a8d4; }

/* Notes Section */
.notes-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.notes-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.notes-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.notes-list {
    margin-bottom: 1.5rem;
}

.add-note-btn {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

.add-note-btn:hover {
    color: #1d4ed8;
}

/* Quill Editor Styles */
.editor-container {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    width: 100%;
}

.editor-header {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    background-color: #f8fafc;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.editor-footer {
    padding: 0.5rem 0.75rem;
    border-top: 1px solid #e5e7eb;
    background-color: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.editor-shortcuts {
    flex: 1;
    min-width: 200px;
}

.shortcut-text {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.2;
}

.editor-buttons {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.quill-editor {
    min-height: 150px !important;
    max-height: 350px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
}

/* Quill Snow Theme Overrides */
.quill-editor .ql-toolbar {
    border: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.5rem 0.75rem;
    background-color: #ffffff;
}

.quill-editor .ql-container {
    border: none;
    font-family: inherit;
}

.quill-editor .ql-editor {
    font-size: 0.875rem;
    line-height: 1.6;
    padding: 0.75rem;
    color: #374151;
    border: none;
    outline: none;
    min-height: 100px !important;
    max-height: 280px !important;
    overflow-y: auto;
}

.quill-editor .ql-editor.ql-blank::before {
    font-style: italic;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Quill Toolbar Button Styles */
.quill-editor .ql-toolbar .ql-formats {
    margin-right: 0.75rem;
}

.quill-editor .ql-toolbar button {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
}

.quill-editor .ql-toolbar button:hover {
    background-color: #f3f4f6;
}

.quill-editor .ql-toolbar button.ql-active {
    background-color: #2563eb;
    color: white;
}

/* Ensure editor content is styled properly */
.quill-editor .ql-editor strong {
    font-weight: 700;
}

.quill-editor .ql-editor a {
    color: #2563eb;
    text-decoration: underline;
}

.quill-editor .ql-editor a:hover {
    color: #1d4ed8;
}

.char-counter {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.char-counter.over-limit {
    color: #dc2626;
    font-weight: 600;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    border-radius: 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    /* Editor container responsive */
    .editor-container {
        min-height: 180px;
        margin: 0.25rem 0;
    }

    .quill-editor {
        min-height: 120px !important;
        max-height: 250px !important;
    }

    .quill-editor .ql-toolbar {
        padding: 0.375rem 0.5rem;
    }

    .quill-editor .ql-editor {
        min-height: 80px !important;
        max-height: 200px !important;
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .editor-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding: 0.375rem 0.5rem;
    }

    .editor-shortcuts {
        text-align: center;
        min-width: auto;
    }

    .shortcut-text {
        font-size: 0.7rem;
    }

    .editor-buttons {
        justify-content: center;
    }

    /* Fallback editor styles */
    .fallback-editor .fallback-textarea {
        min-height: 100px;
        max-height: 200px;
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .fallback-toolbar {
        padding: 0.375rem 0.5rem;
    }
}

/* Footer */
.footer {
    background-color: #1f2937;
    color: white;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.company-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.company-brand .icon {
    color: #60a5fa;
}

.company-name {
    font-size: 1.25rem;
    font-weight: 700;
}

.company-description {
    color: #d1d5db;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: #9ca3af;
    transition: color 0.2s;
}

.social-link:hover {
    color: #60a5fa;
}

.footer-heading {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-list {
    list-style: none;
    color: #d1d5db;
    font-size: 0.875rem;
    line-height: 1.6;
}

.contact-info {
    color: #d1d5db;
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
}

.footer-copyright {
    font-size: 0.875rem;
    color: #9ca3af;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    color: #9ca3af;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: white;
}

/* Modal Styles */
.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 28rem;
    max-height: 90vh;
    overflow: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #374151;
}

.modal-body {
    padding: 1.5rem;
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.form-group input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    outline: none;
}

.form-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Tooltip */
.tooltip {
    position: absolute;
    background-color: #1f2937;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.4;
    max-width: 20rem;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    word-wrap: break-word;
}

.tooltip.show {
    opacity: 1;
    visibility: visible;
}

/* Content Formatting */
.formatted-content strong {
    font-weight: 700;
}

.formatted-content a {
    color: #2563eb;
    text-decoration: underline;
}

.formatted-content a:hover {
    color: #1d4ed8;
}

/* Responsive Design */
@media (min-width: 640px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }

    .hero-title {
        font-size: 3rem;
        text-align: left;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: flex-start;
    }

    .hero-stats {
        justify-content: flex-start;
    }

    .canvas-header {
        flex-direction: row;
        align-items: center;
    }

    .header-title {
        flex-direction: row;
        align-items: center;
    }

    .title-input {
        width: 16rem;
    }

    .header-buttons {
        flex-direction: row;
        width: auto;
    }

    .btn-text-short {
        display: none;
    }

    .btn-text-full {
        display: inline;
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }

    .canvas-section {
        padding: 1.5rem;
    }

    .canvas-grid {
        padding: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }

    .canvas-section {
        padding: 2rem;
    }

    .mobile-layout {
        display: none;
    }

    .desktop-layout {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 1rem;
        min-height: 50rem;
    }

    /* Row 1 - Top */
    .partnerships {
        grid-row: 1 / 3; /* spans rows 1-2 */
        grid-column: 1;
    }

    .activities {
        grid-row: 1;
        grid-column: 2;
    }

    .value-props {
        grid-row: 1 / 4; /* spans rows 1-3 (center column) */
        grid-column: 3;
    }

    .relationships {
        grid-row: 1;
        grid-column: 4;
    }

    .segments {
        grid-row: 1 / 3; /* spans rows 1-2 */
        grid-column: 5;
    }

    /* Row 2 - Middle */
    .resources {
        grid-row: 2;
        grid-column: 2;
    }

    .channels {
        grid-row: 2;
        grid-column: 4;
    }

    /* Row 3 - Bottom */
    .costs {
        grid-row: 3;
        grid-column: 1 / 3; /* spans columns 1-2 */
    }

    .revenues {
        grid-row: 3;
        grid-column: 4 / 6; /* spans columns 4-5 */
    }
}

/* Fallback Editor Styles (when Quill fails to load) */
.fallback-editor {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    overflow: hidden;
}

.fallback-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    background-color: #f8fafc;
}

.fallback-toolbar button {
    padding: 0.25rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    background: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
}

.fallback-toolbar button:hover {
    background-color: #f3f4f6;
}

.fallback-char-counter {
    margin-left: auto;
    font-size: 0.75rem;
    color: #6b7280;
}

.fallback-char-counter.over-limit {
    color: #dc2626;
}

.fallback-textarea {
    width: 100%;
    min-height: 120px;
    max-height: 300px;
    padding: 0.75rem;
    border: none;
    outline: none;
    resize: vertical;
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #374151;
}

.fallback-footer {
    padding: 0.5rem 0.75rem;
    border-top: 1px solid #e5e7eb;
    background-color: #f8fafc;
    text-align: center;
}

@media (min-width: 1280px) {
    .hero-container {
        padding: 0 2rem;
    }

    .canvas-container {
        padding: 0 2rem;
    }

    .footer-container {
        padding: 3rem 2rem;
    }
}


.local-storage-warning {
    display: flex;
    align-items: center;
    background-color: #fffbe6; /* Amarillo pálido de advertencia */
    border: 1px solid #ffe58f;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px; /* Espacio antes de la siguiente nota */
}

.local-storage-warning .warning-icon {
    font-size: 1.5rem;
    margin-right: 15px;
}

.local-storage-warning .warning-text {
    font-size: 0.9em;
    color: #5b4a0e;
    line-height: 1.5;
}

.canvas-instructions {
    text-align: center;
    padding: 10px 15px;
    background-color: #f0f4f8; /* Un fondo sutil */
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9em;
    color: #333;
}