/**
 * Portada pública de Licencias de Conductor.
 * Mantiene el lenguaje visual municipal de OIRS y asegura reflow hasta 320 px.
 */

:root {
    --license-blue: #006fb3;
    --license-blue-dark: #073f70;
    --license-ink: #10233b;
    --license-muted: #5e7186;
    --license-line: #dbe6ed;
    --license-soft: #f4f9fc;
    --license-gold: #f6c84c;
    --license-green: #167958;
    --license-white: #ffffff;
    --license-shadow: 0 18px 45px rgba(7, 63, 112, 0.11);
}

.license-public {
    color: var(--license-ink);
    background: var(--license-white);
    overflow: hidden;
}

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

.license-public a:focus-visible,
.license-public summary:focus-visible {
    outline: 3px solid var(--license-gold);
    outline-offset: 4px;
}

.license-hero {
    position: relative;
    padding: 42px 0 76px;
    color: var(--license-white);
    background: linear-gradient(135deg, var(--license-blue-dark) 0%, var(--license-blue) 58%, #148b88 100%);
}

.license-orb {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.license-orb--one {
    width: 360px;
    height: 360px;
    top: -180px;
    right: 7%;
}

.license-orb--two {
    width: 220px;
    height: 220px;
    left: -90px;
    bottom: -120px;
}

.license-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 42px;
    font-size: 0.93rem;
}

.license-breadcrumb a,
.license-breadcrumb span {
    color: rgba(255, 255, 255, 0.9);
}

.license-breadcrumb a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.license-breadcrumb .material-symbols-outlined {
    font-size: 18px;
}

.license-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
    gap: 60px;
    align-items: center;
}

.license-kicker,
.license-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.license-kicker {
    margin-bottom: 20px;
    color: var(--license-gold);
}

.license-hero h1 {
    max-width: 760px;
    margin: 0;
    color: var(--license-white);
    font-size: clamp(2.45rem, 5vw, 4.8rem);
    font-weight: 850;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.license-hero h1 span {
    color: var(--license-gold);
}

.license-lead {
    max-width: 690px;
    margin: 26px 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.65;
}

.license-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.license-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 20px;
    border: 2px solid transparent;
    border-radius: 12px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
}

.license-button--primary {
    color: var(--license-blue-dark);
    background: var(--license-gold);
}

.license-button--primary:hover {
    color: var(--license-blue-dark);
    background: #ffdb72;
}

.license-button--secondary {
    color: var(--license-white);
    border-color: rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.08);
}

.license-button--secondary:hover {
    color: var(--license-white);
    border-color: var(--license-white);
    background: rgba(255, 255, 255, 0.15);
}

.license-release-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.94rem;
}

.license-hero-card {
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 24px;
    color: var(--license-white);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 50px rgba(0, 32, 62, 0.2);
    backdrop-filter: blur(8px);
}

.license-hero-card__icon {
    display: inline-flex;
    padding: 11px;
    border-radius: 14px;
    color: var(--license-blue-dark);
    background: var(--license-gold);
    font-size: 30px;
}

.license-hero-card .license-eyebrow {
    margin: 22px 0 7px;
    color: var(--license-gold);
}

.license-hero-card h2 {
    margin: 0 0 14px;
    color: var(--license-white);
    font-size: 1.45rem;
    line-height: 1.25;
}

.license-hero-card p {
    margin: 0;
    line-height: 1.6;
}

.license-hero-card__examples {
    margin-top: 14px !important;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.92rem;
}

.license-contact,
.license-services,
.license-priority,
.license-faq,
.license-location {
    padding: 72px 0;
}

.license-contact,
.license-faq {
    background: var(--license-soft);
}

.license-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 36px;
    margin-bottom: 30px;
}

.license-section-heading .license-eyebrow {
    color: var(--license-blue);
}

.license-section-heading h2 {
    margin: 8px 0 0;
    color: var(--license-ink);
    font-size: clamp(1.8rem, 3vw, 2.55rem);
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.license-section-heading > p {
    max-width: 470px;
    margin: 0;
    color: var(--license-muted);
    line-height: 1.6;
}

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

.license-contact-card {
    display: flex;
    gap: 18px;
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--license-line);
    border-radius: 18px;
    background: var(--license-white);
    box-shadow: 0 8px 24px rgba(7, 63, 112, 0.05);
}

