/*
Theme Name: Leonera Portal Figma
Theme URI: http://localhost/aguaslaleonera
Author: Codex Local
Author URI: http://localhost/aguaslaleonera
Description: Variante visual basada en el diseño Figma para Aguas La Leonera.
Version: 0.2.7
Text Domain: leonera-sistema
*/

:root {
    --ls-navy: #163f97;
    --ls-navy-deep: #09284f;
    --ls-cyan: #1bb8d3;
    --ls-aqua: #7ce7fb;
    --ls-ice: #eef8ff;
    --ls-fog: #dcecf8;
    --ls-ink: #12314f;
    --ls-text: #28425f;
    --ls-white: #ffffff;
    --ls-line: rgba(22, 63, 151, 0.12);
    --ls-shadow: 0 22px 60px rgba(9, 40, 79, 0.16);
    --ls-radius-sm: 10px;
    --ls-radius-md: 16px;
    --ls-radius-lg: 20px;
    --ls-content: 1180px;
    --ls-gutter: clamp(22px, 4vw, 40px);
    --ls-section-gap: clamp(20px, 10vw, 30px);
    --ls-font-body: "Manrope", "Segoe UI", sans-serif;
    --ls-font-display: "Cormorant Garamond", Georgia, serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ls-text);
    background:
        radial-gradient(circle at top right, rgba(124, 231, 251, 0.52), transparent 28%),
        radial-gradient(circle at 0% 18%, rgba(27, 184, 211, 0.2), transparent 22%),
        linear-gradient(180deg, #f8fcff 0%, #edf7fd 45%, #f7fbff 100%);
    font-family: var(--ls-font-body);
    font-size: 17px;
    line-height: 1.7;
    min-width: 320px;
}

body::selection {
    background: rgba(27, 184, 211, 0.2);
    color: var(--ls-navy-deep);
}

a {
    color: var(--ls-navy);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
    text-decoration: none;
}

a:hover {
    color: var(--ls-cyan);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

input,
textarea,
select {
    border: 1px solid rgba(22, 63, 151, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ls-ink);
    padding: 0.9rem 1rem;
    transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

input::placeholder,
textarea::placeholder {
    color: rgba(18, 49, 79, 0.6);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--ls-cyan);
    box-shadow: 0 0 0 4px rgba(27, 184, 211, 0.16);
    outline: none;
    background: var(--ls-white);
}

.site-shell {
    position: relative;
    overflow: hidden;
}

.site-shell::before,
.site-shell::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: -1;
}

.site-shell::before {
    width: 420px;
    height: 420px;
    top: -120px;
    right: -80px;
    border-radius: 46% 54% 62% 38% / 41% 48% 52% 59%;
    background: linear-gradient(180deg, rgba(27, 184, 211, 0.22), rgba(124, 231, 251, 0.05));
    filter: blur(8px);
}

.site-shell::after {
    width: 680px;
    height: 680px;
    left: -320px;
    bottom: -240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22, 63, 151, 0.1), transparent 70%);
}

.ls-container {
    width: min(calc(100% - (var(--ls-gutter) * 2)), var(--ls-content));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(22px);
    background: rgba(248, 252, 255, 0.8);
    border-bottom: 1px solid rgba(22, 63, 151, 0.08);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    min-height: 88px;
    padding: 14px 0;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    margin-right: auto;
}

.site-brand__logo {
    width: clamp(168px, 20vw, 238px);
}

.site-brand__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.site-brand__eyebrow {
    color: var(--ls-cyan);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.site-brand__tag {
    color: rgba(18, 49, 79, 0.75);
    font-size: 0.88rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 0;
}

.site-nav .menu {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav .menu > li > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    color: var(--ls-ink);
    font-weight: 700;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav .menu > li.current-menu-item > a,
.site-nav .menu > li > a:hover {
    color: var(--ls-navy);
    background: rgba(27, 184, 211, 0.1);
    transform: translateY(-1px);
}

.site-header__contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ls-navy), #2f63c2);
    color: var(--ls-white);
    box-shadow: 0 14px 28px rgba(22, 63, 151, 0.18);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    text-align: center;
}

