﻿:root {
    --alp-navy: #07375f;
    --alp-navy-dark: #032944;
    --alp-blue: #00aeef;
    --alp-blue-dark: #008fc9;
    --alp-ink: #0a2840;
    --alp-muted: #637381;
    --alp-bg: #f4f6f7;
    --alp-border: #dce5ea;
}

.cotizador-container {
    min-height: 100vh;
    background: var(--alp-bg);
    color: var(--alp-ink);
    font-family: "Poppins", "Montserrat", Arial, sans-serif;
}

.cotizador-header {
    min-height: 76px;
    padding: 14px max(24px, calc((100% - 1180px) / 2));
    background: #fff;
    border-bottom: 1px solid rgba(7, 55, 95, .08);
}

.cotizador-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 120px;
}

.cotizador-brand img {
    width: 100%;
}

.cotizador-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--alp-blue);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(0, 174, 239, .25);
}

.cotizador-brand h3 {
    margin: 0;
    color: var(--alp-navy);
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: .02em;
}

.cotizador-brand small {
    display: block;
    margin-top: 1px;
    color: var(--alp-muted);
    font-size: .62rem;
    letter-spacing: .15em;
}

.cotizador-header-product strong {
    color: var(--alp-navy);
    font-size: .9rem;
}

.cotizador-header-product small {
    color: var(--alp-muted);
    font-size: .72rem;
}

.cotizador-presentacion {
    position: relative;
    overflow: hidden;
    padding: 78px 24px 150px;
    color: #fff;
    background: linear-gradient( 100deg, rgba(3, 41, 68, .97), rgba(7, 55, 95, .88) 55%, rgba(0, 143, 201, .70) ), radial-gradient( circle at 85% 30%, rgba(0, 174, 239, .55), transparent 30% );
}

.cotizador-presentacion::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient( rgba(255, 255, 255, .045) 1px, transparent 1px ), linear-gradient( 90deg, rgba(255, 255, 255, .045) 1px, transparent 1px );
    background-size: 42px 42px;
    transform: perspective(500px) rotateX(58deg) scale(1.5);
    transform-origin: bottom;
    opacity: .55;
    pointer-events: none;
}

.cotizador-presentacion > * {
    position: relative;
    z-index: 1;
}

.cotizador-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.cotizador-badge::before {
    content: "☀";
    color: #ffd24c;
    font-size: 1rem;
}

.cotizador-presentacion h1 {
    max-width: 780px;
    margin: 22px auto 14px;
    font-size: clamp(2rem, 4vw, 3.55rem);
    line-height: 1.05;
    font-weight: 700;
}

.cotizador-presentacion p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, .84);
    font-size: 1rem;
    line-height: 1.75;
}

.cotizador-main {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin-top: -92px;
}

.cotizador-card.rz-card {
    padding: 30px;
    border: 0;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 16px 45px rgba(3, 41, 68, .11);
}

.cotizador-form-card.rz-card {
    border-top: 4px solid var(--alp-blue);
}

.cotizador-card-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 13px;
    margin-bottom: 4px;
    color: var(--alp-navy);
    font-size: 1.18rem;
    font-weight: 700;
}

.cotizador-step {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--alp-blue);
    color: #fff;
    font-size: .8rem;
}

.cotizador-helper {
    margin: 0 0 22px 43px;
    color: var(--alp-muted);
    font-size: .82rem;
}

.cotizador-field {
    margin-bottom: 18px;
}

.cotizador-field .rz-label {
    margin-bottom: 8px;
    color: var(--alp-ink);
    font-size: .78rem;
    font-weight: 650;
}

.cotizador-container .rz-numeric,
.cotizador-container .rz-dropdown,
.cotizador-container .rz-textbox {
    min-height: 46px;
    border: 1px solid var(--alp-border);
    border-radius: 2px;
    box-shadow: none;
}

.cotizador-container .rz-numeric:focus-within,
.cotizador-container .rz-dropdown:focus-within,
.cotizador-container .rz-textbox:focus {
    border-color: var(--alp-blue);
    box-shadow: 0 0 0 3px rgba(0, 174, 239, .10);
}