.license-contact-card > .material-symbols-outlined {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: var(--license-blue);
    background: #e8f4fa;
}

.license-contact-card h3 {
    margin: 0 0 7px;
    font-size: 1rem;
    font-weight: 800;
}

.license-contact-card p {
    margin: 0 0 5px;
    overflow-wrap: anywhere;
    color: var(--license-muted);
    line-height: 1.5;
}

.license-contact-card a {
    color: var(--license-blue-dark);
    font-weight: 700;
}

.license-service-list,
.license-faq-list {
    display: grid;
    gap: 14px;
}

.license-service,
.license-faq-list details {
    border: 1px solid var(--license-line);
    border-radius: 18px;
    background: var(--license-white);
    box-shadow: 0 7px 25px rgba(7, 63, 112, 0.05);
    overflow: hidden;
}

.license-service summary,
.license-faq-list summary {
    min-height: 64px;
    cursor: pointer;
    list-style: none;
}

.license-service summary::-webkit-details-marker,
.license-faq-list summary::-webkit-details-marker {
    display: none;
}

.license-service summary {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto 28px;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
}

.license-service__icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--license-blue);
    background: #e8f4fa;
}

.license-service__heading {
    min-width: 0;
}

.license-service__heading strong,
.license-service__heading small {
    display: block;
}

.license-service__heading strong {
    color: var(--license-ink);
    font-size: 1.14rem;
    font-weight: 850;
}

.license-service__heading small {
    margin-top: 3px;
    color: var(--license-muted);
    font-size: 0.91rem;
    line-height: 1.4;
}

.license-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
}

.license-chip--online {
    color: #075b43;
    background: #daf3e8;
}

.license-chip--onsite {
    color: #714f00;
    background: #fff0be;
}

.license-service__arrow {
    transition: transform 180ms ease;
}

.license-service[open] .license-service__arrow {
    transform: rotate(180deg);
}

.license-service__body {
    padding: 0 24px 26px 92px;
    border-top: 1px solid var(--license-line);
}

.license-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 22px 0;
}

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

.license-facts > div {
    padding: 16px;
    border-radius: 13px;
    background: var(--license-soft);
}

.license-facts span,
.license-facts strong {
    display: block;
}

.license-facts span {
    margin-bottom: 5px;
    color: var(--license-muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.license-facts strong {
    color: var(--license-blue-dark);
    line-height: 1.35;
}

.license-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
}

.license-service__body h3 {
    margin: 18px 0 10px;
    font-size: 1rem;
    font-weight: 850;
}

.license-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
}

.license-checklist li {
    position: relative;
    padding: 7px 0 7px 29px;
    line-height: 1.55;
}

.license-checklist li::before {
    content: "✓";
    position: absolute;
    top: 7px;
    left: 0;
    color: var(--license-green);
    font-weight: 900;
}

.license-note,
.license-inline-action {
    margin: 20px 0 0;
    padding: 16px 18px;
    border-left: 4px solid var(--license-blue);
    border-radius: 0 12px 12px 0;
    background: var(--license-soft);
    line-height: 1.55;
}

.license-inline-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.license-inline-action p {
    margin: 0;
}

.license-inline-action a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    color: var(--license-blue-dark);
    font-weight: 850;
}

