/* =========================================================
   KO VERTIZ
   CALCULADORA DE DURLOCK
   CSS EXCLUSIVO DE LA HERRAMIENTA
   ========================================================= */


/* =========================================================
   1. VARIABLES Y BASE
   ========================================================= */

   .dzcalc {
    --dz-accent: #818cf8;
    --dz-accent-light: #a5b4fc;
    --dz-accent-soft: rgba(129,140,248,.12);

    --dz-bg: #030610;
    --dz-panel: #101827;
    --dz-panel-light: #141e31;
    --dz-border: rgba(255,255,255,.085);

    --dz-text: #fff;
    --dz-muted: #94a3b8;

    display: block;
    width: min(1200px, calc(100% - 48px));
    margin: 55px auto 85px;
    color: var(--dz-text);
    font-family: inherit;
}

.dzcalc *,
.dzcalc *::before,
.dzcalc *::after,
.dz-section *,
.dz-section *::before,
.dz-section *::after {
    box-sizing: border-box;
}

.dzcalc [hidden] {
    display: none !important;
}

.dzcalc h1,
.dzcalc h2,
.dzcalc h3,
.dzcalc p,
.dz-section h2,
.dz-section h3,
.dz-section p {
    margin-top: 0;
}

.dzcalc p,
.dz-section p {
    margin-bottom: 0;
}

.dzcalc button,
.dz-section button,
.dzcalc input,
.dzcalc select {
    font-family: inherit;
}


/* =========================================================
   2. ENCABEZADO
   ========================================================= */

.dzcalc-heading {
    max-width: 920px;
    margin-bottom: 36px;
}

.dzcalc-eyebrow {
    display: inline-block;
    margin-bottom: 17px;
    padding: 7px 12px;

    color: var(--dz-accent-light);
    background: rgba(129,140,248,.08);
    border: 1px solid rgba(129,140,248,.18);

    border-radius: 30px;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.dzcalc-heading h1 {
    max-width: 900px;
    margin: 0 0 17px;

    color: #fff;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
}

.dzcalc-heading > p {
    max-width: 790px;
    color: #aab5c8;

    font-size: 14px;
    line-height: 1.9;
}

.dzcalc-tags {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.dzcalc-tags span {
    padding: 7px 11px;

    color: #cbd5e1;
    background: rgba(255,255,255,.035);
    border: 1px solid var(--dz-border);

    border-radius: 7px;

    font-size: 10px;
    font-weight: 600;
}


/* =========================================================
   3. DISTRIBUCIÓN PRINCIPAL
   ========================================================= */

.dzcalc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
    align-items: start;
    gap: 22px;
}

.dzcalc-form {
    min-width: 0;
}

.dzcalc-form-card {
    padding: 28px;

    background: linear-gradient(
        145deg,
        #111a2c,
        #0c1322
    );

    border: 1px solid var(--dz-border);
    border-radius: 19px;

    box-shadow: 0 20px 55px rgba(0,0,0,.16);
}


/* =========================================================
   4. ENCABEZADOS DE FORMULARIO
   ========================================================= */

.dzcalc-form-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 25px;
}

.dzcalc-step-label {
    flex: 0 0 auto;

    padding: 7px 9px;

    color: var(--dz-accent-light);
    background: rgba(129,140,248,.12);

    border-radius: 7px;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

.dzcalc-form-heading h2 {
    margin: 0 0 4px;

    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

.dzcalc-form-heading p {
    color: var(--dz-muted);
    font-size: 11px;
    line-height: 1.6;
}

.dzcalc-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 20px;
}

.dzcalc-section-number {
    flex: 0 0 33px;

    width: 33px;
    height: 33px;

    display: grid;
    place-items: center;

    background: var(--dz-accent-soft);
    border: 1px solid rgba(129,140,248,.15);
    border-radius: 9px;

    color: var(--dz-accent-light);

    font-size: 11px;
    font-weight: 800;
}

.dzcalc-section-heading > div {
    min-width: 0;
}

.dzcalc-section-heading h3 {
    margin: 1px 0 5px;
    color: #fff;

    font-size: 15px;
    font-weight: 800;
}

.dzcalc-section-heading p {
    color: var(--dz-muted);
    font-size: 10px;
    line-height: 1.7;
}


/* =========================================================
   5. CAMPOS
   ========================================================= */

.dzcalc-global-grid,
.dzcalc-commercial-grid,
.dzcalc-dimensions-grid,
.dzcalc-extra-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.dzcalc-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 8px;
}

.dzcalc-field-full {
    grid-column: 1 / -1;
}

.dzcalc-field > span {
    color: #e2e8f0;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
}

.dzcalc-field input,
.dzcalc-field select,
.dzcalc-surface-title input {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 11px 12px;

    color: #fff;
    background: rgba(3,6,16,.65);

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 9px;

    outline: none;

    font-size: 13px;
    line-height: 1.4;

    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.dzcalc-field input::placeholder {
    color: #64748b;
}

.dzcalc-field input:hover,
.dzcalc-field select:hover {
    border-color: rgba(129,140,248,.35);
}

.dzcalc-field input:focus,
.dzcalc-field select:focus,
.dzcalc-surface-title input:focus {
    border-color: var(--dz-accent);
    background: rgba(3,6,16,.9);

    box-shadow: 0 0 0 3px rgba(129,140,248,.13);
}

.dzcalc-field select {
    cursor: pointer;
}

.dzcalc-field select option,
.dzcalc-field select optgroup {
    color: #fff;
    background: #101827;
}

.dzcalc-field small {
    color: #8190a6;
    font-size: 10px;
    line-height: 1.55;
}

.dzcalc-input-unit {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
}

.dzcalc-input-unit input {
    padding-right: 42px;
}

.dzcalc-input-unit > span {
    position: absolute;
    right: 13px;

    color: var(--dz-accent-light);
    font-size: 10px;
    font-weight: 800;

    pointer-events: none;
}


/* Quitar flechas de campos numéricos */

.dzcalc input[type="number"]::-webkit-inner-spin-button,
.dzcalc input[type="number"]::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
}

.dzcalc input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* =========================================================
   6. CONFIGURACIÓN COMERCIAL
   ========================================================= */

.dzcalc-commercial-settings {
    margin-top: 20px;

    background: rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 10px;

    overflow: hidden;
}

.dzcalc-commercial-settings summary {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 14px 16px;

    color: #cbd5e1;
    font-size: 11px;
    font-weight: 700;

    cursor: pointer;
    list-style: none;
}