.site-header__contact:hover {
    color: var(--ls-white);
    background: linear-gradient(135deg, #1c51b4, #348be0);
}

.site-header__mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 16px;
    background: rgba(22, 63, 151, 0.08);
    color: var(--ls-navy);
    cursor: pointer;
}

.site-main {
    padding: clamp(26px, 4vw, 34px) 0 0;
}

.hero-panel,
.ls-panel {
    position: relative;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--ls-radius-lg);
    box-shadow: var(--ls-shadow);
    backdrop-filter: blur(18px);
}

.home-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(34px, 5vw, 48px);
    background:
        linear-gradient(135deg, rgba(9, 40, 79, 0.96), rgba(22, 63, 151, 0.94) 42%, rgba(27, 184, 211, 0.82) 100%);
    color: var(--ls-white);
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: auto auto -120px -80px;
    width: 360px;
    height: 360px;
    border-radius: 44% 56% 58% 42% / 44% 41% 59% 56%;
    background: radial-gradient(circle, rgba(124, 231, 251, 0.3), transparent 70%);
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: 40px 40px auto auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 231, 251, 0.26), transparent 72%);
}

.home-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.9fr;
    gap: clamp(34px, 5vw, 54px);
    align-items: end;
}

.home-hero__eyebrow {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.home-hero__title {
    margin: 14px 0 14px;
    font-family: var(--ls-font-display);
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 0.92;
    text-wrap: balance;
}

.home-hero__lead {
    max-width: 56ch;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1rem, 2vw, 1.16rem);
}

.home-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 26px 0 0;
    list-style: none;
}

.home-hero__chips li {
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
}

.hero-search {
    align-self: stretch;
    padding: 28px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.hero-search h2 {
    margin: 0;
    font-family: var(--ls-font-display);
    font-size: clamp(2rem, 2vw, 2rem);
    font-weight: 500;
    line-height: 0.98;
}

.hero-search p {
    margin: 14px 0 20px;
    color: rgba(255, 255, 255, 0.8);
}

.hero-search__form {
    display: grid;
    gap: 14px;
}

.hero-search__row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.hero-search__row input {
    min-height: 58px;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.96);
}

.ls-button,
.wp-element-button,
.wp-block-button__link,
button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 22px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--ls-cyan), #2ed1eb);
    color: var(--ls-navy-deep);
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 16px 28px rgba(27, 184, 211, 0.2);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.ls-button:hover,
.wp-element-button:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(27, 184, 211, 0.22);
    filter: brightness(1.02);
}

.ls-button--ghost {
    background: transparent;
    color: var(--ls-white);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: none;
}

.ls-button--subtle {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(22, 63, 151, 0.12);
    background: rgba(22, 63, 151, 0.06);
    box-shadow: none;
    color: var(--ls-navy);
    font-size: 0.9rem;
}

.section-block {
    padding: var(--ls-section-gap) 0 0;
}

.section-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.section-heading__eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--ls-cyan);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-heading h2,
.page-hero h1,
.entry-header h1 {
    margin: 0;
    color: var(--ls-navy-deep);
    font-family: var(--ls-font-display);
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 0.95;
    text-wrap: balance;
}

.section-heading p,
.page-hero__lead {
    max-width: 62ch;
    margin: 0;
    color: rgba(18, 49, 79, 0.74);
}