.cotizador-container small.text-muted {
    color: #778793 !important;
    font-size: .72rem;
    line-height: 1.45;
}

.cotizador-backup-card.rz-card {
    box-shadow: 0 8px 30px rgba(3, 41, 68, .07);
}

.cotizador-radio-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.cotizador-radio-img {
    display:flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.cotizador-radio-option {
    display: flex;
    align-items: flex-start;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 92px;
    padding: 18px;
    border: 1px solid var(--alp-border);
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    font-size: .9rem;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}

.cotizador-radio-option:hover {
    transform: translateY(-2px);
    border-color: var(--alp-blue);
    box-shadow: 0 8px 18px rgba(3, 41, 68, .08);
}

.cotizador-radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--alp-blue);
    cursor: pointer;
}

.cotizador-radio-option input[type="radio"]:disabled {
    cursor: not-allowed;
    opacity: .6;
}

.cotizador-actions .rz-button {
    min-height: 45px;
    padding-inline: 20px;
    border-radius: 2px;
    font-weight: 650;
}

.cotizador-actions .rz-primary {
    background: var(--alp-blue);
    border-color: var(--alp-blue);
}

.cotizador-actions .rz-primary:hover {
    background: var(--alp-blue-dark);
}

.cotizador-seccion-titulo {
    margin: 42px 0 17px;
    color: var(--alp-navy);
    font-size: 1.35rem;
    font-weight: 700;
}

.cotizador-seccion-titulo::after {
    content: "";
    display: block;
    width: 55px;
    height: 3px;
    margin-top: 9px;
    background: var(--alp-blue);
}

.cotizador-recomendado.rz-card {
    color: #fff;
    background: linear-gradient( 120deg, var(--alp-navy-dark), var(--alp-navy) );
}

.cotizador-recomendado .text-muted {
    color: rgba(255, 255, 255, .68) !important;
}

.cotizador-recomendado .display-4 {
    color: var(--alp-blue);
}

.cotizador-stat {
    height: 100%;
    padding: 17px 10px;
    border: 1px solid rgba(255, 255, 255, .18) !important;
    border-radius: 2px !important;
    background: rgba(255, 255, 255, .07);
}

.cotizador-stat strong {
    display: block;
    color: #fff;
    font-size: 1.05rem;
}

.cotizador-finance-card.rz-card {
    height: 100%;
    padding: 23px;
    border: 0;
    border-top: 2px solid var(--alp-blue);
    border-radius: 2px;
    box-shadow: 0 6px 22px rgba(3, 41, 68, .07);
}

.cotizador-finance-card h4 {
    color: var(--alp-navy);
    font-weight: 750;
}

.cotizador-finance-card span {
    color: var(--alp-muted);
    font-size: .78rem;
}

.cotizador-chart-card.rz-card,
.cotizador-detail-card.rz-card {
    padding: 26px;
    border: 0;
    border-radius: 3px;
    box-shadow: 0 8px 26px rgba(3, 41, 68, .07);
}

.cotizador-chart-card h6,
.cotizador-detail-card h5 {
    color: var(--alp-navy);
    font-weight: 700;
}

.cotizador-cta {
    margin-top: 10px;
    border: 0 !important;
    border-radius: 3px !important;
    color: #fff;
    background: linear-gradient( 110deg, var(--alp-navy), #0b5388 ) !important;
}

.cotizador-cta h5 {
    color: #fff;
    font-weight: 700;
}

.cotizador-cta p {
    color: rgba(255, 255, 255, .76);
}

.contacto-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(3, 28, 48, .68);
    backdrop-filter: blur(4px);
}

.contacto-modal {
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
    border-top: 4px solid var(--alp-blue);
    border-radius: 4px;
    background: #fff;
    color: #1a1a1a;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .30);
}

.contacto-modal h4 {
    color: var(--alp-navy);
    font-weight: 750;
}

.contacto-subtitulo {
    margin-bottom: 20px;
    color: #6c757d;
    font-size: .9rem;
}