.dzcalc-commercial-settings summary::-webkit-details-marker {
    display: none;
}

.dzcalc-commercial-settings summary::marker {
    content: "";
}

.dzcalc-details-icon {
    position: relative;

    width: 19px;
    height: 19px;

    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
}

.dzcalc-details-icon::before,
.dzcalc-details-icon::after {
    content: "";
    position: absolute;

    top: 50%;
    left: 50%;

    width: 8px;
    height: 1.5px;

    background: var(--dz-accent-light);

    transform: translate(-50%, -50%);
}

.dzcalc-details-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform .2s ease;
}

.dzcalc-commercial-settings[open] .dzcalc-details-icon::after {
    transform: translate(-50%, -50%);
}

.dzcalc-commercial-grid {
    padding: 5px 15px 16px;
}

.dzcalc-commercial-grid .dzcalc-field > span {
    font-size: 10px;
}

.dzcalc-commercial-note {
    padding: 0 15px 15px;
    color: #8492a8;
    font-size: 10px;
    line-height: 1.7;
}


/* =========================================================
   7. SEPARADORES
   ========================================================= */

.dzcalc-divider {
    height: 1px;
    margin: 25px 0;

    border: 0;
    background: rgba(255,255,255,.085);
}

.dzcalc-divider-small {
    margin: 22px 0;
}


/* =========================================================
   8. TARJETAS DE SUPERFICIES
   ========================================================= */

.dzcalc-surfaces {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dzcalc-surface-card {
    min-width: 0;
    overflow: hidden;

    background: rgba(255,255,255,.025);
    border: 1px solid rgba(129,140,248,.19);
    border-radius: 13px;

    animation: dzSurfaceIn .3s ease both;
}

@keyframes dzSurfaceIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dzcalc-surface-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 15px 16px;

    background: rgba(129,140,248,.065);
    border-bottom: 1px solid rgba(255,255,255,.065);
}

.dzcalc-surface-title {
    flex: 1;
    min-width: 0;
}

.dzcalc-surface-number {
    display: block;
    margin-bottom: 7px;

    color: var(--dz-accent-light);

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.dzcalc-surface-title input {
    min-height: 37px;
    padding: 8px 10px;

    background: rgba(3,6,16,.45);

    font-size: 12px;
    font-weight: 700;
}

.dzcalc-remove-surface {
    flex: 0 0 32px;

    width: 32px;
    height: 32px;

    display: grid;
    place-items: center;

    color: #fca5a5;
    background: rgba(248,113,113,.08);

    border: 1px solid rgba(248,113,113,.16);
    border-radius: 8px;

    font-size: 21px;
    line-height: 1;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;
}

.dzcalc-remove-surface:hover {
    background: rgba(248,113,113,.18);
    transform: scale(1.04);
}

.dzcalc-surface-body {
    display: flex;
    flex-direction: column;
    gap: 18px;

    padding: 17px;
}

.dzcalc-system-description {
    padding: 12px 13px;

    color: #b4c0d2;
    background: rgba(129,140,248,.065);

    border-left: 2px solid var(--dz-accent);
    border-radius: 0 8px 8px 0;

    font-size: 10px;
    line-height: 1.8;
}

.dzcalc-system-description strong {
    color: #dbeafe;
}


/* =========================================================
   9. ABERTURAS
   ========================================================= */

.dzcalc-openings {
    margin-top: 20px;
    padding: 15px;

    background: rgba(255,255,255,.022);
    border: 1px solid rgba(255,255,255,.065);
    border-radius: 11px;
}

.dzcalc-subsection-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;

    margin-bottom: 17px;
}

.dzcalc-subsection-heading strong {
    display: block;
    margin-bottom: 5px;

    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.dzcalc-subsection-heading small {
    display: block;
    color: var(--dz-muted);

    font-size: 10px;
    line-height: 1.6;
}

.dzcalc-subsection-heading > span {
    flex: 0 0 auto;

    padding: 5px 7px;

    color: var(--dz-accent-light);
    background: rgba(129,140,248,.1);
    border-radius: 5px;

    font-size: 8px;
    font-weight: 800;
    letter-spacing: .8px;
}

.dzcalc-opening-group + .dzcalc-opening-group {
    margin-top: 17px;
    padding-top: 16px;

    border-top: 1px solid rgba(255,255,255,.075);
}

.dzcalc-opening-title {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 12px;

    color: #e2e8f0;
    font-size: 11px;
    font-weight: 800;
}

.dzcalc-opening-title > span {
    display: grid;
    place-items: center;

    width: 23px;
    height: 23px;

    color: var(--dz-accent-light);
    background: rgba(129,140,248,.13);
    border-radius: 6px;

    font-size: 9px;
}

.dzcalc-opening-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.dzcalc-opening-grid .dzcalc-field > span {
    font-size: 10px;
}

.dzcalc-opening-note {
    margin-top: 14px !important;

    color: #8492a8;
    font-size: 10px;
    line-height: 1.75;
}


/* =========================================================
   10. ESTRUCTURA Y AISLACIÓN
   ========================================================= */

.dzcalc-structure-settings {
    padding: 14px;

    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.065);
    border-radius: 10px;
}

.dzcalc-spacing-option {
    max-width: 330px;
}

.dzcalc-insulation-option {
    padding-top: 13px;
    margin-top: 13px;

    border-top: 1px solid rgba(255,255,255,.07);
}

.dzcalc-checkbox {
    display: flex;
    align-items: center;
    gap: 11px;

    color: #dbeafe;
    font-size: 11px;
    line-height: 1.6;

    cursor: pointer;
}

.dzcalc-checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dzcalc-checkbox-control {
    flex: 0 0 19px;

    width: 19px;
    height: 19px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255,255,255,.2);
    border-radius: 5px;

    background: rgba(3,6,16,.5);

    transition: background .2s ease, border-color .2s ease;
}

.dzcalc-checkbox-control::after {
    content: "✓";

    color: #0b1020;
    font-size: 12px;
    font-weight: 900;

    opacity: 0;
}

.dzcalc-checkbox input:checked + .dzcalc-checkbox-control {
    background: var(--dz-accent);
    border-color: var(--dz-accent);
}

.dzcalc-checkbox input:checked + .dzcalc-checkbox-control::after {
    opacity: 1;
}

.dzcalc-checkbox input:focus-visible + .dzcalc-checkbox-control {
    outline: 2px solid var(--dz-accent-light);
    outline-offset: 3px;
}


/* =========================================================
   11. PLACAS Y MATERIALES ADICIONALES
   ========================================================= */

