/* Estilos limitados a la página independiente de CotizaPro. */
.cotizapro-page {
    --cp-panel: #fff;
    --cp-border: #dbe3ea;
    --cp-ink: #263547;
    --cp-muted: #68788a;
    --cp-accent: #526c62;
    --cp-accent-dark: #40594f;
    width: min(1080px, 100% - 32px);
    margin: 0 auto;
    padding: 24px 0 52px;
    color: var(--cp-ink);
}
.cotizapro-page *, .cotizapro-page *::before, .cotizapro-page *::after { box-sizing: border-box; }
.cotizapro-page .cp-back { display: inline-block; margin: 0 0 20px; color: var(--cp-accent-dark); font-weight: 700; text-decoration: none; }
.cotizapro-page .cp-heading { margin: 0 auto 16px; max-width: 760px; text-align: center; }
.cotizapro-page .cp-eyebrow { color: var(--cp-accent); font-size: .76rem; font-weight: 800; letter-spacing: .1em; }
.cotizapro-page .cp-heading h1 { margin: 7px 0 8px; color: #33465b; font-size: clamp(2rem, 5vw, 2.7rem); }
.cotizapro-page .cp-heading p { color: #526477; font-size: 1.05rem; line-height: 1.55; }
.cotizapro-page .cp-instructions { margin: 0 auto 20px; max-width: 760px; color: var(--cp-muted); text-align: center; line-height: 1.55; }
.cotizapro-page .cp-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr); align-items: start; gap: 18px; }
.cotizapro-page .cp-card { min-width: 0; padding: 22px; border: 1px solid var(--cp-border); border-radius: 16px; background: var(--cp-panel); box-shadow: 0 5px 20px rgba(38,53,71,.05); }
.cotizapro-page .cp-card h2 { margin: 0 0 18px; padding: 0; border: 0; color: #33465b; font-size: 1.2rem; }
.cotizapro-page .cp-field { min-width: 0; margin: 0 0 14px; }
.cotizapro-page .cp-field-help { display: block; margin-top: 5px; color: var(--cp-muted); font-size: .77rem; line-height: 1.35; }
.cotizapro-page .cp-field label, .cotizapro-page .cp-description-label, .cotizapro-page .cp-contact label { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; color: #3b4d61; font-size: .9rem; font-weight: 700; }
.cotizapro-page .cp-optional { color: var(--cp-muted); font-size: .78rem; font-weight: 500; }
.cotizapro-page input, .cotizapro-page textarea { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #ccd6df; border-radius: 9px; background: #fff; color: var(--cp-ink); font: inherit; font-size: 16px; }
.cotizapro-page input:focus, .cotizapro-page textarea:focus { outline: 3px solid rgba(82,108,98,.18); border-color: var(--cp-accent); }
.cotizapro-page textarea { resize: vertical; line-height: 1.45; }
.cotizapro-page .cp-section-title, .cotizapro-page .cp-history-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cotizapro-page .cp-section-title { margin: 20px 0 5px; }
.cotizapro-page .cp-section-title h3 { margin: 0; font-size: 1rem; }
.cotizapro-page .cp-help { margin: 0 0 10px; color: var(--cp-muted); font-size: .83rem; line-height: 1.45; }
.cotizapro-page .cp-materials { display: grid; gap: 10px; }
.cotizapro-page .cp-material { display: grid; grid-template-columns: minmax(105px, 1.4fr) minmax(72px, .65fr) minmax(95px, .95fr) auto; align-items: end; gap: 8px; padding: 12px; border: 1px solid #e1e7ec; border-radius: 11px; background: #f8fafb; }
.cotizapro-page .cp-material-field { min-width: 0; }
.cotizapro-page .cp-material-field label { display: block; margin: 0 0 5px; color: var(--cp-muted); font-size: .74rem; font-weight: 700; }
.cotizapro-page .cp-material-field input { padding: 9px; }
.cotizapro-page .cp-row-subtotal { grid-column: 1 / 4; justify-self: end; color: #43586e; font-size: .82rem; font-weight: 700; }
.cotizapro-page .cp-remove { display: grid; width: 36px; height: 38px; place-items: center; border: 1px solid #d6dfe6; border-radius: 8px; background: white; color: #7d4650; cursor: pointer; font-size: 1rem; }
.cotizapro-page .cp-remove:hover { background: #fff5f5; }
.cotizapro-page .cp-two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cotizapro-page .cp-profit-field { max-width: 220px; }
.cotizapro-page .cp-button { min-height: 42px; padding: 10px 14px; border: 1px solid transparent; border-radius: 9px; cursor: pointer; font: inherit; font-size: .9rem; font-weight: 750; transition: background-color .15s ease, transform .15s ease; }
.cotizapro-page .cp-button:hover { transform: translateY(-1px); }
.cotizapro-page .cp-button-primary { width: 100%; background: var(--cp-accent); color: white; }
.cotizapro-page .cp-button-primary:hover { background: var(--cp-accent-dark); }
.cotizapro-page .cp-button-secondary { border-color: #cfdbd6; background: #f3f7f5; color: #40594f; }
.cotizapro-page .cp-button-secondary:hover { background: #e7efeb; }
.cotizapro-page .cp-error { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: #fff2f0; color: #9d332b; font-size: .88rem; }
.cotizapro-page .cp-results { border-top: 4px solid #76988a; }
.cotizapro-page .cp-empty { color: var(--cp-muted); line-height: 1.5; }
.cotizapro-page .cp-result-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.cotizapro-page .cp-result-heading h3 { overflow-wrap: anywhere; margin: 0; color: #33465b; font-size: 1.1rem; }
.cotizapro-page .cp-size-badge { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; background: #edf3f0; color: #40594f; font-size: .78rem; font-weight: 700; }
.cotizapro-page .cp-text-button { display: block; margin: 7px 0 16px auto; padding: 4px 0; border: 0; background: transparent; color: #526c62; cursor: pointer; font: inherit; font-size: .8rem; font-weight: 700; }
.cotizapro-page .cp-result-materials { display: grid; gap: 6px; margin: 12px 0; }
.cotizapro-page .cp-result-material { display: flex; justify-content: space-between; gap: 12px; color: #4b5e71; font-size: .84rem; }
.cotizapro-page .cp-result-material span:first-child { overflow-wrap: anywhere; }
.cotizapro-page .cp-totals { margin: 14px 0 18px; }
.cotizapro-page .cp-totals div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #edf0f2; }
.cotizapro-page .cp-totals dt { color: #526477; }
.cotizapro-page .cp-totals dd { margin: 0; color: #33465b; font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; }
.cotizapro-page .cp-totals .cp-final-price { margin-top: 5px; padding: 12px; border: 0; border-radius: 10px; background: #edf3f0; font-size: 1.03rem; }
.cotizapro-page .cp-final-price dt, .cotizapro-page .cp-final-price dd { color: #35594c; font-weight: 800; }
.cotizapro-page .cp-history, .cotizapro-page .cp-contact { margin-top: 18px; }
.cotizapro-page .cp-history-heading h2 { margin-bottom: 3px; }
.cotizapro-page .cp-history-heading p { margin: 0 0 14px; color: var(--cp-muted); font-size: .82rem; }
.cotizapro-page .cp-history-list { display: grid; gap: 8px; }
.cotizapro-page .cp-history-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid #e8edf0; border-radius: 9px; }
.cotizapro-page .cp-history-name { overflow-wrap: anywhere; color: #40536a; font-weight: 700; }
.cotizapro-page .cp-history-meta { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; color: var(--cp-muted); font-size: .82rem; }
.cotizapro-page .cp-contact textarea { margin-bottom: 10px; }
.cotizapro-page .cp-footer { gap: 10px 20px; }
.cotizapro-page .cp-learn { margin-top: 18px; }
.cotizapro-page .cp-learn summary { color: #33465b; cursor: pointer; font-size: 1.05rem; font-weight: 800; }
.cotizapro-page .cp-learn[open] summary { margin-bottom: 18px; }
.cotizapro-page .cp-learn-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cotizapro-page .cp-learn-content section { padding: 15px; border: 1px solid #e5ebef; border-radius: 11px; background: #fbfcfc; }
.cotizapro-page .cp-learn-content h3 { margin: 0 0 8px; color: #40594f; font-size: .96rem; }
.cotizapro-page .cp-learn-content p { margin: 7px 0 0; color: #536477; font-size: .88rem; line-height: 1.55; }
.cotizapro-page .cp-learn-content .cp-example { padding: 9px 11px; border-left: 3px solid #76988a; border-radius: 0 7px 7px 0; background: #f0f5f2; color: #354c42; }
.cotizapro-page .cp-learn-content .cp-learn-profit { border-color: #cfdbd6; background: #f7faf8; }
.cotizapro-page .cp-learn-content .cp-learn-note { grid-column: 1 / -1; margin: 0; color: var(--cp-muted); font-size: .8rem; }
.cp-footer-social { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.cp-footer-social .cp-social-link, .cp-footer-social .cp-social-pending { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid #dbe3ea; border-radius: 999px; background: #fff; color: #40536c; font-size: .84rem; text-decoration: none; }
.cp-footer-social .cp-social-link:hover { background: #f2f5f8; text-decoration: underline; }
.cp-footer-social svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.cp-footer-social svg .social-icon-dot { fill: currentColor; stroke: none; }
.cp-footer-social svg.social-tiktok-icon { fill: currentColor; stroke: none; }
.cotizapro-page :focus-visible { outline: 3px solid #76988a; outline-offset: 3px; }
@media (max-width: 850px) { .cotizapro-page .cp-layout { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
    .cotizapro-page { width: min(100% - 22px, 680px); padding-top: 17px; }
    .cotizapro-page .cp-card { padding: 17px; }
    .cotizapro-page .cp-material { grid-template-columns: minmax(0, 1fr) minmax(72px, .7fr) 38px; gap: 8px; }
    .cotizapro-page .cp-material-field:first-child { grid-column: 1 / -1; }
    .cotizapro-page .cp-material-field:nth-child(3) { grid-column: 1 / 3; }
    .cotizapro-page .cp-remove { grid-column: 3; grid-row: 2 / 4; align-self: center; }
    .cotizapro-page .cp-row-subtotal { grid-column: 1 / 3; }
    .cotizapro-page .cp-two-columns { grid-template-columns: 1fr; gap: 0; }
    .cotizapro-page .cp-profit-field { max-width: none; }
    .cotizapro-page .cp-section-title { align-items: flex-start; flex-direction: column; }
    .cotizapro-page .cp-history-item { align-items: flex-start; flex-direction: column; }
    .cotizapro-page .cp-history-meta { flex-wrap: wrap; }
    .cotizapro-page .cp-learn-content { grid-template-columns: 1fr; }
    .cotizapro-page .cp-learn-content .cp-learn-note { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) { .cotizapro-page .cp-button { transition: none; } }
