*{box-sizing:border-box}
:root{
--bg:#f6f6fb;
--surface:#fff;
--text:#2f3138;
--muted:#777b86;
--border:#dfe1e7;
--primary:#ef4444;
--primary-dark:#dc2626;
--soft:#f1f2f6;
--success:#25a65a;
--danger:#b42318;
--shadow:0 2px 8px rgba(26,30,44,.05);
--radius:16px;
--shell:1280px;
--app:580px
}
html{font-size:16px;scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;line-height:1.5}
*{font-family:inherit}
a{color:inherit}
button,input,select,textarea{font:inherit}
.shell{width:min(calc(100% - 32px),var(--shell));margin:auto}

/* Header */
.site-header{background:#fff;border-bottom:1px solid var(--border)}
.header-inner{min-height:64px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;font-weight:900;font-size:1.2rem}
.brand-mark{display:grid;width:36px;height:36px;place-items:center;border-radius:9px;background:var(--primary);color:#fff}
.brand-text{letter-spacing:-.03em}
.header-nav{display:flex;align-items:center;gap:24px;margin-left:24px;margin-right:auto}
.header-nav a{font-size:.88rem;font-weight:750;text-decoration:none}
.header-nav a:hover{color:var(--primary)}
.claim{font-size:.84rem;color:var(--muted)}

/* Home hero */
.hero{padding:32px 0 18px;text-align:center}
.hero.compact{padding:38px 0 22px}
.eyebrow{margin:0 0 10px;color:var(--primary);font-size:.78rem;font-weight:850;letter-spacing:.07em;text-transform:uppercase}
.hero h1{max-width:900px;margin:0 auto 10px;font-size:clamp(2rem,4.7vw,3.25rem);line-height:1.08;letter-spacing:-.045em}
.hero p{max-width:760px;margin:0 auto;color:var(--muted);font-size:clamp(1rem,2vw,1.13rem)}

/* Categories */
.categories-wrap{padding:0 0 24px}
.category-row{display:flex;justify-content:center;flex-wrap:wrap;gap:10px}
.category-chip{display:inline-flex;align-items:center;padding:9px 15px;border:1px solid var(--border);border-radius:999px;background:#fff;color:#555b66;font-size:.86rem;font-weight:700}
.category-chip.is-active{background:#30323a;border-color:#30323a;color:#fff}

/* Tools grid */
.tools-section{padding:0 0 56px}
.tools-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.tool-card{display:block;min-height:210px;padding:24px;border:1px solid var(--border);border-radius:var(--radius);background:#fff;text-decoration:none;box-shadow:var(--shadow);transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}
.tool-card:hover{transform:translateY(-2px);border-color:#cfd2da;box-shadow:0 8px 22px rgba(26,30,44,.08)}
.tool-icon{display:grid;width:44px;height:44px;place-items:center;margin-bottom:18px;border-radius:10px;background:#fee2e2;color:var(--primary)}
.tool-icon svg{width:24px;height:24px;stroke:currentColor}
.tool-card h3{margin:0 0 8px;font-size:1.05rem}
.tool-card p{margin:0;color:var(--muted);font-size:.9rem}
.tool-meta{display:flex;align-items:center;justify-content:space-between;margin-top:22px}
.badge{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:.73rem;font-weight:800}
.badge-free{background:#eaf8ef;color:#167a56}
.badge-soon{background:#f1f2f5;color:#7a7f8c}
.badge-featured{background:#fff0f0;color:var(--primary)}
.tool-arrow{font-weight:900;color:var(--primary)}
.tool-card.soon{opacity:.58;pointer-events:none}

/* App layout */
.app-wrap{width:min(calc(100% - 24px),var(--app));margin:0 auto 52px}
.card{padding:24px;background:#fff;border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}
.field{margin-bottom:18px}
.field label{display:block;margin-bottom:7px;font-size:.92rem;font-weight:800}
.hint{margin:6px 0 0;color:var(--muted);font-size:.82rem}
.input{width:100%;min-height:52px;padding:0 14px;border:1px solid var(--border);border-radius:11px;background:#fff;color:var(--text);outline:none}
.input:focus{border-color:#f59b9b;box-shadow:0 0 0 4px rgba(239,68,68,.08)}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.btn{display:inline-flex;width:100%;min-height:52px;align-items:center;justify-content:center;border:0;border-radius:11px;padding:12px 18px;background:var(--primary);color:#fff;font-weight:850;text-decoration:none;text-align:center;cursor:pointer}
.btn:hover{background:var(--primary-dark)}
.btn-whatsapp{background:var(--success)}
.btn-soft{margin-top:10px;background:var(--soft);color:var(--text)}
.btn-ghost{margin-top:10px;background:#fff;color:var(--text);border:1px solid var(--border)}
.divider{height:1px;margin:22px 0;background:var(--border)}
.summary{margin-bottom:16px;padding:16px;border:1px solid var(--border);border-radius:12px;background:#fafafa}
.summary strong{display:block;margin-bottom:4px}
.state-row{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.state{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:.76rem;font-weight:850}
.state-success{background:#eaf8ef;color:#167a56}
.state-info{background:#eef2ff;color:#4f46e5}
.error{margin-bottom:16px;padding:13px 15px;border-radius:11px;background:#fef3f2;color:var(--danger);border:1px solid #fecdca}
.appointment{text-align:center}
.appointment-icon{display:grid;width:56px;height:56px;place-items:center;margin:0 auto 14px;border-radius:14px;background:#fee2e2;color:var(--primary)}
.appointment-icon svg{width:28px;height:28px;stroke:currentColor}
.appointment h2{margin:0 0 8px}
.appointment p{margin:0;color:var(--muted)}
details{margin-top:14px}
summary{cursor:pointer;color:var(--muted);font-size:.9rem;font-weight:700}
.options{margin-top:12px}

/* SEO */
.seo-section{padding:0 0 60px}
.seo-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.seo-card{padding:22px;border:1px solid var(--border);border-radius:var(--radius);background:#fff}
.seo-card h2,.seo-card h3{margin-top:0}
.seo-card p,.seo-card li{color:var(--muted)}
.steps{display:grid;gap:10px;counter-reset:step}
.step{position:relative;padding:13px 13px 13px 48px;border-radius:11px;background:#f8f8fb}
.step:before{counter-increment:step;content:counter(step);position:absolute;left:13px;top:12px;display:grid;width:24px;height:24px;place-items:center;border-radius:7px;background:var(--primary);color:#fff;font-size:.77rem;font-weight:850}
.faq{display:grid;gap:10px}
.faq details{margin:0;padding:13px 15px;border:1px solid var(--border);border-radius:11px;background:#fff}
.related-tools{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.related-link{padding:15px;border:1px solid var(--border);border-radius:11px;background:#fff;text-decoration:none}

/* Footer */
.site-footer{border-top:1px solid var(--border);background:#fff}
.footer-inner{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:20px;color:var(--muted);font-size:.84rem}
.footer-links{display:flex;gap:16px}
.footer-links a{text-decoration:none}

@media(max-width:1050px){.tools-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:800px){.header-nav{display:none}.tools-grid{grid-template-columns:repeat(2,1fr)}.seo-grid{grid-template-columns:1fr}}
@media(max-width:560px){.shell{width:min(calc(100% - 20px),var(--shell))}.claim{display:none}.hero{padding-top:26px}.tools-grid{grid-template-columns:1fr}.tool-card{min-height:auto}.app-wrap{width:min(calc(100% - 18px),var(--app))}.card{padding:18px}.form-grid{grid-template-columns:1fr;gap:0}.input{font-size:16px}.footer-inner{min-height:110px;flex-direction:column;justify-content:center;text-align:center}.related-tools{grid-template-columns:1fr}}

/* Cartel de horarios */
.schedule-builder{padding:0 0 60px}
.schedule-workspace{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(390px,.85fr);gap:18px;align-items:start}
.schedule-form-card,.schedule-preview-card{padding:24px}
.schedule-preview-card{position:sticky;top:18px}
.section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:22px}
.section-heading h2{margin:3px 0 0;font-size:1.3rem}
.section-kicker{display:block;color:var(--primary);font-size:.75rem;font-weight:850;letter-spacing:.06em;text-transform:uppercase}
.schedule-fieldset{min-width:0;margin:0 0 20px;padding:0;border:0}
.schedule-fieldset legend{margin-bottom:2px;font-size:.92rem;font-weight:800}
.schedule-fieldset-hint{margin-bottom:14px}
.day-list{display:grid;gap:10px}
.day-row{padding:14px;border:1px solid var(--border);border-radius:12px;background:#fff;transition:background .15s,border-color .15s}
.day-row.is-closed{background:#fafafa}
.day-row-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.switch-label{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:.82rem;font-weight:750;cursor:pointer}
.switch-label input{position:absolute;opacity:0;pointer-events:none}
.switch{position:relative;width:38px;height:22px;border-radius:999px;background:#d7d9df;transition:background .15s}
.switch:after{content:"";position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.18);transition:transform .15s}
.switch-label input:checked+.switch{background:var(--primary)}
.switch-label input:checked+.switch:after{transform:translateX(16px)}
.day-times{margin-top:12px}
.day-times.is-disabled{opacity:.42}
.time-range{display:grid;grid-template-columns:1fr auto 1fr;align-items:end;gap:10px}
.time-range label span{display:block;margin-bottom:5px;color:var(--muted);font-size:.74rem;font-weight:750}
.time-input{min-height:44px;padding:0 10px}
.time-separator{padding-bottom:11px;color:var(--muted);font-weight:800}
.split-check{display:inline-flex;align-items:center;gap:8px;margin:10px 0 0;color:var(--muted);font-size:.81rem;font-weight:750;cursor:pointer}
.split-check input{accent-color:var(--primary)}
.second-range{margin-top:10px;padding-top:10px;border-top:1px dashed var(--border);transition:opacity .16s,filter .16s}.second-range.is-inactive{opacity:.42;filter:grayscale(.25);pointer-events:none}.second-range.is-inactive .input{background:#f3f4f6;color:#9ca3af}
.optional{color:var(--muted);font-size:.75rem;font-weight:600}
.textarea{min-height:92px;padding:12px 14px;resize:vertical}
.format-selector{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}
.format-option{display:flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:8px;border:1px solid var(--border);border-radius:10px;background:#fff;color:var(--text);font-size:.82rem;font-weight:800;cursor:pointer}
.format-option.is-active{border-color:var(--primary);background:#fff5f5;color:var(--primary);box-shadow:0 0 0 2px rgba(239,68,68,.07)}
.format-icon{display:block;border:2px solid currentColor;border-radius:2px}
.format-icon-vertical{width:13px;height:18px}
.format-icon-square{width:17px;height:17px}
.poster-stage{display:grid;place-items:center;min-height:520px;padding:18px;border-radius:13px;background:#eceef3;overflow:hidden}
.schedule-poster{--poster-accent:var(--primary);--poster-accent-soft:#fff0f0;--poster-accent-soft-border:#f7c8c8;--poster-accent-strong:#a72b2b;--poster-accent-muted:#8f3030;position:relative;display:flex;flex-direction:column;background:#fff;color:#2f3138;box-shadow:0 10px 28px rgba(33,36,46,.12);overflow:hidden;transition:width .2s,height .2s}
.poster-vertical{width:310px;min-height:438px;padding:35px 24px 20px}
.poster-square{width:340px;min-height:340px;padding:28px 25px 17px}
.poster-accent{position:absolute;top:0;left:0;width:100%;height:7px;background:var(--poster-accent)}
.poster-header{text-align:center}
.poster-logo{display:block;max-width:112px;max-height:66px;width:auto;height:auto;object-fit:contain;margin:0 auto 9px}
.poster-square .poster-logo{max-width:96px;max-height:54px;margin-bottom:7px}
.poster-business{margin:0 0 5px;font-size:1.05rem;font-weight:850;line-height:1.15}
.poster-header h3{margin:0 0 19px;color:var(--poster-accent);font-size:2.05rem;line-height:1;text-transform:uppercase;letter-spacing:.02em}
.poster-days{display:grid;gap:3px}
.poster-day{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;padding:7px 9px;border-radius:6px;font-size:.76rem}
.poster-day:nth-child(odd){background:#f7f7fa}
.poster-day span{font-weight:800}
.poster-day strong{text-align:right;font-size:.72rem}
.poster-day.is-closed strong{color:var(--poster-accent)}
.poster-extra{margin-top:12px;padding:9px 10px;border:1px solid var(--poster-accent-soft-border);border-radius:7px;background:var(--poster-accent-soft);color:var(--poster-accent-strong);text-align:center;font-size:.68rem;font-weight:750;line-height:1.35}
.poster-contact{display:grid;gap:2px;margin-top:10px;color:#666b75;text-align:center;font-size:.63rem;font-weight:650}
.poster-brand{margin-top:auto;padding-top:13px;color:#9599a3;text-align:center;font-size:.54rem}
.poster-square .poster-business{font-size:1rem}
.poster-square .poster-header h3{margin-bottom:13px;font-size:1.75rem}
.poster-square .poster-day{padding:5px 8px;font-size:.69rem}
.poster-square .poster-day strong{font-size:.66rem}
.poster-square .poster-extra{margin-top:8px;padding:7px;font-size:.62rem}
.poster-square .poster-contact{margin-top:7px;font-size:.58rem}
.poster-square .poster-brand{padding-top:7px}
.logo-upload{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:4px}
.logo-upload-button{display:inline-flex;min-height:44px;align-items:center;justify-content:center;padding:10px 15px;border:1px solid var(--border);border-radius:10px;background:#fff;color:var(--text);font-size:.84rem;font-weight:800;cursor:pointer}
.logo-upload-button:hover{border-color:var(--primary);color:var(--primary)}
.logo-upload-button input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.logo-file-info{min-width:0;max-width:250px;color:var(--muted);font-size:.78rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.logo-file-info.is-error{color:var(--danger);white-space:normal}
.logo-remove{min-height:38px;padding:8px 11px;border:0;border-radius:9px;background:#f3f4f6;color:#4b5563;font-size:.78rem;font-weight:800;cursor:pointer}
.logo-remove:hover{background:#e5e7eb}
.color-picker-block{display:grid;gap:12px;margin-top:4px}
.color-swatches{display:flex;flex-wrap:wrap;gap:10px}
.color-swatch{position:relative;display:inline-flex;width:32px;height:32px;border:2px solid #fff;border-radius:999px;background:var(--swatch);box-shadow:0 0 0 1px #d5d9e2;cursor:pointer;transition:transform .12s,box-shadow .12s}
.color-swatch:hover{transform:translateY(-1px)}
.color-swatch.is-active{box-shadow:0 0 0 2px var(--text),0 0 0 5px #fff}
.color-swatch:after{content:'';position:absolute;inset:8px;border-radius:999px;border:2px solid rgba(255,255,255,.92);opacity:0;transition:opacity .12s}
.color-swatch.is-active:after{opacity:1}
.custom-color-wrap{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.color-input{width:54px;height:42px;padding:0;border:1px solid var(--border);border-radius:10px;background:#fff;cursor:pointer}
.color-input::-webkit-color-swatch-wrapper{padding:6px}
.color-input::-webkit-color-swatch{border:0;border-radius:8px}
.color-input::-moz-color-swatch{border:0;border-radius:8px}
.download-status{min-height:22px;margin:13px 0 2px;font-size:.79rem;font-weight:700;text-align:center}
.download-status.is-error{color:var(--danger)}
.download-status.is-success{color:#167a56}
.download-status.is-working,.download-status.is-info{color:#4f46e5}
.action-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.no-margin{margin-top:0}
.privacy-note{margin:14px 0 0;color:var(--muted);font-size:.75rem;text-align:center}
.related-link span{color:var(--muted);font-size:.88rem}

[hidden]{display:none!important}
.floating-preview-trigger,.mobile-preview-sheet,.mobile-preview-backdrop{display:none}
@media(max-width:980px){
  .floating-preview-trigger{position:fixed;right:14px;bottom:14px;z-index:80;display:flex;width:min(330px,calc(100vw - 28px));align-items:center;gap:11px;padding:9px 12px 9px 9px;border:1px solid rgba(31,41,55,.12);border-radius:16px;background:rgba(255,255,255,.96);color:var(--text);box-shadow:0 12px 34px rgba(31,41,55,.2);backdrop-filter:blur(12px);cursor:pointer;transition:opacity .18s,transform .18s,visibility .18s}
  .floating-preview-trigger.is-hidden,.floating-preview-trigger.keyboard-open{opacity:0;visibility:hidden;transform:translateY(16px);pointer-events:none}
  .floating-preview-thumb{position:relative;display:block;width:48px;height:58px;flex:0 0 48px;border:1px solid #dfe2e8;border-radius:7px;background:#eceef3;overflow:hidden}
  .poster-floating-mini{position:absolute!important;left:50%;top:50%;width:310px!important;height:438px!important;min-height:438px!important;padding:35px 24px 20px!important;transform:translate(-50%,-50%) scale(.132);transform-origin:center;box-shadow:none!important;pointer-events:none}
  .floating-preview-copy{display:flex;min-width:0;flex:1;flex-direction:column;align-items:flex-start;line-height:1.15}
  .floating-preview-copy strong{font-size:.86rem}
  .floating-preview-copy small{margin-top:3px;color:var(--muted);font-size:.68rem}
  .floating-preview-arrow{font-size:1.05rem;font-weight:900}
  .mobile-preview-backdrop{position:fixed;inset:0;z-index:89;display:block;background:rgba(17,24,39,.38);opacity:0;transition:opacity .22s}
  .mobile-preview-backdrop.is-open{opacity:1}
  .mobile-preview-sheet{position:fixed;left:0;right:0;bottom:0;z-index:90;display:block;max-height:92vh;padding:18px 16px calc(16px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0;background:#fff;box-shadow:0 -18px 50px rgba(17,24,39,.22);overflow:auto;transform:translateY(102%);transition:transform .22s ease}
  .mobile-preview-sheet.is-open{transform:translateY(0)}
  .mobile-preview-sheet-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
  .mobile-preview-sheet-head h2{margin:3px 0 0;font-size:1.2rem}
  .mobile-preview-close{display:grid;width:40px;height:40px;place-items:center;border:0;border-radius:999px;background:#f3f4f6;color:#374151;font-size:1.6rem;line-height:1;cursor:pointer}
  .mobile-preview-content{display:grid;place-items:center;min-height:390px;padding:12px;border-radius:14px;background:#eceef3;overflow:hidden}
  .poster-mobile-clone{flex:0 0 auto;max-width:100%;transform-origin:center top;box-shadow:0 10px 28px rgba(33,36,46,.12)}
  .mobile-preview-continue{margin-top:12px}
  body.mobile-preview-open{overflow:hidden}
}
@media(max-width:980px){.schedule-workspace{grid-template-columns:1fr}.schedule-preview-card{position:static}.poster-stage{min-height:500px}}
@media(max-width:560px){.schedule-form-card,.schedule-preview-card{padding:17px}.section-heading{align-items:flex-start}.section-heading .state{display:none}.day-row{padding:12px}.time-range{gap:7px}.time-input{padding:0 7px}.poster-stage{min-height:440px;padding:12px}.poster-vertical{width:min(100%,310px)}.poster-square{width:min(100%,340px)}.action-grid{grid-template-columns:1fr}.format-option{font-size:.77rem}.custom-color-wrap{align-items:flex-start}.color-swatch{width:30px;height:30px}.logo-upload{align-items:flex-start}.logo-file-info{max-width:100%;flex-basis:100%}}

/* Ajustes del encabezado del cartel de horarios */
.schedule-heading-fields{align-items:start}
.poster-header .poster-extra{margin:0 0 14px}
.poster-header h3{overflow-wrap:anywhere}
.poster-square .poster-header .poster-extra{margin-bottom:10px}

/* Título adaptable del cartel */
.poster-header h3{max-width:100%;word-break:normal;overflow-wrap:break-word;text-wrap:balance}

/* Generador jerárquico de carteles */
.poster-types{padding:0 0 24px}
.poster-type-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.poster-type-card{display:flex;min-height:116px;flex-direction:column;align-items:flex-start;gap:7px;padding:17px;border:1px solid var(--border);border-radius:13px;background:#fff;color:var(--text);text-align:left;cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .15s}
.poster-type-card:hover{transform:translateY(-1px);border-color:#c9ccd5;box-shadow:0 8px 22px rgba(30,34,45,.06)}
.poster-type-card.is-active{border-color:var(--primary);box-shadow:0 0 0 3px rgba(239,68,68,.08)}
.poster-type-card strong{font-size:.92rem}
.poster-type-card span{color:var(--muted);font-size:.8rem;line-height:1.35}
.poster-mode-fields{display:none}
.poster-mode-fields.is-active{display:block}
.special-row-list{display:grid;gap:10px;margin-bottom:20px}
.special-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.poster-notice{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:13px;padding:20px 10px;text-align:center}
.poster-notice-line{max-width:100%;color:#363942;font-size:.9rem;font-weight:750;line-height:1.35;overflow-wrap:anywhere}
.poster-notice-line.is-emphasis{color:var(--poster-accent);font-size:1.15rem;font-weight:900}
.poster-notice-placeholder{color:#a0a4ad;font-size:.75rem;font-style:italic}
.poster-square .poster-notice{gap:9px;padding:12px 6px}
.poster-square .poster-notice-line{font-size:.78rem}
.poster-square .poster-notice-line.is-emphasis{font-size:1rem}
.mobile-poster-clone{pointer-events:none}
@media(max-width:1050px){.poster-type-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.poster-type-grid{display:flex;gap:10px;overflow-x:auto;padding:3px 3px 12px;scroll-snap-type:x mandatory}.poster-type-card{min-width:190px;min-height:104px;scroll-snap-align:start}.special-row{grid-template-columns:1fr}.poster-types .section-heading{margin-bottom:14px}}

/* Simplificación: horario + cartel informativo */
.poster-type-grid-simple{grid-template-columns:repeat(2,minmax(0,1fr));max-width:760px}
.poster-type-grid-simple .poster-type-card{min-height:126px}
@media(max-width:700px){.poster-type-grid-simple{display:grid;grid-template-columns:1fr;overflow:visible}.poster-type-grid-simple .poster-type-card{min-width:0;min-height:108px}}
