.luz-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 12%, rgba(47, 128, 237, 0.10), transparent 28%),
        radial-gradient(circle at 92% 8%, rgba(40, 199, 143, 0.12), transparent 30%),
        radial-gradient(circle at 50% 100%, rgba(47, 128, 237, 0.08), transparent 38%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 48%, #f3f9ff 100%);
    color: #071a44;
    font-family: Arial, Helvetica, sans-serif;
}

.luz-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    padding: 38px 20px 48px;
}

.luz-brand-title-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 0;
}

.luz-logo {
    max-width: 300px;
    width: min(58vw, 300px);
    height: auto;
    display: block;
    margin: 0;
}

.luz-title {
    max-width: 1100px;
    font-size: clamp(3.2rem, 7.2vw, 6.8rem);
    font-weight: 900;
    letter-spacing: -0.065em;
    line-height: 0.92;
    text-align: center;
    margin: 0 0 34px;
    color: #071a44;
    text-transform: uppercase;

    transform: translateY(-22px);
}

.luz-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    margin: 0 0 28px;
    color: #31476f;
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 500;
    text-align: center;
}

.luz-subtitle-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 3px solid #2f80ed;
    border-radius: 50%;
    color: #28c78f;
    font-weight: 900;
    font-size: 1.05rem;
}