.license-fee-note {
    margin: 22px 0 0;
    color: var(--license-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.license-priority {
    background: var(--license-white);
}

.license-priority-card {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 54px;
    align-items: start;
    padding: 38px;
    border-radius: 24px;
    color: var(--license-white);
    background: linear-gradient(145deg, var(--license-blue-dark), var(--license-blue));
    box-shadow: var(--license-shadow);
}

.license-priority .license-eyebrow {
    color: var(--license-gold);
}

.license-priority h2 {
    margin: 9px 0 16px;
    color: var(--license-white);
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    line-height: 1.15;
}

.license-priority p {
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.65;
}

.license-priority-card__icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 15px;
    color: var(--license-blue-dark);
    background: var(--license-gold);
}

.license-priority-card__details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.license-priority-card__details > div {
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
}

.license-priority-card__details span,
.license-priority-card__details strong {
    display: block;
}

.license-priority-card__details span {
    margin-bottom: 7px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    font-weight: 700;
}

.license-priority-card__details strong {
    color: var(--license-white);
    font-size: 1.1rem;
}

.license-priority-card__details > p {
    grid-column: 1 / -1;
    margin: 4px 0 0;
}

.license-support-callout {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-top: 16px;
    padding: 20px 24px;
    border: 1px solid #edd98d;
    border-radius: 16px;
    background: #fff8dc;
}

.license-support-callout > .material-symbols-outlined {
    color: #805e00;
}

.license-support-callout p {
    margin: 0;
    color: var(--license-ink);
}

.license-faq-list summary {
    position: relative;
    display: flex;
    align-items: center;
    padding: 18px 58px 18px 22px;
    color: var(--license-ink);
    font-weight: 800;
    line-height: 1.45;
}

.license-faq-list summary::after {
    content: "+";
    position: absolute;
    right: 22px;
    font-size: 1.55rem;
    color: var(--license-blue);
}

.license-faq-list details[open] summary::after {
    content: "−";
}

.license-faq-answer {
    padding: 0 22px 20px;
    color: var(--license-muted);
    line-height: 1.65;
}

.license-faq-answer p,
.license-faq-answer ul {
    margin-top: 0;
}

.license-faq-list details > p,
.license-faq-list details > div {
    margin: 0;
    padding: 0 22px 20px;
    color: var(--license-muted);
    line-height: 1.65;
}

.license-faq-list details > div p:first-child {
    margin-top: 0;
}

.license-location-card {
    display: grid;
    grid-template-columns: minmax(290px, 0.65fr) minmax(0, 1.35fr);
    align-items: stretch;
    border: 1px solid var(--license-line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--license-shadow);
}

.license-location-card__text {
    padding: 32px;
    color: var(--license-white);
    background: linear-gradient(145deg, var(--license-blue-dark), var(--license-blue));
}

.license-location-card__text .license-eyebrow {
    color: var(--license-gold);
}

.license-location-card__text h2 {
    margin: 10px 0 18px;
    color: var(--license-white);
    font-size: 2rem;
}

.license-location-card__text p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.65;
}

.license-location-card__text a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    color: var(--license-white);
    font-weight: 800;
}

.license-map {
    min-height: 380px;
    background: var(--license-soft);
}

.license-map iframe {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: 0;
}

@media (max-width: 991.98px) {
    .license-hero__grid,
    .license-priority-card,
    .license-location-card {
        grid-template-columns: 1fr;
    }

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

    .license-hero-card {
        max-width: 680px;
    }
}

@media (max-width: 767.98px) {
    .license-hero {
        padding: 24px 0 52px;
    }

    .license-breadcrumb {
        margin-bottom: 28px;
    }

    .license-hero__grid {
        gap: 34px;
    }

    .license-contact,
    .license-services,
    .license-priority,
    .license-faq,
    .license-location {
        padding: 52px 0;
    }

    .license-section-heading {
        display: block;
    }

    .license-section-heading > p {
        margin-top: 14px;
    }

    .license-contact-grid,
    .license-columns,
    .license-facts,
    .license-facts--three,
    .license-priority-card__details {
        grid-template-columns: 1fr;
    }

    .license-service summary {
        grid-template-columns: 46px minmax(0, 1fr) 26px;
        gap: 12px;
        padding: 17px;
    }

    .license-chip {
        grid-column: 2;
        justify-self: start;
    }

    .license-service__arrow {
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    .license-service__body {
        padding: 0 17px 22px;
    }

    .license-inline-action {
        display: block;
    }

    .license-inline-action a {
        margin-top: 12px;
    }

    .license-map,
    .license-map iframe {
        min-height: 320px;
    }
}

@media (max-width: 379.98px) {
    .license-actions,
    .license-button {
        width: 100%;
    }

    .license-hero-card,
    .license-location-card__text,
    .license-priority-card,
    .license-contact-card {
        padding: 20px;
    }

    .license-service summary {
        grid-template-columns: minmax(0, 1fr) 26px;
    }

    .license-service__icon {
        display: none;
    }

    .license-service__heading,
    .license-chip {
        grid-column: 1;
    }

    .license-service__arrow {
        grid-column: 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    .license-service__arrow {
        transition: none;
    }
}
