:root {
    --bg: #F5F7FA;
    --fg: #0E3A5B;
    --bc: #073B4C;
    --card: #fff;
    --accent: #F5A524;
    --accentText: #fff;
    --border: #e5e7eb
}

:root.theme-B {
    --bg: #F6F9F7;
    --fg: #143E2E;
    --bc: #143E2E;
    --accent: #FF7A59
}

:root.theme-C {
    --bg: #073B4C;
    --fg: #fff;
    --bc: #073B4C;
    --card: #fff;
    --accent: #C5E11E;
    --accentText: #073B4C;
    --border: #0F466E
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
    background: var(--bg);
    color: var(--fg)
}

a {
    color: inherit;
    text-decoration: none
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px
}

.header {
    position: sticky;
    top: 0;
    backdrop-filter: saturate(1.2) blur(8px);
    background: color-mix(in oklab, #fff 60%, transparent);
    border-bottom: 1px solid #0001;
    z-index: 50
}

.header-inner {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0
}

.nav {
    display: flex;
    gap: 16px;
    font-size: 14px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 600;
    border: 1px solid #0001;
    transition: opacity .2s
}

.btn-accent {
    background: var(--accent);
    color: var(--accentText);
    border-color: transparent
}

.badge {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    border: 1px solid #ffffff55;
    background: #ffffff22;
    font-size: 12px
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent)
}

.grid {
    display: grid;
    gap: 20px
}

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

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

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

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
}
.card>p, .card > div > p, details.card {
    color: var(--bc);
}
.card .img-head {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
}
.card .img-servicios {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
}
.font-semibold {
    font-weight: 600;
}

.section {
    padding: 40px 0
}

h1 {
    font-size: 44px;
    line-height: 1.1;
    margin: 16px 0 8px;
    font-weight: 900;
    letter-spacing: -0.02em;
    text-transform: uppercase
}

h2 {
    font-size: 26px;
    margin: 0 0 16px
}

p {
    margin: 0
}

.hero-img {
    aspect-ratio: 4/3;
    border-radius: 18px;
    box-shadow: 0 10px 30px #0002;
    background: linear-gradient(135deg, #0003, #0001);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff
}
.hero-img img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    object-fit: cover
}

.list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    font-size: 14px
}

.icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--accent);
    margin-bottom: 8px;
}
.icon img {
    width: 24px;
    height: 24px;
    margin: 8px
}

footer {
    border-top: 1px solid #ffffff33;
    margin-top: 24px;
    padding: 32px 0
}

.theme-switch {
    display: inline-flex;
    border: 1px solid #0002;
    border-radius: 12px;
    overflow: hidden
}

.theme-switch button {
    padding: 8px 12px;
    font-size: 14px;
    border: 0;
    background: #fff7
}

.theme-switch button.active {
    background: #0009;
    color: #fff
}

.gallery img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #0001
}

.lightbox {
    position: fixed;
    inset: 0;
    background: #000c;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100
}

.lightbox.open {
    display: flex
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px #0007
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 24px;
    color: #fff;
    font-size: 36px;
    background: none;
    border: 0;
    cursor: pointer
}

input,
textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #cfd4da;
    background: #fff
}

label {
    font-size: 14px;
    display: block
}

.form-row {
    display: grid;
    gap: 16px
}

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

@media (max-width:900px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr
    }

    .list {
        grid-template-columns: 1fr
    }
}