.luz-search-wrapper {
    width: min(760px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -10px;
}

.luz-search-box {
    width: min(760px, 100%);
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 16px;

    padding: 10px 12px 10px 24px;
    border: 1px solid rgba(47, 128, 237, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);

    box-shadow: 0 20px 50px rgba(7, 26, 68, 0.10);
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.luz-search-box:hover,
.luz-search-box:focus-within {
    border-color: rgba(47, 128, 237, 0.32);
    box-shadow: 0 24px 60px rgba(7, 26, 68, 0.14);
}

.luz-search-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: transparent;
    color: #ff7a1a;
    font-size: 1.55rem;
    font-weight: 900;
}

.luz-input,
.luz-input:focus,
.luz-input:focus-visible,
.luz-input:active {
    flex: 1;
    min-width: 0;

    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;

    font-size: 1.1rem;
    padding: 12px 18px;
    color: #071a44;
}

.luz-input::-webkit-outer-spin-button,
.luz-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.luz-input {
    -moz-appearance: textfield;
    appearance: textfield;
}

.luz-button {
    border-radius: 999px;
    padding: 14px 32px;
    border: none;

    background: linear-gradient(90deg, #2f80ed, #28c78f);
    color: #fff;

    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;

    box-shadow: 0 14px 28px rgba(47, 128, 237, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.luz-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(47, 128, 237, 0.35);
    filter: brightness(1.04);
}

.luz-button:active {
    transform: translateY(0);
}

.luz-advanced-toggle {
    margin-top: 14px;
    border: none;
    background: transparent !important;
    color: #2f80ed !important;
    font-weight: 800;
    box-shadow: none !important;
    padding: 6px 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.luz-advanced-toggle:hover {
    color: #28c78f !important;
}

.luz-advanced-box {
    width: 100%;
    margin-top: 14px;
    padding: 22px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(47, 128, 237, 0.18);
    box-shadow: 0 16px 42px rgba(7, 26, 68, 0.08);
}

.luz-advanced-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.luz-advanced-input,
.luz-advanced-input:focus,
.luz-advanced-input:focus-visible {
    border-radius: 999px;
    border: 1px solid rgba(47, 128, 237, 0.22) !important;
    box-shadow: none !important;
    padding: 12px 16px;
    font-size: 0.95rem;
    color: #071a44;
}

.luz-advanced-help {
    margin: 14px 0 0;
    text-align: center;
    color: #5b6b84;
    font-size: 0.88rem;
    line-height: 1.45;
}

.luz-advanced-input::-webkit-outer-spin-button,
.luz-advanced-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.luz-advanced-input {
    -moz-appearance: textfield;
    appearance: textfield;
}

.luz-results {
    width: min(980px, 100%);
    margin-top: 42px;
}

.luz-warning {
    text-align: center;
    color: #d64545;
    font-size: 0.95rem;
    font-weight: 700;
}

.luz-card {
    border: 1px solid rgba(47, 128, 237, 0.16);
    border-radius: 32px;
    padding: 32px 34px;

    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 24px 60px rgba(7, 26, 68, 0.10);
    backdrop-filter: blur(10px);
}

.luz-card-title {
    display: flex;
    align-items: center;
    gap: 16px;

    font-size: clamp(1.55rem, 2.4vw, 2.15rem);
    font-weight: 950;
    letter-spacing: -0.035em;
    text-transform: uppercase;

    margin-bottom: 28px;
    color: #071a44;
}

.luz-card-title-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
}

.luz-card-title-text::after {
    content: "Tarifas ordenadas por ahorro estimado";
    margin-top: 8px;

    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: none;
    color: #5b6b84;
}

.luz-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
    font-size: 0.98rem;
}

.luz-table th {
    text-align: left;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    color: #6b7894;
    padding: 10px 14px;
    border-bottom: none;
}

.luz-table td {
    padding: 18px 14px;
    border-bottom: none;

    background: #ffffff;
    color: #071a44;
    box-shadow: 0 8px 24px rgba(7, 26, 68, 0.06);
}

.luz-table tbody tr {
    transition: transform 0.18s ease;
}

.luz-table tbody tr:hover {
    transform: translateY(-2px);
}

.luz-table tbody tr td:first-child {
    border-radius: 18px 0 0 18px;
    font-weight: 800;
}

.luz-table tbody tr td:last-child {
    border-radius: 0 18px 18px 0;
}

.luz-link-button {
    display: inline-block;
    padding: 10px 18px;

    border-radius: 999px;
    background: linear-gradient(90deg, #2f80ed, #28c78f);
    color: #fff !important;

    text-decoration: none;
    font-weight: 800;

    box-shadow: 0 10px 22px rgba(47, 128, 237, 0.22);
    transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.luz-link-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    color: #fff !important;
    box-shadow: 0 14px 28px rgba(47, 128, 237, 0.28);
}

.luz-aviso-calculo {
    margin-top: 18px;
    font-size: 0.9rem;
    color: #5b6b84;
    line-height: 1.5;
    text-align: center;
}

.luz-ahorro-positivo {
    color: #16a36c !important;
    font-weight: 900;
}

.luz-ahorro-negativo {
    color: #d64545 !important;
    font-weight: 900;
}

@media (max-width: 640px) {
    .luz-hero {
        min-height: auto;
        padding: 28px 16px 32px;
    }

    .luz-brand-title-block {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin-bottom: 0;
    }

    .luz-logo {
        max-width: 330px;
        width: min(62vw, 330px);
        height: auto;
        display: block;
        margin: 0;
    }

    .luz-title {
        max-width: 1100px;
        font-size: clamp(3.2rem, 7.2vw, 6.8rem);
        font-weight: 900;
        letter-spacing: -0.065em;
        line-height: 0.92;
        text-align: center;
        margin: 0 0 44px;
        color: #071a44;
        text-transform: uppercase;
    }

    .luz-title-icon {
        width: 42px;
        height: 42px;
        margin-right: 10px;
        font-size: 1.5rem;
    }

    .luz-subtitle {
        margin-bottom: 22px;
        font-size: 1rem;
        padding: 0 8px;
    }

    .luz-search-box {
        flex-direction: column;
        border-radius: 28px;
        padding: 16px;
    }

    .luz-search-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }

    .luz-input {
        width: 100%;
        text-align: center;
    }

    .luz-button {
        width: 100%;
    }

    .luz-card {
        padding: 22px;
        overflow-x: auto;
    }

    .luz-card-title {
        font-size: 1.25rem;
    }

    .luz-table {
        min-width: 720px;
    }

    .luz-advanced-grid {
        grid-template-columns: 1fr;
    }
}