.contacto-campo {
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .cotizador-header {
        min-height: 66px;
        padding: 12px 18px;
    }

    .cotizador-header-product {
        display: none;
    }

    .cotizador-presentacion {
        padding: 58px 20px 126px;
    }

    .cotizador-presentacion h1 {
        font-size: 2.15rem;
    }

    .cotizador-main {
        margin-top: -72px;
        padding-inline: 14px !important;
    }

    .cotizador-card.rz-card {
        padding: 21px 17px;
    }

    .cotizador-helper {
        margin-left: 0;
    }

    .cotizador-radio-group {
        grid-template-columns: 1fr;
    }

    .cotizador-radio-option {
        min-height: auto;
    }

    .cotizador-actions {
        flex-direction: column-reverse;
    }

    .cotizador-actions .rz-button {
        width: 100%;
    }

    .cotizador-cta {
        text-align: center;
    }
}

.cotizador-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cotizador-radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
}

.cotizador-radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #0A3A6B;
    cursor: pointer;
    flex-shrink: 0;
}

.cotizador-radio-option input[type="radio"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.spinner {
    position: absolute;
    top: 48%;
    left: 48%;
    width: 48px;
    height: 48px;
    border: 5px solid rgba(255, 255, 255, 0.7);
    border-top-color: var(--ColorPrincipal);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 998;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.asi-text-sm {
    font-size: 14px !important;
}

.asi-text-md {
    font-size: 16px !important;
}

.asi-text-lg {
    font-size: 18px !important;
}

.rz-notification {
    z-index: 9999 !important;
}

/* Inicio: selección del tipo de instalación */

.index-presentacion {
    padding-bottom: 112px;
}

.index-main {
    position: relative;
    z-index: 2;
    max-width: 1040px;
    margin: -64px auto 0;
    padding: 0 24px 56px;
}

.index-opciones {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.index-opcion {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 28px;
    border: 2px solid var(--alp-border);
    border-radius: 12px;
    background: #fff;
    color: var(--alp-ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(3, 41, 68, .08);
    transition: border-color .2s, transform .2s;
}

.index-opcion:hover:not(:disabled) {
    border-color: var(--alp-blue);
    transform: translateY(-3px);
}

.index-opcion:focus-visible {
    outline: 3px solid var(--alp-blue-dark);
    outline-offset: 4px;
}

.index-opcion:disabled {
    opacity: .65;
    cursor: wait;
}

.index-opcion-seleccionada {
    border-color: var(--alp-blue);
}

.index-opcion strong {
    font-size: 1.3rem;
    color: var(--alp-navy);
}

.index-opcion > span:not(.index-opcion-icono):not(.index-opcion-accion) {
    color: var(--alp-muted);
    font-size: .9rem;
}

.index-opcion-icono {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #e6f7fd;
    color: var(--alp-blue-dark);
    font-size: 30px;
}

.index-opcion-accion {
    margin-top: auto;
    padding-top: 8px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--alp-blue-dark);
}

/* Contacto industrial */

.index-industrial {
    margin-top: 28px;
}

.index-industrial-aviso {
    padding: 24px;
    border-left: 4px solid var(--alp-blue);
    border-radius: 8px;
    background: #e6f7fd;
}

.index-industrial-aviso h2 {
    margin: 0 0 10px;
    font-size: 1.15rem;
    color: var(--alp-navy);
}

.index-industrial-aviso p {
    margin: 0;
    line-height: 1.7;
}

.contacto-modal.index-contacto {
    max-width: 600px;
    max-height: none;
    overflow: visible;
    margin: 24px auto 0;
    box-shadow: 0 12px 32px rgba(3, 41, 68, .08);
}

.index-contacto-error {
    color: #a61b1b;
    padding: 12px;
    background: #fff0f0;
    border-radius: 6px;
}

.index-contacto-exito {
    margin-top: 24px;
    padding: 28px;
    background: #fff;
    border-radius: 8px;
    border-left: 4px solid #218547;
}

.index-contacto-exito strong {
    color: var(--alp-navy);
    font-size: 1.1rem;
}

.index-contacto-exito p {
    margin: 12px 0 20px;
}

@media (max-width: 768px) {
    .index-opciones {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .index-main {
        padding-inline: 16px;
    }

    .index-opcion {
        padding: 22px;
    }

    .index-industrial-aviso {
        padding: 20px;
    }

    .contacto-modal.index-contacto {
        padding: 22px;
    }
}