.dzcalc-board-grid {
    margin-bottom: 5px;
}

.dzcalc-extra-materials {
    padding: 15px;

    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.065);
    border-radius: 10px;
}

.dzcalc-extra-grid {
    gap: 13px;
}

.dzcalc-ceiling-supports {
    display: contents;
}

.dzcalc-ceiling-extra {
    padding: 14px;

    background: rgba(129,140,248,.05);
    border: 1px solid rgba(129,140,248,.13);
    border-radius: 9px;
}


/* =========================================================
   12. AGREGAR SUPERFICIES
   ========================================================= */

.dzcalc-add-surface {
    width: 100%;
    min-height: 46px;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

    margin-top: 15px;

    color: #c7d2fe;
    background: rgba(129,140,248,.065);

    border: 1px dashed rgba(129,140,248,.4);
    border-radius: 10px;

    font-size: 11px;
    font-weight: 800;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease;
}

.dzcalc-add-surface:hover {
    background: rgba(129,140,248,.13);
    border-color: var(--dz-accent);
}

.dzcalc-add-surface > span {
    display: grid;
    place-items: center;

    width: 23px;
    height: 23px;

    background: rgba(129,140,248,.2);
    border-radius: 6px;

    font-size: 18px;
    line-height: 1;
}

.dzcalc-surface-tip {
    display: flex;
    align-items: flex-start;
    gap: 11px;

    margin-top: 13px;
    padding: 12px 13px;

    background: rgba(129,140,248,.045);
    border: 1px solid rgba(129,140,248,.12);
    border-radius: 9px;
}

.dzcalc-surface-tip > span {
    flex: 0 0 19px;

    width: 19px;
    height: 19px;

    display: grid;
    place-items: center;

    color: #c7d2fe;
    background: rgba(129,140,248,.2);
    border-radius: 50%;

    font-size: 11px;
    font-weight: 800;
}

.dzcalc-surface-tip p {
    color: #9baac0;
    font-size: 10px;
    line-height: 1.75;
}


/* =========================================================
   13. BOTONES PRINCIPALES
   ========================================================= */

.dzcalc-actions {
    display: flex;
    gap: 11px;
    margin-top: 23px;
}

.dzcalc-actions button {
    min-height: 48px;
    padding: 12px 17px;

    border-radius: 9px;

    font-size: 11px;
    font-weight: 800;

    cursor: pointer;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.dzcalc-actions button:hover {
    transform: translateY(-2px);
}

.dzcalc-button-primary {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    color: #ffffff;
    background: linear-gradient(120deg, #929af9, #737ee9);

    border: 0;

    box-shadow: 0 5px 18px rgba(129,140,248,.2);
}

.dzcalc-button-primary:hover {
    box-shadow: 0 8px 25px rgba(129,140,248,.35);
}

.dzcalc-button-primary > span {
    font-size: 17px;
}

.dzcalc-button-reset {
    color: #cbd5e1;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.1);
}

.dzcalc-button-reset:hover {
    background: rgba(255,255,255,.11);
}


/* =========================================================
   14. ERRORES
   ========================================================= */

.dzcalc-error {
    margin-top: 15px;
    padding: 13px 14px;

    color: #fca5a5;
    background: rgba(248,113,113,.08);

    border: 1px solid rgba(248,113,113,.22);
    border-radius: 9px;

    font-size: 11px;
    line-height: 1.7;
}


/* =========================================================
   15. PANEL DE RESULTADOS
   ========================================================= */

.dzcalc-result-card {
    position: sticky;
    top: 100px;

    min-width: 0;
    overflow: hidden;

    background: #0e1729;
    border: 1px solid rgba(129,140,248,.23);
    border-radius: 19px;

    box-shadow: 0 20px 55px rgba(0,0,0,.2);
}

.dzcalc-result-heading {
    position: relative;
    overflow: hidden;

    padding: 28px;

    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(165,180,252,.23),
            transparent 45%
        ),
        linear-gradient(140deg, #343c7e, #242b59);

    border-bottom: 1px solid rgba(255,255,255,.1);
}

.dzcalc-result-eyebrow {
    display: block;
    margin-bottom: 12px;

    color: #c7d2fe;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.dzcalc-result-heading h2 {
    margin: 0 0 9px;

    color: #fff;

    font-size: 19px;
    font-weight: 800;
}

.dzcalc-result-description {
    color: #c7d2fe;
    font-size: 11px;
    line-height: 1.75;
}


/* =========================================================
   16. ESTADO INICIAL
   ========================================================= */

.dzcalc-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 45px 25px;

    text-align: center;
}

.dzcalc-placeholder-icon {
    width: 59px;
    height: 59px;

    display: grid;
    place-items: center;

    margin-bottom: 18px;

    background: rgba(129,140,248,.1);
    border: 1px solid rgba(129,140,248,.2);
    border-radius: 16px;
}

.dzcalc-placeholder-icon span {
    position: relative;

    width: 28px;
    height: 21px;

    display: block;

    border: 2px solid var(--dz-accent-light);
    border-radius: 4px;

    transform: perspective(50px) rotateX(12deg);
}

.dzcalc-placeholder-icon span::after {
    content: "";

    position: absolute;
    top: 6px;
    left: 0;
    right: 0;

    border-top: 2px solid var(--dz-accent-light);
}

.dzcalc-placeholder > strong {
    color: #e2e8f0;
    font-size: 13px;
    margin-bottom: 8px;
}

.dzcalc-placeholder > p {
    max-width: 275px;

    color: var(--dz-muted);
    font-size: 11px;
    line-height: 1.8;
}


/* =========================================================
   17. ESTADÍSTICAS
   ========================================================= */

.dzcalc-results-content {
    padding: 20px;
}

.dzcalc-result-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.dzcalc-stat {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 7px;

    padding: 14px;

    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
}

.dzcalc-stat > span {
    color: var(--dz-muted);
    font-size: 9px;
    line-height: 1.5;
}

.dzcalc-stat > strong {
    color: #fff;

    font-size: 19px;
    font-weight: 800;

    overflow-wrap: anywhere;
}


/* =========================================================
   18. DESGLOSE POR SUPERFICIE
   ========================================================= */

.dzcalc-breakdown-section {
    margin-top: 25px;
}

.dzcalc-results-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;

    margin-bottom: 14px;
}