.section-heading--account {
    align-items: start;
    padding-right: 180px;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.account-shell {
    display: grid;
    gap: 24px;
}

.account-shell .page-content-card {
    position: relative;
}

.account-match-grid,
.account-summary-grid,
.account-history-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.account-card,
.account-stat,
.account-history-card,
.account-empty {
    padding: 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(22, 63, 151, 0.08);
    box-shadow: var(--ls-shadow);
}

.account-card h3,
.account-history-card h3,
.account-empty h3 {
    margin: 0 0 10px;
    color: var(--ls-navy-deep);
    font-family: var(--ls-font-display);
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1;
}

.account-card p,
.account-history-card p,
.account-empty p {
    margin: 0 0 14px;
}

.account-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.account-stat {
    min-height: 180px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 248, 255, 0.92));
}

.account-stat__label {
    display: inline-block;
    margin-bottom: 14px;
    color: rgba(18, 49, 79, 0.58);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.account-stat__value {
    color: var(--ls-navy-deep);
    font-family: var(--ls-font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    line-height: 0.94;
}

.account-stat__meta {
    margin-top: 14px;
    color: rgba(18, 49, 79, 0.72);
}

.account-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.account-insight-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 18px;
    margin-top: 20px;
}

.account-state-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.account-state-pill.is-pending {
    background: rgba(255, 198, 61, 0.18);
    color: #8a6200;
}

.account-state-pill.is-paid {
    background: rgba(31, 176, 120, 0.14);
    color: #126746;
}

.account-state-pill.is-failed,
.account-state-pill.is-cancelled {
    background: rgba(201, 61, 61, 0.14);
    color: #8e2626;
}

.account-history-card--payment {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(160deg, rgba(9, 40, 79, 0.98), rgba(22, 63, 151, 0.96) 58%, rgba(27, 184, 211, 0.84));
    color: rgba(255, 255, 255, 0.92);
}

.account-history-card--payment h3,
.account-history-card--payment p,
.account-history-card--payment .account-stat__label {
    color: inherit;
}

.account-history-card--payment .ls-button {
    width: 100%;
    margin-top: 12px;
    background: var(--ls-white);
    color: var(--ls-navy-deep);
    box-shadow: 0 18px 30px rgba(9, 40, 79, 0.18);
}

.account-payment-options {
    display: grid;
    gap: 10px;
}

.account-payment-form,
.account-payment-form .ls-button {
    width: 100%;
}

.account-payment-error,
.account-payment-note {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.16);
}

.account-payment-error {
    background: rgba(128, 20, 20, 0.32);
}

.account-history-card--status .account-state-pill {
    margin-left: 8px;
    vertical-align: middle;
}

.account-key-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(22, 63, 151, 0.04);
}

.account-key-facts p {
    margin: 0;
}

.account-share-box {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--ls-line);
}

.account-share-box input {
    width: 100%;
    padding-right: 14px;
    font-size: 0.92rem;
}

.account-payment-highlight {
    margin: 10px 0 20px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.account-payment-amount {
    margin-top: 10px;
    font-family: var(--ls-font-display);
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 0.92;
}

.account-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.account-history-table th,
.account-history-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--ls-line);
}

.account-history-table th {
    color: rgba(18, 49, 79, 0.58);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: left;
}

.account-history-table td.is-center,
.account-history-table th.is-center {
    text-align: center;
}

.account-history-table td.is-right,
.account-history-table th.is-right {
    text-align: right;
}

.quick-link {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 24px;
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(236, 248, 255, 0.88));
    border: 1px solid rgba(22, 63, 151, 0.08);
    box-shadow: var(--ls-shadow);
}

.quick-link::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -30px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(27, 184, 211, 0.16), transparent 70%);
}

.quick-link h3 {
    margin: 0 0 10px;
    color: var(--ls-navy-deep);
    font-family: var(--ls-font-display);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1;
}

.quick-link p {
    margin: 0 0 18px;
    max-width: 34ch;
    color: rgba(18, 49, 79, 0.76);
}

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

.news-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 24px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(22, 63, 151, 0.08);
    box-shadow: var(--ls-shadow);
}

