
:root{--verde:#164b2c;--verde2:#276d37;--marfil:#fffdf4;--oro:#e8c56f}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:linear-gradient(145deg,#0d351f,#347b43 60%,#133e2b);color:#173a28;font-family:system-ui,-apple-system,'Segoe UI',sans-serif;min-height:100vh}a{text-decoration:none;color:inherit}.wrapper{max-width:1160px;margin:0 auto;padding:28px 22px 55px}.hero{position:relative;border-radius:30px;overflow:hidden;min-height:290px;display:flex;align-items:center;justify-content:center;text-align:center;color:white;background:linear-gradient(120deg,rgba(7,38,20,.9),rgba(16,66,32,.55)),url('jardin_mariposas.jpg') center/cover;box-shadow:0 15px 40px #092d1f55;padding:55px 20px}.eyebrow{font-size:1rem;letter-spacing:.15em;text-transform:uppercase;color:#f6db97;font-weight:700}h1{font-family:Georgia,serif;font-size:clamp(2.3rem,6vw,4.6rem);line-height:1.12;margin:16px 0}.hero p{font-size:clamp(1rem,2vw,1.27rem);margin:0;color:#f4f7e9}.leaf{position:absolute;font-size:3rem;opacity:.6}.leaf.a{left:5%;top:12%}.leaf.b{right:5%;bottom:12%}.panel{margin-top:26px;background:rgba(255,253,244,.95);border:1px solid #f4efd7;border-radius:24px;padding:28px;box-shadow:0 8px 22px #102c2040}.intro{text-align:center;margin-bottom:26px;font-size:1.12rem}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.nav-card{display:flex;align-items:center;gap:15px;background:linear-gradient(135deg,#fffef9,#f1f3dc);border:2px solid transparent;border-radius:20px;padding:20px 16px;min-height:100px;box-shadow:0 5px 12px #14301b1a;transition:transform .2s,border-color .2s,box-shadow .2s}.nav-card:hover,.nav-card:focus-visible{transform:translateY(-4px);border-color:#61a76e;box-shadow:0 9px 20px #14301b36;outline:none}.bubble{flex-shrink:0;width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:#d9ecd2;font-size:29px}.nav-title{font-weight:800;font-size:1.12rem;flex:1}.arrow{color:#347a39;font-weight:800;font-size:24px}.back{display:inline-flex;align-items:center;gap:8px;background:#eff6e8;color:#205532;border:1px solid #b8d3b0;border-radius:40px;padding:10px 17px;font-weight:750;margin-bottom:20px}.back:hover{background:#deefd6}.content-title{font-family:Georgia,serif;color:#21532e;font-size:clamp(1.8rem,4vw,3rem);margin:0 0 10px}.muted{color:#566757;line-height:1.65}.editable{padding:18px 20px;border-left:5px solid #7fbd73;background:#f0f7e9;border-radius:10px;margin:23px 0}.document-area{border:2px dashed #82af78;border-radius:19px;padding:22px;background:#fafdf7}.document-area h2{margin:0 0 8px;color:#224c31;font-size:1.2rem}.controls{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:16px 0}.choose{background:#216a3c;color:white;border-radius:12px;padding:12px 16px;font-size:1rem;font-weight:700;cursor:pointer;display:inline-block}.choose:hover{background:#16532e}input[type=file]{max-width:100%;font-size:1rem}.frame{width:100%;height:650px;border:1px solid #b8d3b0;border-radius:12px;background:white}.hidden{display:none}.note{font-size:.92rem;color:#667261}.photo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:15px;margin-top:20px}.photo-grid img{width:100%;height:180px;object-fit:cover;border-radius:14px}.photo-grid figure{margin:0}.photo-grid figcaption{font-size:.85rem;color:#45614c;margin-top:6px;overflow-wrap:anywhere}.foot{text-align:center;color:#e2f3d7;margin-top:26px;font-size:.92rem}.smallnav{display:flex;gap:8px;flex-wrap:wrap;margin-top:25px}.smallnav a{color:#225331;background:#ebf5e6;padding:8px 11px;border-radius:11px;font-size:.86rem} @media(max-width:800px){.grid{grid-template-columns:repeat(2,1fr)}.wrapper{padding:12px 12px 35px}.panel{padding:20px}.hero{min-height:245px}}@media(max-width:530px){.grid{grid-template-columns:1fr}.hero{min-height:220px}.nav-card{min-height:82px}.frame{height:480px}}

.rich-text{font-size:1.07rem;line-height:1.75;margin:18px 0 27px;min-height:45px;overflow-wrap:anywhere}.rich-text p{margin:.6em 0}.edit-bar{position:sticky;top:8px;z-index:30;background:#fffdf1;border:2px solid #7cae71;border-radius:18px;padding:15px;margin:0 0 16px;box-shadow:0 5px 22px #0003}.edit-heading{font-weight:800;color:#205532}.edit-heading small{display:block;font-weight:400}.edit-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.edit-actions button,.delete-asset{border:0;border-radius:9px;background:#216a3c;color:white;padding:9px 12px;cursor:pointer;font:inherit;font-weight:700}.edit-actions button:hover{background:#13522d}.edit-actions #exportSite{background:#915c13}.edit-actions #previewMode{background:#36566a}.edit-active [contenteditable=true]{outline:2px dashed #79af70;outline-offset:4px;border-radius:5px;cursor:text}.edit-active [contenteditable=true]:focus{outline:2px solid #1d6635;background:#fffdf0}.edit-active [contenteditable=true]:empty::before{content:attr(data-placeholder);color:#657d64}.media-section{margin:25px 0;padding:20px;background:#f5faef;border-radius:16px;border:1px solid #cfe4c8}.media-section h2{margin-top:0;color:#205532}.media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:15px}.asset-card{background:white;border-radius:13px;padding:12px;border:1px solid #cddfca;position:relative;overflow:hidden}.asset-card img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px}.asset-card a{color:#155b3d;text-decoration:underline;overflow-wrap:anywhere}.asset-card p{font-size:.88rem;margin:8px 0}.delete-asset{background:#a92d36;margin-top:9px;font-size:.85rem}.empty-media{color:#617363}.edit-bar[hidden],.delete-asset[hidden]{display:none!important}#saveStatus{display:inline-block;margin-top:6px;font-size:.87rem;color:#37663d}@media(max-width:530px){.edit-actions button{flex-grow:1}}

.slots-section{margin:28px 0;padding:22px;background:#edf7e9;border:1px solid #bcd9b2;border-radius:18px}.slots-section h2{color:#245c36;margin:0 0 8px}.slots-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:13px;margin-top:20px}.slot{background:#fffdf7;border:1px solid #b3d3aa;border-radius:15px;padding:16px 12px;text-align:center;min-height:185px;display:flex;flex-direction:column;align-items:center;gap:9px;box-shadow:0 3px 12px #194e2612}.slot-number{font-weight:900;color:#1c6337;font-size:1.5rem}.slot-preview{width:100%;height:94px;object-fit:cover;border-radius:9px}.slot-icon{font-size:2.7rem}.slot a{color:#185a38;text-decoration:underline;overflow-wrap:anywhere;font-weight:700}.slot .filename{font-size:.78rem;overflow-wrap:anywhere}.slot-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:5px}.slot-actions button{border:0;background:#25693c;color:white;border-radius:7px;padding:7px;cursor:pointer;font-size:.78rem}.slot-actions button.remove{background:#a33436}.slot-empty{font-size:.85rem;color:#657864}.hero.no-cover{background:linear-gradient(125deg,#154e2e,#468b51)!important}.image-open{display:block}.image-open img{cursor:zoom-in}.edit-active #heroTitle,.edit-active #heroEyebrow{outline:2px dashed #79af70;outline-offset:4px;cursor:text;border-radius:4px}

.slot-number{line-height:1.4;min-height:3em;overflow-wrap:anywhere}.slot-preview{object-fit:contain!important;background:#fff}.slots-grid{grid-template-columns:repeat(auto-fill,minmax(245px,1fr))}

.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.two-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.write-area{background:#f2f8ed;padding:21px;border-radius:16px;border:1px solid #c8dbc1;min-height:210px}.write-area h2{color:#205532}.reference-box{background:#fff;border-radius:16px;padding:22px;border:1px solid #d5dfc8;display:flex;flex-direction:column;align-items:flex-start;gap:12px}.reference-box a{color:#185a38;font-weight:800}.download-link{background:#216a3c;color:white!important;border-radius:9px;padding:10px 15px}.minor-button,#addBibliography{font:inherit;font-size:.83rem;border:0;border-radius:8px;background:#2d6a42;color:#fff;padding:8px;margin-top:7px;cursor:pointer}.minor-button.remove{background:#a33436}.editor-only{margin-top:18px}.video-preview{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:9px;background:#122618}.linktext{display:block;margin-top:10px}.asset-card .media-caption{min-height:2.3em;overflow-wrap:anywhere}.edit-active .media-caption[contenteditable]{outline:2px dashed #7cae71;border-radius:5px;padding:4px;cursor:text}.slot .slot-number{font-size:1.03rem;min-height:3em}.slot .slot-preview{height:170px;object-fit:contain}.slot .minor-button{font-size:.72rem}.slot{justify-content:space-between}.edit-active [data-nav][contenteditable]{cursor:text;outline:2px dashed #79af70;outline-offset:2px}.smallnav{margin-top:32px}@media(max-width:700px){.category-grid,.two-panels{grid-template-columns:1fr}}

.editor-go{display:inline-block;margin:6px 0 12px;padding:6px 10px;border-radius:8px;background:#2b6d40;color:white!important;font-size:.76rem;text-decoration:none}.nav-card+.editor-go{align-self:center}.edit-active .nav-card{margin-bottom:0}

/* Herramientas de edición */
.format-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:9px;background:#e9f3e4;border:1px solid #aec9a9;padding:10px;margin-top:12px;border-radius:10px}.format-toolbar button,.format-toolbar select,.toggle-section{padding:8px 10px;border-radius:8px;border:1px solid #93b48e;background:#fff;color:#174b2c;cursor:pointer;font:inherit}.format-toolbar small{color:#4d6250}.toggle-section{display:block;margin:12px 0;background:#fff1e8;border-color:#ce9983}.section-removed{display:none!important}.media-caption{line-height:1.5}.media-caption i,.rich-text i{font-style:italic}.media-caption b,.rich-text b{font-weight:700}