.dzcalc-results-section-heading h3 {
    margin: 0 0 5px;

    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.dzcalc-results-section-heading p {
    color: var(--dz-muted);
    font-size: 10px;
    line-height: 1.6;
}

.dzcalc-list-badge {
    flex: 0 0 auto;

    padding: 6px 8px;

    color: #c7d2fe;
    background: rgba(129,140,248,.13);
    border-radius: 6px;

    font-size: 8px;
    font-weight: 800;
    letter-spacing: .8px;
}

.dzcalc-breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dzcalc-breakdown-item {
    padding: 12px 13px;

    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.065);
    border-radius: 9px;
}

.dzcalc-breakdown-item > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.dzcalc-breakdown-item strong {
    color: #e2e8f0;
    font-size: 10px;
    line-height: 1.6;
}

.dzcalc-breakdown-item > div:first-child > span {
    flex: 0 0 auto;

    color: var(--dz-accent-light);
    font-size: 10px;
    font-weight: 800;
}

.dzcalc-breakdown-item > p {
    margin-top: 5px;

    color: #8795aa;
    font-size: 9px;
    line-height: 1.65;
}


/* =========================================================
   19. LISTA DE MATERIALES
   ========================================================= */

.dzcalc-materials-section {
    margin-top: 26px;
    padding-top: 22px;

    border-top: 1px solid rgba(255,255,255,.09);
}

.dzcalc-materials-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 9px;
}

.dzcalc-materials-table {
    width: 100%;
    min-width: 430px;

    border-collapse: collapse;
    text-align: left;
}

.dzcalc-materials-table th {
    padding: 11px 9px;

    color: #a5b4fc;
    background: rgba(129,140,248,.11);

    font-size: 8px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.dzcalc-materials-table th:first-child {
    border-radius: 7px 0 0 7px;
}

.dzcalc-materials-table th:last-child {
    border-radius: 0 7px 7px 0;
}

.dzcalc-materials-table td {
    padding: 12px 9px;

    color: #cbd5e1;
    border-bottom: 1px solid rgba(255,255,255,.065);

    font-size: 9px;
    line-height: 1.6;
    vertical-align: top;
}

.dzcalc-materials-table tbody tr:last-child td {
    border-bottom: 0;
}

.dzcalc-materials-table td:first-child {
    color: #fff;
    font-weight: 700;
}

.dzcalc-materials-table td:last-child {
    color: #c7d2fe;
    font-weight: 700;
}

.dzcalc-material-category td {
    padding: 14px 9px 8px;

    color: var(--dz-accent-light);
    background: rgba(129,140,248,.045);

    border-bottom: 0;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.dzcalc-material-detail {
    display: block;
    margin-top: 3px;

    color: #8190a6;
    font-size: 8px;
    font-weight: 500;
}


/* =========================================================
   20. RESUMEN DE PERFILES
   ========================================================= */

.dzcalc-profile-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;

    margin-top: 19px;
    padding: 16px;

    background: rgba(129,140,248,.07);
    border: 1px solid rgba(129,140,248,.15);
    border-radius: 11px;
}

.dzcalc-profile-summary > div {
    min-width: 0;
}

.dzcalc-profile-summary span {
    display: block;
    margin-bottom: 6px;

    color: #a5b4fc;

    font-size: 8px;
    font-weight: 800;
    letter-spacing: .7px;
}

.dzcalc-profile-summary strong {
    color: #fff;

    font-size: 19px;
    font-weight: 800;

    overflow-wrap: anywhere;
}


/* =========================================================
   21. ADVERTENCIAS Y ACCIONES
   ========================================================= */

.dzcalc-result-warning {
    margin-top: 17px;
    padding: 14px;

    background: rgba(255,209,102,.045);
    border: 1px solid rgba(255,209,102,.15);
    border-radius: 10px;
}

.dzcalc-result-warning strong {
    display: block;
    margin-bottom: 7px;

    color: #fcd98c;
    font-size: 11px;
}

.dzcalc-result-warning p {
    color: #aab5c8;

    font-size: 10px;
    line-height: 1.8;
}

.dzcalc-result-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;

    margin-top: 18px;
}

.dzcalc-result-actions button {
    min-height: 43px;
    padding: 9px 8px;

    color: #e2e8f0;
    background: rgba(255,255,255,.055);

    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;

    font-size: 9px;
    font-weight: 800;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;
}

.dzcalc-result-actions button:hover {
    background: rgba(129,140,248,.15);
    transform: translateY(-2px);
}

.dzcalc-result-actions button:last-child {
    color: #ffffff;
    background: var(--dz-accent);
    border-color: var(--dz-accent);
}

.dzcalc-result-actions button:last-child:hover {
    background: #a5adff;
}

.dzcalc-result-actions button > span {
    margin-right: 5px;
    font-size: 12px;
}

.dzcalc-copy-status {
    margin-top: 10px !important;

    color: #a5b4fc;
    font-size: 10px;
    line-height: 1.6;
}


/* =========================================================
   22. NOTA DE PRIVACIDAD
   ========================================================= */

.dzcalc-source-note {
    display: flex;
    align-items: flex-start;
    gap: 13px;

    margin-top: 23px;
    padding: 15px 17px;

    background: rgba(129,140,248,.05);
    border: 1px solid rgba(129,140,248,.13);
    border-radius: 11px;
}

.dzcalc-source-note > span {
    flex: 0 0 22px;

    width: 22px;
    height: 22px;

    display: grid;
    place-items: center;

    color: #c7d2fe;
    background: rgba(129,140,248,.18);
    border-radius: 50%;

    font-size: 11px;
    font-weight: 800;
}

.dzcalc-source-note p {
    color: #aab5c8;
    font-size: 10px;
    line-height: 1.8;
}


/* =========================================================
   23. CONTENIDO SEO - BASE
   ========================================================= */

.dz-section {
    width: min(1200px, calc(100% - 48px));
    margin: 100px auto;

    color: #fff;
    font-family: inherit;
}

.dz-section p {
    margin-bottom: 0;
}

.dz-eyebrow {
    display: inline-block;

    margin-bottom: 16px;

    color: #a5b4fc;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.dz-section h2 {
    margin: 0 0 17px;

    color: #fff;

    font-size: clamp(28px, 3.3vw, 39px);
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -1.1px;
}

.dz-section h3 {
    color: #fff;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 800;
}

.dz-section-heading {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: end;
    gap: 45px;

    margin-bottom: 38px;
}

.dz-section-heading h2 {
    margin: 0;
}

.dz-section-heading > p {
    padding-bottom: 3px;

    color: #94a3b8;

    font-size: 13px;
    line-height: 1.9;
}