.news-card__date {
    color: rgba(18, 49, 79, 0.56);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-card h3 {
    margin: 14px 0 10px;
    color: var(--ls-navy-deep);
    font-family: var(--ls-font-display);
    font-size: 2rem;
    font-weight: 500;
    line-height: 0.98;
}

.news-card p {
    margin: 0 0 18px;
}

.news-card__link {
    margin-top: auto;
    font-weight: 800;
}

.page-hero,
.entry-hero {
    padding: clamp(28px, 4vw, 42px);
}

.page-hero {
    margin-bottom: 26px;
}

.page-hero .wpcf7-form input[type="text"],
.page-hero .wpcf7-form input[type="email"],
.page-hero .wpcf7-form textarea {
    box-sizing: border-box;
    width: 100%;
}

.page-content-card,
.entry-content-card {
    padding: clamp(28px, 4vw, 42px);
}

.account-top-action {
    position: absolute;
    top: 28px;
    right: 28px;
    z-index: 2;
}

.page-content-card table,
.entry-content-card table {
    width: 100%;
    border-collapse: collapse;
}

.page-content-card td,
.page-content-card th,
.entry-content-card td,
.entry-content-card th {
    padding: 14px 12px;
    border-bottom: 1px solid var(--ls-line);
}

.footer-shell {
    margin-top: var(--ls-section-gap);
    padding: 28px 0 0;
}

.footer-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 4vw, 42px);
    border-radius: 42px 42px 0 0;
    background: linear-gradient(180deg, #0d3367, #08264b);
    color: rgba(255, 255, 255, 0.86);
}

.footer-panel::before {
    content: "";
    position: absolute;
    inset: auto -20px -40px auto;
    width: 220px;
    height: 220px;
    border-radius: 42% 58% 54% 46% / 45% 38% 62% 55%;
    background: radial-gradient(circle, rgba(124, 231, 251, 0.24), transparent 72%);
}

.footer-panel__top {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px;
    align-items: end;
    margin-bottom: 30px;
}

.footer-panel__title {
    margin: 0 0 10px;
    color: var(--ls-white);
    font-family: var(--ls-font-display);
    font-size: clamp(2rem, 4vw, 3.3rem);
    font-weight: 500;
    line-height: 0.96;
}

.footer-panel__lead {
    margin: 0;
    max-width: 52ch;
    color: rgba(255, 255, 255, 0.72);
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.footer-widget {
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0px 0px 10px;
}

.footer-widget h2,
.footer-widget h3,
.footer-widget h4 {
    margin: 0 0 12px;
    color: var(--ls-white);
    font-size: 1.05rem;
}

.footer-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-widget li + li {
    margin-top: 8px;
}

.footer-widget a {
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
}

.footer-widget a:hover {
    color: var(--ls-aqua);
}

.footer-panel__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.92rem;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1080px) {
    .home-hero__grid,
    .footer-panel__top,
    .quick-links,
    .news-grid,
    .account-match-grid,
    .account-summary-grid,
    .account-history-grid,
    .account-insight-grid,
    .account-key-facts,
    .footer-widgets {
        grid-template-columns: 1fr;
    }

    .site-header__contact {
        display: none;
    }
}

@media (max-width: 980px) {
    .site-header__inner {
        align-items: center;
    }

    .site-header__mobile-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: var(--ls-gutter);
        right: var(--ls-gutter);
        display: none;
        padding: 14px;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--ls-shadow);
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav .menu {
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav .menu > li > a {
        justify-content: center;
    }

    .hero-search__row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 16px;
    }

    .site-brand__meta {
        display: none;
    }

    .home-hero {
        padding: 26px;
    }

    .footer-panel {
        border-radius: 30px 30px 0 0;
    }

    .account-history-table {
        display: block;
        overflow-x: auto;
    }

    .account-top-action {
        position: static;
        margin-bottom: 18px;
    }

    .section-heading--account {
        padding-right: 0;
    }
}

