
:root {
    --lotaip-primary: #0f4c5c;
    --lotaip-dark: #093743;
    --lotaip-accent: #c79a3b;
    --lotaip-text: #24313a;
    --lotaip-muted: #687780;
    --lotaip-soft: #f3f6f7;
    --lotaip-border: #dfe6e9;
    --lotaip-white: #ffffff;
    --lotaip-radius: 18px;
}

.lotaip-page {
    background:
        radial-gradient(circle at 8% 10%, rgba(199,154,59,.07), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f6f8f9 100%);
    padding-bottom: 30px;
}

.lotaip-page .container-xxl {
    max-width: 1220px;
}

/* ENCABEZADO */

.lotaip-hero {
    position: relative;
    overflow: hidden;
    min-height: 245px;
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) auto;
    align-items: center;
    gap: 26px;
    padding: 42px 46px;
    border-radius: 24px;
    background:linear-gradient(135deg, rgba(11, 18, 116, 0.98), rgba(52, 49, 228, 0.96));
    box-shadow: 0 18px 45px rgba(1, 3, 82, 0.14);
}

.lotaip-hero::before,
.lotaip-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.lotaip-hero::before {
    width: 330px;
    height: 330px;
    right: -130px;
    top: -190px;
    border: 1px solid rgba(255,255,255,.13);
}

.lotaip-hero::after {
    width: 220px;
    height: 220px;
    right: 80px;
    bottom: -170px;
    border: 1px solid rgba(199,154,59,.24);
}

.lotaip-hero-icon {
    position: relative;
    z-index: 1;
    width: 82px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(199,154,59,.55);
    border-radius: 22px;
    background: rgba(255,255,255,.08);
    color: #e4c77e;
    font-size: 31px;
}

.lotaip-hero-copy {
    position: relative;
    z-index: 1;
}

.lotaip-eyebrow {
    display: inline-block;
    margin-bottom: 7px;
    color: #e4c77e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.lotaip-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 800;
    line-height: .95;
}

.lotaip-hero h2 {
    margin: 10px 0 9px;
    color: rgba(255,255,255,.94);
    font-size: clamp(18px, 2vw, 25px);
    font-weight: 600;
}

.lotaip-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255,255,255,.72);
    font-size: 14px;
    line-height: 1.7;
}

.lotaip-hero-badge {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.86);
    font-size: 12px;
    white-space: nowrap;
}

.lotaip-hero-badge i {
    color: #e4c77e;
}

/* BARRA INFORMATIVA */

.lotaip-info-bar {
    margin-top: 18px;
    padding: 15px 19px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid var(--lotaip-border);
    border-radius: 14px;
    background: var(--lotaip-white);
    box-shadow: 0 8px 25px rgba(15,76,92,.05);
}

.lotaip-info-bar > div {
    display: flex;
    align-items: center;
    gap: 13px;
}

.lotaip-info-bar > div > i {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #eef5f6;
    color: var(--lotaip-primary);
}

.lotaip-info-bar strong,
.lotaip-info-bar span {
    display: block;
}

.lotaip-info-bar strong {
    color: var(--lotaip-text);
    font-size: 13px;
}

.lotaip-info-bar div span {
    margin-top: 3px;
    color: var(--lotaip-muted);
    font-size: 12px;
}

.lotaip-info-year {
    padding: 7px 11px;
    border-radius: 999px;
    background: #fbf6e9;
    color: #967329;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

/* CONTENEDOR DE AÑOS */

.lotaip-years {
    display: grid;
    gap: 13px;
}

.lotaip-year-item {
    overflow: hidden;
    border: 1px solid var(--lotaip-border) !important;
    border-radius: var(--lotaip-radius) !important;
    background: #ffffff;
    box-shadow: 0 8px 26px rgba(15,76,92,.06) !important;
    transition: transform .22s ease, box-shadow .22s ease;
}

.lotaip-year-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(15,76,92,.10) !important;
}

.lotaip-years > .lotaip-year-item > .accordion-header > .custom-btn {
    position: relative;
    min-height: 70px;
    padding: 18px 23px;
    border: 0;
    background: #ffffff;
    color: var(--lotaip-dark);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .2px;
}