/* =========================================================
   24. INTRODUCCIÓN SEO
   ========================================================= */

.dz-intro {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    gap: 60px;
}

.dz-intro-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.dz-intro-copy > p {
    margin-bottom: 14px;

    color: #aeb8cb;

    font-size: 13px;
    line-height: 1.9;
}

.dz-instructions {
    width: 100%;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 23px 20px;

    margin-top: 26px;
}

.dz-instruction {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.dz-instruction > span {
    flex: 0 0 32px;

    width: 32px;
    height: 32px;

    display: grid;
    place-items: center;

    color: #c7d2fe;
    background: rgba(129,140,248,.14);
    border: 1px solid rgba(129,140,248,.2);
    border-radius: 9px;

    font-size: 10px;
    font-weight: 800;
}

.dz-instruction > div {
    min-width: 0;
}

.dz-instruction h3 {
    margin: 2px 0 6px;
    font-size: 12px;
}

.dz-instruction p {
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.75;
}

.dz-privacy {
    display: flex;
    align-items: flex-start;
    gap: 11px;

    margin-top: 26px;
    padding: 14px 16px;

    background: rgba(129,140,248,.05);
    border: 1px solid rgba(129,140,248,.14);
    border-radius: 10px;
}

.dz-privacy > span {
    flex: 0 0 21px;

    width: 21px;
    height: 21px;

    display: grid;
    place-items: center;

    color: #c7d2fe;
    background: rgba(129,140,248,.2);
    border-radius: 50%;

    font-size: 11px;
    font-weight: 800;
}

.dz-privacy p {
    color: #aab5c8;
    font-size: 10px;
    line-height: 1.8;
}


/* =========================================================
   25. EJEMPLO PRÁCTICO DESTACADO
   ========================================================= */

.dz-example-card {
    position: relative;
    overflow: hidden;

    padding: 27px;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(129,140,248,.19),
            transparent 45%
        ),
        linear-gradient(145deg, #151d34, #0d1322);

    border: 1px solid rgba(129,140,248,.23);
    border-radius: 20px;

    box-shadow: 0 25px 65px rgba(0,0,0,.2);
}

.dz-example-heading {
    padding-bottom: 21px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.dz-example-heading > span {
    color: #a5b4fc;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.dz-example-heading h3 {
    margin: 12px 0 8px;

    font-size: 19px;
    line-height: 1.35;
}

.dz-example-heading p {
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.7;
}

.dz-example-measures {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;

    padding: 21px 0;
}

.dz-example-measures > div {
    padding: 12px;

    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.055);
    border-radius: 9px;
}

.dz-example-measures span {
    display: block;
    margin-bottom: 5px;

    color: #94a3b8;
    font-size: 9px;
}

.dz-example-measures strong {
    color: #fff;
    font-size: 21px;
    font-weight: 800;
}

.dz-example-measures small {
    color: #a5b4fc;
    font-size: 11px;
}

.dz-example-lines {
    display: flex;
    flex-direction: column;
}

.dz-example-lines > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;

    padding: 10px 0;

    border-bottom: 1px solid rgba(255,255,255,.065);
}

.dz-example-lines span {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 700;
}

.dz-example-lines code {
    color: #e2e8f0;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
}