/* Visual system extracted from the approved Figma portal reference. */
.leonera-theme {
    --ls-navy: #063b78;
    --ls-navy-deep: #042e5c;
    --ls-cyan: #00a9d1;
    --ls-aqua: #9befff;
    --ls-ice: #effbfe;
    --ls-fog: #dceff5;
    --ls-ink: #103a5d;
    --ls-text: #36546d;
    --ls-font-body: "DM Sans", "Segoe UI", sans-serif;
    --ls-font-display: "Lora", Georgia, serif;
    --ls-content: 984px;
}

.leonera-theme .site-main {
    padding-top: 0;
}

.leonera-theme .site-header {
    position: relative;
    padding-top: 8px;
    background: var(--ls-white);
    border-bottom-color: rgba(6, 59, 120, 0.1);
    backdrop-filter: none;
}

.leonera-theme .site-header::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 8px;
    background: var(--ls-navy-deep);
}

.leonera-theme .site-header__inner {
    min-height: 76px;
}

.leonera-theme .site-brand__logo {
    width: clamp(154px, 16vw, 212px);
}

.leonera-theme .site-brand__meta,
.leonera-theme .site-brand__eyebrow {
    display: none;
}

.leonera-theme .site-nav .menu > li > a {
    min-height: 40px;
    padding: 0 12px;
    color: #34526b;
    font-size: 0.9rem;
    font-weight: 600;
}

.leonera-theme .site-header__contact,
.leonera-theme .hero-search__row button,
.leonera-theme .ls-button {
    background: linear-gradient(100deg, #0d3f9f, #117bd8);
    box-shadow: none;
    border-radius: 999px;
    color: var(--ls-white);
}

.leonera-theme .home-hero {
    min-height: 360px;
    padding: clamp(36px, 3.25vw, 48px) 0 clamp(54px, 4.8vw, 70px);
    border: 0;
    border-radius: 0;
    background: #eaf9fd;
    color: var(--ls-ink);
    box-shadow: none;
}

.leonera-theme .home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    background: url("assets/images/hero-home.jpg") center clamp(-58px, -3.5vw, -36px) / 100% auto no-repeat;
    transform: scaleX(-1);
    transform-origin: center;
}

.leonera-theme .home-hero::after {
    inset: auto 0 0;
    width: 100%;
    height: min(16vw, 180px);
    border-radius: 0;
    background: linear-gradient(180deg, transparent, rgba(242, 252, 255, 0.18));
}

.leonera-theme .home-hero__grid {
    grid-template-columns: minmax(0, 1fr) 404px;
    align-items: center;
    gap: clamp(40px, 3vw, 64px);
}

.leonera-theme .section-heading__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #1578ce;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.leonera-theme .home-hero__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #008ab1;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.leonera-theme .home-hero__title {
    max-width: 520px;
    margin: 0 0 12px;
    color: #07396f;
    font-family: var(--ls-font-display);
    font-size: clamp(2rem, 3.3vw, 3.1rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.02;
}

.leonera-theme .home-hero__lead {
    max-width: 430px;
    margin-bottom: 0;
    color: #123d69;
    font-size: 0.9rem;
    font-weight: 600;
}

.leonera-theme .home-hero__grid > div:first-child {
    transform: translateY(clamp(-70px, -4.8vw, -42px));
}