.lotaip-years > .lotaip-year-item > .accordion-header > .custom-btn::before {
    content: "";
    width: 5px;
    height: 30px;
    position: absolute;
    left: 0;
    top: 20px;
    border-radius: 0 5px 5px 0;
    background: var(--lotaip-accent);
}

.lotaip-years > .lotaip-year-item > .accordion-header > .custom-btn:not(.collapsed) {
    background: linear-gradient(90deg, #eef5f6, #ffffff);
    color: var(--lotaip-primary);
    box-shadow: none;
}

.lotaip-years > .lotaip-year-item > .accordion-header > .custom-btn:focus {
    box-shadow: 0 0 0 .18rem rgba(15,76,92,.10);
}

/* ÁREA DOS MESES */

.lotaip-year-item > .accordion-collapse > .accordion-body {
    padding: 18px;
    background: #f7f9fa !important;
    border-top: 1px solid var(--lotaip-border);
}

.lotaip-months {
    display: grid;
    gap: 8px;
}

.lotaip-months .accordion-item {
    overflow: hidden;
    margin: 0 !important;
    border: 1px solid #e2e9eb !important;
    border-radius: 12px !important;
    background: #ffffff;
    box-shadow: none !important;
}

.lotaip-months .accordion-button {
    min-height: 52px;
    padding: 14px 17px;
    background: #ffffff;
    color: var(--lotaip-text);
    font-size: 14px;
    font-weight: 700;
}

.lotaip-months .accordion-button:not(.collapsed) {
    background: #fbf6e9;
    color: #7e6221;
    box-shadow: none;
}

.lotaip-months .accordion-button::after {
    width: 12px;
    height: 12px;
    background-size: 12px;
}

.lotaip-months .accordion-body {
    padding: 14px 16px 16px;
    border-top: 1px solid #eee6d3;
    background: #fffdf8;
}

.lotaip-months .accordion-body ul {
    margin: 0;
    display: grid;
    gap: 8px;
}

/* ENLACES */

.lotaip-link {
    min-height: 45px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 13px;
    border: 1px solid #e1e8ea;
    border-radius: 10px;
    background: #ffffff;
    color: var(--lotaip-primary) !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.lotaip-link i {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #edf5f6;
    color: var(--lotaip-primary);
    font-size: 10px;
}

.lotaip-link:hover {
    transform: translateX(4px);
    border-color: #c6dadd;
    background: #f7fbfb;
    color: var(--lotaip-dark) !important;
    box-shadow: 0 5px 15px rgba(15,76,92,.07);
}

.lotaip-link:hover i {
    background: #e8f1f2;
}

/* HISTORIA - SEPARACIÓN VISUAL */

.lotaip-history {
    margin-top: 0;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .lotaip-hero {
        grid-template-columns: 68px minmax(0, 1fr);
        padding: 34px 30px;
    }

    .lotaip-hero-icon {
        width: 68px;
        height: 68px;
        border-radius: 18px;
        font-size: 25px;
    }

    .lotaip-hero-badge {
        grid-column: 2;
        justify-self: start;
        margin-top: -10px;
    }
}

@media (max-width: 600px) {
    .lotaip-page .container-xxl {
        padding-left: 15px;
        padding-right: 15px;
    }

    .lotaip-hero {
        grid-template-columns: 1fr;
        gap: 16px;
        min-height: auto;
        padding: 30px 22px;
        border-radius: 20px;
    }

    .lotaip-hero-icon {
        width: 58px;
        height: 58px;
        border-radius: 15px;
        font-size: 22px;
    }

    .lotaip-hero-badge {
        grid-column: auto;
        margin-top: 0;
    }

    .lotaip-hero h1 {
        font-size: 42px;
    }

    .lotaip-hero h2 {
        font-size: 18px;
    }

    .lotaip-hero p {
        font-size: 13px;
    }

    .lotaip-info-bar {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px;
    }

    .lotaip-years > .lotaip-year-item > .accordion-header > .custom-btn {
        min-height: 62px;
        padding: 16px 18px;
        font-size: 16px;
    }

    .lotaip-year-item > .accordion-collapse > .accordion-body {
        padding: 11px;
    }

    .lotaip-months .accordion-button {
        padding: 13px 14px;
        font-size: 13px;
    }

    .lotaip-link {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lotaip-year-item,
    .lotaip-link {
        transition: none;
    }
}