.dz-example-result {
    margin-top: 19px;
    padding: 20px;

    background: linear-gradient(110deg, #5556ad, #373b80);
    border-radius: 12px;

    text-align: center;
}

.dz-example-result > span {
    display: block;
    color: #dbeafe;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.dz-example-result strong {
    display: block;
    margin: 7px 0;

    color: #fff;
    font-size: 35px;
    font-weight: 800;
    letter-spacing: -1px;
}

.dz-example-result small {
    display: block;
    color: #dbeafe;

    font-size: 10px;
    line-height: 1.7;
}

.dz-example-footnote {
    margin-top: 12px !important;

    color: #8492a8;
    font-size: 9px;
    line-height: 1.7;
    text-align: center;
}


/* =========================================================
   26. FÓRMULAS DE CÁLCULO
   ========================================================= */

.dz-formula-section {
    padding: 65px 0;

    border-top: 1px solid rgba(255,255,255,.09);
    border-bottom: 1px solid rgba(255,255,255,.09);
}

.dz-formula-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.dz-formula-card {
    min-width: 0;

    padding: 23px;

    background: #101727;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 14px;

    transition: transform .25s ease, border-color .25s ease;
}

.dz-formula-card:hover {
    transform: translateY(-4px);
    border-color: rgba(129,140,248,.35);
}

.dz-formula-card > span {
    display: block;
    margin-bottom: 19px;

    color: #a5b4fc;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.dz-formula-card h3 {
    min-height: 46px;
    margin: 0 0 10px;

    font-size: 16px;
}

.dz-formula-card > p {
    min-height: 83px;

    color: #94a3b8;
    font-size: 11px;
    line-height: 1.8;
}

.dz-formula-equation {
    margin-top: 18px;
    padding: 12px;

    background: rgba(0,0,0,.22);
    border: 1px solid rgba(255,255,255,.055);
    border-radius: 8px;
}

.dz-formula-equation code {
    color: #c7d2fe;
    font-family: inherit;
    font-size: 11px;
    line-height: 1.7;
}

.dz-formula-card > small {
    display: block;
    margin-top: 12px;

    color: #8795aa;
    font-size: 10px;
    line-height: 1.7;
}

.dz-formula-footer {
    display: flex;
    align-items: center;
    gap: 17px;

    margin-top: 22px;
    padding: 17px 20px;

    background: rgba(129,140,248,.06);
    border-left: 3px solid #818cf8;
    border-radius: 0 9px 9px 0;
}

.dz-formula-footer strong {
    flex: 0 0 auto;

    color: #c7d2fe;
    font-size: 11px;
}

.dz-formula-footer span {
    color: #aab5c8;
    font-size: 11px;
    line-height: 1.8;
}


/* =========================================================
   27. BLOQUES INFORMATIVOS H3
   ========================================================= */

.dz-content-block {
    display: flex;
    flex-direction: column;
    gap: 11px;

    margin-top: 36px;
}

.dz-content-block h3 {
    margin: 23px 0 0;
    font-size: 17px;
}

.dz-content-block h3:first-child {
    margin-top: 0;
}

.dz-content-block p {
    max-width: 970px;

    color: #aab5c8;
    font-size: 13px;
    line-height: 1.95;
}


/* =========================================================
   28. PERFILES
   ========================================================= */

.dz-profile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.dz-profile-card {
    padding: 24px;

    background: #111a2a;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 15px;
}

.dz-profile-symbol {
    width: 45px;
    height: 45px;

    display: grid;
    place-items: center;

    margin-bottom: 18px;

    color: #c7d2fe;
    background: rgba(129,140,248,.13);
    border: 1px solid rgba(129,140,248,.18);
    border-radius: 12px;

    font-size: 24px;
    font-weight: 800;
}

.dz-profile-card h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

.dz-profile-card > p {
    min-height: 102px;

    color: #94a3b8;
    font-size: 11px;
    line-height: 1.85;
}

.dz-profile-measure {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;

    margin-top: 20px;
    padding: 13px;

    background: rgba(129,140,248,.07);
    border: 1px solid rgba(129,140,248,.13);
    border-radius: 9px;
}

.dz-profile-measure span {
    color: #aab5c8;
    font-size: 10px;
}

.dz-profile-measure strong {
    color: #c7d2fe;
    font-size: 20px;
}

.dz-profile-card > small {
    display: block;
    margin-top: 12px;

    color: #8492a8;
    font-size: 10px;
    line-height: 1.7;
}

.dz-spacing-reference {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;

    margin-top: 29px;
    padding: 22px;

    background: #101827;
    border: 1px solid rgba(129,140,248,.17);
    border-radius: 13px;
}

.dz-spacing-reference > span {
    grid-column: 1 / -1;

    color: #a5b4fc;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.dz-spacing-reference > div {
    display: flex;
    flex-direction: column;
    gap: 6px;

    padding: 15px;

    background: rgba(255,255,255,.035);
    border-radius: 9px;
}

.dz-spacing-reference > div strong {
    color: #fff;
    font-size: 23px;
}

.dz-spacing-reference > div small {
    color: #94a3b8;
    font-size: 10px;
    line-height: 1.7;
}

.dz-spacing-reference > p {
    grid-column: 1 / -1;

    color: #8492a8;
    font-size: 10px;
    line-height: 1.7;
}


/* =========================================================
   29. MATERIALES
   ========================================================= */

.dz-materials-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.dz-material-card {
    min-width: 0;
    min-height: 170px;

    padding: 19px;

    background: #111827;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 12px;

    transition: border-color .2s ease, transform .2s ease;
}

.dz-material-card:hover {
    transform: translateY(-3px);
    border-color: rgba(129,140,248,.35);
}

.dz-material-card > span {
    display: block;
    margin-bottom: 19px;

    color: #a5b4fc;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.dz-material-card h3 {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.4;
}

.dz-material-card p {
    color: #94a3b8;
    font-size: 10px;
    line-height: 1.8;
}

.dz-materials-note {
    margin-top: 22px;
    padding: 20px 22px;

    background: rgba(129,140,248,.055);
    border: 1px solid rgba(129,140,248,.16);
    border-radius: 12px;
}

.dz-materials-note strong {
    display: block;
    margin-bottom: 7px;

    color: #c7d2fe;
    font-size: 12px;
}

.dz-materials-note p {
    color: #aab5c8;
    font-size: 11px;
    line-height: 1.8;
}


/* =========================================================
   30. CIELORRASOS
   ========================================================= */

.dz-ceiling-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.dz-ceiling-card {
    display: flex;
    flex-direction: column;

    padding: 24px;

    background: #111827;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 15px;
}

.dz-ceiling-featured {
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(129,140,248,.17),
            transparent 45%
        ),
        #141b32;

    border-color: rgba(129,140,248,.25);
}

.dz-ceiling-index {
    margin-bottom: 17px;

    color: #a5b4fc;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.dz-ceiling-card h3 {
    margin: 0 0 10px;
    font-size: 17px;
}

.dz-ceiling-card > p {
    min-height: 91px;

    color: #94a3b8;
    font-size: 11px;
    line-height: 1.85;
}

.dz-ceiling-materials {
    padding: 15px;
    margin-top: 18px;

    background: rgba(255,255,255,.035);
    border-radius: 9px;
}

.dz-ceiling-materials > span {
    color: #c7d2fe;
    font-size: 10px;
    font-weight: 800;
}

.dz-ceiling-materials ul {
    display: flex;
    flex-direction: column;
    gap: 9px;

    margin: 14px 0 0;
    padding-left: 17px;
}

.dz-ceiling-materials li {
    color: #aab5c8;
    font-size: 10px;
    line-height: 1.5;
}

.dz-ceiling-foot {
    display: flex;
    flex-direction: column;
    gap: 6px;

    margin-top: auto;
    padding-top: 19px;
}

.dz-ceiling-foot span {
    color: #8795aa;
    font-size: 9px;
}

.dz-ceiling-foot strong {
    color: #c7d2fe;
    font-size: 20px;
}


/* =========================================================
   31. TIPOS DE TRABAJO
   ========================================================= */

.dz-works-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}

.dz-works-grid article {
    padding: 20px;

    background: #111827;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 11px;

    transition: border-color .2s ease;
}

.dz-works-grid article:hover {
    border-color: rgba(129,140,248,.3);
}

.dz-works-grid h3 {
    margin: 0 0 9px;
    font-size: 14px;
}

.dz-works-grid p {
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.8;
}


/* =========================================================
   32. EJEMPLOS DE CÁLCULO
   ========================================================= */

.dz-reference-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.dz-reference-table {
    width: 100%;
    min-width: 650px;

    border-collapse: collapse;
    text-align: left;
}

.dz-reference-table th {
    padding: 15px;

    color: #a5b4fc;
    background: rgba(129,140,248,.1);

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.dz-reference-table th:first-child {
    border-radius: 8px 0 0 8px;
}

.dz-reference-table th:last-child {
    border-radius: 0 8px 8px 0;
}

.dz-reference-table td {
    padding: 16px 15px;

    color: #cbd5e1;
    border-bottom: 1px solid rgba(255,255,255,.07);

    font-size: 11px;
    white-space: nowrap;
}

.dz-reference-table tbody tr {
    transition: background .2s ease;
}

.dz-reference-table tbody tr:hover {
    background: rgba(129,140,248,.055);
}

.dz-reference-table td:first-child {
    color: #fff;
    font-weight: 700;
}

.dz-reference-table td:last-child strong {
    color: #c7d2fe;
    font-size: 15px;
}

.dz-table-note {
    margin-top: 16px !important;

    color: #8795aa;
    font-size: 10px;
    line-height: 1.8;
}

.dz-example-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;

    margin-top: 32px;
}