.leonera-theme .hero-search {
    padding: 26px 28px 24px;
    border: 1px solid rgba(6, 59, 120, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 40px rgba(7, 48, 92, 0.17);
}

.leonera-theme .hero-search h2 {
    color: var(--ls-navy-deep);
    font-family: var(--ls-font-display);
    font-size: clamp(1.45rem, 1.9vw, 1.7rem);
    line-height: 1.05;
    text-align: center;
}

.leonera-theme .hero-search p,
.leonera-theme .hero-search small {
    color: #587087;
    text-align: center;
}

.leonera-theme .hero-search__row {
    grid-template-columns: 1fr;
    gap: 10px;
}

.leonera-theme .hero-search__row input,
.leonera-theme .hero-search__row button {
    min-height: 46px;
}

.leonera-theme .hero-search__row input {
    border-radius: 8px;
    border-color: #b8d1dd;
    box-shadow: inset 0 1px 2px rgba(7, 57, 111, 0.05);
}

.leonera-theme .hero-search__row button {
    border-radius: 999px;
    color: var(--ls-white);
    font-weight: 700;
}

.leonera-theme .section-block {
    padding-top: clamp(42px, 6vw, 76px);
}

.leonera-theme .section-heading h2 {
    max-width: 24ch;
    color: var(--ls-navy-deep);
    font-family: var(--ls-font-display);
    font-size: clamp(2rem, 3vw, 3.15rem);
    letter-spacing: -0.03em;
    line-height: 1.03;
}

.leonera-theme .quick-link {
    display: flex;
    flex-direction: column;
}

.leonera-theme .quick-link,
.leonera-theme .news-card,
.leonera-theme .account-card,
.leonera-theme .account-history-card,
.leonera-theme .account-empty {
    border-radius: 14px;
    border-color: rgba(6, 59, 120, 0.12);
    box-shadow: 0 12px 28px rgba(8, 57, 100, 0.08);
}

.leonera-theme .quick-link h3,
.leonera-theme .news-card h3 {
    font-size: 1.4rem;
    line-height: 1.1;
}

.leonera-theme .quick-link p,
.leonera-theme .news-card p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.leonera-theme .quick-link .news-card__link {
    display: block;
    margin-top: auto;
}

.leonera-theme .footer-shell {
    margin-top: clamp(50px, 8vw, 100px);
    padding: 0;
    background: var(--ls-navy-deep);
}

.leonera-theme .footer-wave {
    height: clamp(64px, 9.1vw, 130px);
    background: #f7fcff url("assets/images/hero-water.png") center -58px / 100% auto no-repeat;
    transform: scaleX(-1);
}

.leonera-theme .footer-panel {
    display: block;
    padding: clamp(48px, 5.8vw, 84px) 0 clamp(42px, 4vw, 62px);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.leonera-theme .footer-panel::before {
    display: none;
}

.leonera-theme .footer-panel__content {
    display: grid;
    grid-template-columns: 1.25fr 1.3fr 1.3fr 1.3fr;
    gap: clamp(24px, 2.9vw, 56px);
    align-items: start;
}

.leonera-theme .footer-brand-block {
    color: #21c4df;
}

.leonera-theme .footer-brand {
    display: inline-block;
    width: min(230px, 100%);
    margin-bottom: 18px;
}

.leonera-theme .footer-brand-block p {
    max-width: 30ch;
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.5;
}

.leonera-theme .footer-nav h2 {
    margin: 0 0 20px;
    color: var(--ls-white);
    font-family: var(--ls-font-body);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
}

.leonera-theme .footer-widget-item {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
}

.leonera-theme .footer-widget-item h2 {
    margin: 0 0 20px;
    color: var(--ls-white);
    font-family: var(--ls-font-body);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
}

.leonera-theme .footer-widget-item p {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.95rem;
    line-height: 1.45;
}

.leonera-theme .footer-widget-item ul,
.leonera-theme .footer-widget-item .menu {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.leonera-theme .footer-widget-item a {
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
}

.leonera-theme .footer-widget-item a:hover,
.leonera-theme .footer-widget-item a:focus-visible {
    color: #48d4ec;
}

.leonera-theme .footer-brand-block .footer-widget-item img {
    display: block;
    max-width: 230px;
    height: auto;
}

.leonera-theme .footer-brand-block .footer-widget-item p {
    max-width: 30ch;
    color: #21c4df;
    font-size: 0.82rem;
    line-height: 1.5;
}

.leonera-theme .footer-menu {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.leonera-theme .footer-menu a {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.95rem;
    line-height: 1.35;
}

.leonera-theme .footer-menu a:hover,
.leonera-theme .footer-menu a:focus-visible {
    color: #48d4ec;
}

.leonera-theme .footer-siss {
    display: flex;
    gap: 12px;
    align-items: center;
    width: fit-content;
    margin-top: 56px;
    color: var(--ls-white);
}

.leonera-theme .footer-siss img {
    display: block;
    width: 118px;
    height: auto;
}

.leonera-theme .footer-siss__link {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.72rem;
    white-space: nowrap;
}

.leonera-theme .footer-legal-strip {
    padding: 12px 0;
    background: #43cce5;
    color: #0b406c;
    font-size: 0.78rem;
}

.leonera-theme .footer-legal-strip .ls-container {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}

.leonera-theme .footer-legal-strip a {
    color: inherit;
}

/* Account actions use their own hierarchy: return is secondary, payment is primary. */
.leonera-theme .account-top-action.ls-button--subtle {
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid #c7daef;
    border-radius: 999px;
    background: #edf7fc;
    color: #214b9d;
    font-size: 0.95rem;
    font-weight: 800;
    box-shadow: none;
}

.leonera-theme .account-top-action.ls-button--subtle:hover,
.leonera-theme .account-top-action.ls-button--subtle:focus-visible {
    background: #e2f2fb;
    border-color: #9bbde2;
    color: #173d82;
    box-shadow: none;
}

.leonera-theme .account-history-card--payment .account-payment-form .ls-button {
    min-height: 58px;
    margin-top: 0;
    border: 1.5px solid #17458b;
    border-radius: 999px;
    background: #fbfdff;
    color: #173d72;
    font-size: 1.05rem;
    font-weight: 800;
    box-shadow: 0 12px 22px rgba(7, 34, 79, 0.12);
}

.leonera-theme .account-history-card--payment .account-payment-form .ls-button:hover,
.leonera-theme .account-history-card--payment .account-payment-form .ls-button:focus-visible {
    background: #edf7ff;
    border-color: #0e3574;
    color: #0e3574;
    box-shadow: 0 15px 26px rgba(7, 34, 79, 0.16);
}

@media (max-width: 860px) {
    .leonera-theme .footer-wave {
        background-size: auto 285.714%;
        background-position: center -20px;
    }

    .leonera-theme .home-hero {
        min-height: auto;
        padding: clamp(38px, 7vw, 52px) var(--ls-gutter) 64px;
    }

    .leonera-theme .home-hero::before {
        background-size: auto 100%;
        background-position: center center;
    }

    .leonera-theme .home-hero::after {
        height: min(28vw, 140px);
    }

    .leonera-theme .home-hero__grid {
        grid-template-columns: 1fr;
        gap: clamp(28px, 5vw, 40px);
    }

    .leonera-theme .home-hero__title {
        max-width: 15ch;
    }

    .leonera-theme .home-hero__grid > div:first-child {
        transform: none;
    }

    .leonera-theme .hero-search {
        width: min(100%, 460px);
        justify-self: center;
    }

    .leonera-theme .footer-panel__content {
        grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(150px, 1fr));
    }

    .leonera-theme .footer-brand-block {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .leonera-theme .site-header__inner {
        min-height: 64px;
    }

    .leonera-theme .home-hero {
        padding: 34px var(--ls-gutter) 52px;
    }

    .leonera-theme .home-hero::before {
        background-size: auto 100%;
        background-position: center center;
    }

    .leonera-theme .home-hero::after {
        height: 118px;
    }

    .leonera-theme .home-hero__title {
        font-size: clamp(2.45rem, 12vw, 3.5rem);
    }

    .leonera-theme .footer-panel__content {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .leonera-theme .footer-wave {
        height: 76px;
        background-size: auto 285.714%;
        background-position: center -20px;
    }

    .leonera-theme .footer-brand-block {
        grid-column: auto;
    }

    .leonera-theme .footer-siss {
        margin-top: 28px;
    }
}