.dz-example-detail {
    padding: 24px;

    background: #111827;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 13px;
}

.dz-example-detail > span {
    display: block;
    margin-bottom: 14px;

    color: #a5b4fc;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.dz-example-detail h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

.dz-example-detail > p {
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.8;
}

.dz-example-detail ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 15px;

    margin: 18px 0 0;
    padding-left: 17px;
}

.dz-example-detail li {
    color: #cbd5e1;
    font-size: 10px;
    line-height: 1.6;
}

.dz-examples-warning {
    margin-top: 24px;
    padding: 19px;

    background: rgba(255,209,102,.045);
    border: 1px solid rgba(255,209,102,.15);
    border-radius: 10px;
}

.dz-examples-warning strong {
    display: block;
    margin-bottom: 7px;

    color: #fcd98c;
    font-size: 11px;
}

.dz-examples-warning p {
    color: #aab5c8;
    font-size: 11px;
    line-height: 1.8;
}


/* =========================================================
   33. FAQ
   ========================================================= */

.dz-faq-section {
    padding: 25px 0 60px;
    border-top: 1px solid rgba(255,255,255,.09);
}

.dz-faq-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 11px 14px;
}

.dz-faq-item {
    min-width: 0;
    overflow: hidden;

    background: #101727;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 11px;

    transition: border-color .2s ease, background .2s ease;
}

.dz-faq-item:hover {
    border-color: rgba(129,140,248,.3);
}

.dz-faq-item[open] {
    background: #131d31;
    border-color: rgba(129,140,248,.3);
}

.dz-faq-item summary {
    position: relative;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 16px;

    color: #e2e8f0;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.6;

    cursor: pointer;
    list-style: none;
}

.dz-faq-item summary::-webkit-details-marker {
    display: none;
}

.dz-faq-item summary::marker {
    content: "";
}

.dz-faq-item summary::after {
    content: "+";

    flex: 0 0 22px;

    width: 22px;
    height: 22px;

    display: grid;
    place-items: center;

    margin-left: auto;

    color: #a5b4fc;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 50%;

    font-size: 15px;
    font-weight: 400;

    transition: transform .2s ease;
}

.dz-faq-item[open] summary::after {
    content: "−";
}

.dz-faq-item summary > span {
    flex: 0 0 27px;

    width: 27px;
    height: 27px;

    display: grid;
    place-items: center;

    color: #a5b4fc;
    background: rgba(129,140,248,.12);
    border-radius: 7px;

    font-size: 9px;
    font-weight: 800;
}

.dz-faq-answer {
    padding: 0 16px 17px 55px;
}

.dz-faq-answer p {
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.85;
}


/* =========================================================
   34. FUENTES TÉCNICAS
   ========================================================= */

.dz-sources-section {
    padding: 26px;

    background: #0f1726;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
}

.dz-sources-section h2 {
    font-size: clamp(23px, 3vw, 30px);
}

.dz-sources-section > p {
    max-width: 850px;

    color: #94a3b8;
    font-size: 12px;
    line-height: 1.85;
}

.dz-sources-section ul {
    display: flex;
    flex-direction: column;
    gap: 12px;

    margin: 24px 0 0;
    padding: 0;

    list-style: none;
}

.dz-sources-section li {
    display: flex;
    flex-direction: column;
    gap: 5px;

    padding: 14px;

    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.065);
    border-radius: 9px;
}

.dz-sources-section a {
    width: fit-content;

    color: #c7d2fe;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;

    transition: color .2s ease;
}

.dz-sources-section a:hover {
    color: #fff;
    text-decoration: underline;
}

.dz-sources-section li span {
    color: #94a3b8;
    font-size: 10px;
    line-height: 1.6;
}


/* =========================================================
   35. RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .dzcalc-layout {
        grid-template-columns: 1fr;
    }

    .dzcalc-result-card {
        position: relative;
        top: 0;
    }

    .dzcalc-results-content {
        padding: 24px;
    }

    .dzcalc-result-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .dz-intro {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .dz-example-card {
        max-width: 700px;
        width: 100%;
    }

    .dz-profile-grid,
    .dz-ceiling-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dz-materials-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


/* =========================================================
   36. RESPONSIVE - TABLET PEQUEÑA
   ========================================================= */

@media (max-width: 760px) {

    .dz-section-heading {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .dz-formula-grid {
        grid-template-columns: 1fr;
    }

    .dz-formula-card h3,
    .dz-formula-card > p {
        min-height: 0;
    }

    .dz-profile-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dz-profile-card > p {
        min-height: 0;
    }

    .dz-materials-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dz-ceiling-grid {
        grid-template-columns: 1fr;
    }

    .dz-ceiling-card > p {
        min-height: 0;
    }

    .dz-works-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dz-faq-list {
        grid-template-columns: 1fr;
    }

    .dzcalc-result-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   37. RESPONSIVE - MÓVIL
   ========================================================= */

@media (max-width: 520px) {

    .dzcalc {
        width: calc(100% - 28px);
        margin: 35px auto 60px;
    }

    .dzcalc-heading {
        margin-bottom: 25px;
    }

    .dzcalc-heading h1 {
        font-size: 29px;
        letter-spacing: -.8px;
    }

    .dzcalc-heading > p {
        font-size: 12px;
        line-height: 1.85;
    }

    .dzcalc-tags {
        gap: 6px;
    }

    .dzcalc-tags span {
        padding: 6px 8px;
        font-size: 9px;
    }

    .dzcalc-form-card {
        padding: 19px 15px;
        border-radius: 15px;
    }

    .dzcalc-form-heading {
        align-items: flex-start;
        gap: 10px;
    }

    .dzcalc-form-heading h2 {
        font-size: 16px;
    }

    .dzcalc-global-grid,
    .dzcalc-commercial-grid,
    .dzcalc-dimensions-grid,
    .dzcalc-extra-grid {
        gap: 12px;
    }

    .dzcalc-field input,
    .dzcalc-field select {
        min-height: 44px;
        padding: 10px;
        font-size: 12px;
    }

    .dzcalc-surface-header {
        padding: 12px;
    }

    .dzcalc-surface-body {
        gap: 14px;
        padding: 13px;
    }

    .dzcalc-openings {
        padding: 12px;
    }

    .dzcalc-opening-grid {
        gap: 8px;
    }

    .dzcalc-opening-grid .dzcalc-field > span {
        font-size: 9px;
    }

    .dzcalc-section-heading {
        gap: 10px;
    }

    .dzcalc-add-surface {
        font-size: 10px;
    }

    .dzcalc-actions {
        flex-direction: column;
    }

    .dzcalc-actions button {
        width: 100%;
        min-height: 46px;
    }

    .dzcalc-results-content {
        padding: 17px;
    }

    .dzcalc-result-heading {
        padding: 22px 19px;
    }

    .dzcalc-result-heading h2 {
        font-size: 17px;
    }

    .dzcalc-stat {
        padding: 11px;
    }

    .dzcalc-stat > strong {
        font-size: 16px;
    }

    .dzcalc-materials-table {
        min-width: 430px;
    }

    .dzcalc-profile-summary {
        padding: 13px;
    }

    .dzcalc-profile-summary strong {
        font-size: 16px;
    }

    .dzcalc-result-actions {
        grid-template-columns: 1fr;
    }


    /* CONTENIDO */

    .dz-section {
        width: calc(100% - 32px);
        margin: 60px auto;
    }

    .dz-eyebrow {
        margin-bottom: 12px;
        font-size: 9px;
    }

    .dz-section h2 {
        font-size: 28px;
        letter-spacing: -.8px;
    }

    .dz-section-heading {
        gap: 12px;
        margin-bottom: 26px;
    }

    .dz-intro {
        gap: 28px;
    }

    .dz-instructions {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .dz-example-card {
        padding: 20px;
        border-radius: 16px;
    }

    .dz-example-heading h3 {
        font-size: 18px;
    }

    .dz-example-measures {
        gap: 8px;
    }

    .dz-example-measures > div {
        padding: 10px;
    }

    .dz-example-measures strong {
        font-size: 19px;
    }

    .dz-example-lines > div {
        align-items: flex-start;
    }

    .dz-example-lines code {
        font-size: 10px;
    }

    .dz-example-result strong {
        font-size: 33px;
    }

    .dz-formula-section {
        padding: 45px 0;
    }

    .dz-formula-card {
        padding: 21px;
    }

    .dz-formula-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
        padding: 15px;
    }

    .dz-content-block h3 {
        font-size: 16px;
    }

    .dz-content-block p {
        font-size: 12px;
    }

    .dz-profile-grid {
        grid-template-columns: 1fr;
    }

    .dz-profile-card {
        padding: 20px;
    }

    .dz-profile-card > p {
        font-size: 11px;
    }

    .dz-spacing-reference {
        padding: 16px;
        gap: 9px;
    }

    .dz-spacing-reference > div {
        padding: 11px;
    }

    .dz-spacing-reference > div strong {
        font-size: 20px;
    }

    .dz-materials-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dz-material-card {
        min-height: 0;
        padding: 19px;
    }

    .dz-material-card > span {
        margin-bottom: 12px;
    }

    .dz-ceiling-card {
        padding: 20px;
    }

    .dz-works-grid {
        grid-template-columns: 1fr;
    }

    .dz-reference-table {
        min-width: 650px;
    }

    .dz-example-detail-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .dz-example-detail {
        padding: 20px;
    }

    .dz-example-detail ul {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .dz-faq-section {
        padding-top: 30px;
    }

    .dz-faq-item summary {
        padding: 13px;
        gap: 9px;
        font-size: 10px;
    }

    .dz-faq-item summary > span {
        flex-basis: 25px;
        width: 25px;
        height: 25px;
    }

    .dz-faq-answer {
        padding: 0 13px 15px 48px;
    }

    .dz-faq-answer p {
        font-size: 10px;
    }

    .dz-sources-section {
        padding: 20px 16px;
    }

}


/* =========================================================
   38. IMPRESIÓN
   ========================================================= */

@media print {

    body {
        color: #111 !important;
        background: #fff !important;
    }

    .dzcalc {
        width: 100%;
        margin: 0;
        color: #111;
    }

    .dzcalc-heading,
    .dzcalc-form,
    .dzcalc-source-note {
        display: none !important;
    }

    .dzcalc-layout {
        display: block;
    }

    .dzcalc-result-card {
        position: static;
        overflow: visible;

        color: #111;
        background: #fff;

        border: 0;
        box-shadow: none;
    }

    .dzcalc-result-heading {
        padding: 15px 0;

        color: #111;
        background: #fff;
        border-bottom: 2px solid #222;
    }

    .dzcalc-result-heading h2,
    .dzcalc-result-heading p,
    .dzcalc-result-eyebrow {
        color: #111;
    }

    .dzcalc-placeholder {
        display: none !important;
    }

    .dzcalc-results-content {
        display: block !important;
        padding: 15px 0;
    }

    .dzcalc-stat,
    .dzcalc-breakdown-item,
    .dzcalc-profile-summary {
        color: #111;
        background: #fff;
        border: 1px solid #ddd;
    }

    .dzcalc-stat > span,
    .dzcalc-stat > strong,
    .dzcalc-breakdown-item strong,
    .dzcalc-breakdown-item > p,
    .dzcalc-profile-summary strong,
    .dzcalc-profile-summary span {
        color: #111;
    }

    .dzcalc-materials-table th {
        color: #111;
        background: #eee;
    }

    .dzcalc-materials-table td,
    .dzcalc-materials-table td:first-child,
    .dzcalc-materials-table td:last-child {
        color: #111;
        border-color: #ddd;
    }

    .dzcalc-material-category td {
        color: #111;
        background: #eee;
    }

    .dzcalc-result-warning {
        background: #fff;
        border: 1px solid #ccc;
    }

    .dzcalc-result-warning strong,
    .dzcalc-result-warning p {
        color: #111;
    }

    .dzcalc-result-actions,
    .dzcalc-copy-status {
        display: none !important;
    }

    .dzcalc-materials-table-wrap {
        overflow: visible;
    }

    .dzcalc-materials-table {
        min-width: 0;
    }

    .dzcalc-breakdown-item,
    .dzcalc-stat,
    .dzcalc-profile-summary,
    .dzcalc-result-warning,
    .dzcalc-materials-section {
        break-inside: avoid;
    }

}


/* =========================================================
   39. ACCESIBILIDAD Y MOVIMIENTO REDUCIDO
   ========================================================= */

.dzcalc button:focus-visible,
.dzcalc summary:focus-visible,
.dzcalc select:focus-visible,
.dzcalc input:focus-visible,
.dz-section a:focus-visible,
.dz-faq-item summary:focus-visible {
    outline: 2px solid #c7d2fe;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    .dzcalc *,
    .dzcalc *::before,
    .dzcalc *::after,
    .dz-section *,
    .dz-section *::before,
    .dz-section *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

}