/* DWC - Cursos presenciales */

.dwc-pc-page {
    --dwc-pc-green: #208b89;
    --dwc-pc-green-dark: #176f6d;
    --dwc-pc-green-soft: #e7f4f1;
    --dwc-pc-ink: #263449;
    --dwc-pc-muted: #667386;
    --dwc-pc-cream: #fbf7f1;
    --dwc-pc-line: #dce6e4;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    color: var(--dwc-pc-ink);
    font-family: inherit;
}

.dwc-pc-page *,
.dwc-pc-page *::before,
.dwc-pc-page *::after {
    box-sizing: border-box;
}

.dwc-pc-shell {
    width: min(1280px, calc(100% - 48px));
    margin-inline: auto;
}

.dwc-pc-kicker {
    margin: 0 0 12px;
    color: var(--dwc-pc-green);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
}

.dwc-pc-hero {
    position: relative;
    isolation: isolate;
    padding: clamp(75px, 8vw, 125px) 0;
    background:
        radial-gradient(circle at 82% 18%, rgba(255,255,255,.95) 0 7%, transparent 7.5%),
        linear-gradient(125deg, #eef8f5 0%, #dcefeb 53%, #fbf5ed 100%);
}

.dwc-pc-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .28;
    background-image: radial-gradient(rgba(32,139,137,.36) 1px, transparent 1px);
    background-size: 25px 25px;
    mask-image: linear-gradient(90deg, #000, transparent 55%);
}

.dwc-pc-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
    align-items: center;
    gap: clamp(50px, 7vw, 100px);
}

.dwc-pc-hero h1 {
    max-width: 760px;
    margin: 0;
    color: var(--dwc-pc-ink);
    font-size: clamp(43px, 5.2vw, 76px);
    font-weight: 500;
    line-height: 1.03;
    letter-spacing: -.035em;
}

.dwc-pc-hero__lead {
    max-width: 690px;
    margin: 24px 0 0;
    color: #4b586b;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.6;
}

.dwc-pc-hero__features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 28px 0 32px;
}

.dwc-pc-hero__features span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(32,139,137,.22);
    font-size: 14px;
}

.dwc-pc-hero__features span::before {
    content: "✓";
    color: var(--dwc-pc-green);
    font-weight: 800;
}

.dwc-pc-hero__collage {
    position: relative;
    min-height: 470px;
}

.dwc-pc-hero__photo {
    position: absolute;
    display: block;
    object-fit: cover;
    background: #fff;
    border: 8px solid #fff;
    box-shadow: 0 24px 55px rgba(34,73,77,.18);
}

.dwc-pc-hero__photo--1 {
    width: 63%;
    height: 68%;
    top: 2%;
    left: 2%;
    transform: rotate(-4deg);
}

.dwc-pc-hero__photo--2 {
    z-index: 2;
    width: 59%;
    height: 61%;
    right: 0;
    bottom: 1%;
    transform: rotate(4deg);
}

.dwc-pc-hero__photo--3 {
    z-index: 3;
    width: 43%;
    height: 43%;
    right: 4%;
    top: 0;
    transform: rotate(7deg);
}

.dwc-pc-button {
    display: inline-flex !important;
    min-height: 48px !important;
    align-items: center;
    justify-content: center;
    padding: 12px 24px !important;
    border: 1px solid var(--dwc-pc-green) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    text-align: center;
    text-decoration: none !important;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.dwc-pc-button--primary {
    background: var(--dwc-pc-green) !important;
    color: #fff !important;
}

.dwc-pc-button--primary:hover,
.dwc-pc-button--primary:focus {
    background: var(--dwc-pc-green-dark) !important;
    border-color: var(--dwc-pc-green-dark) !important;
    color: #fff !important;
}

.dwc-pc-button--outline {
    background: transparent !important;
    color: var(--dwc-pc-green) !important;
}

.dwc-pc-button--outline:hover,
.dwc-pc-button--outline:focus {
    background: var(--dwc-pc-green-soft) !important;
    color: var(--dwc-pc-green-dark) !important;
}

.dwc-pc-upcoming,
.dwc-pc-history,
.dwc-pc-organize {
    scroll-margin-top: 110px;
}

.dwc-pc-upcoming {
    padding: clamp(75px, 8vw, 115px) 0;
    background: #fff;
}

.dwc-pc-heading {
    max-width: 780px;
    margin: 0 auto 46px;
    text-align: center;
}

.dwc-pc-heading h2,
.dwc-pc-organize h2 {
    margin: 0;
    color: var(--dwc-pc-ink);
    font-size: clamp(35px, 4vw, 52px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -.025em;
}

.dwc-pc-heading > p:last-child,
.dwc-pc-organize p {
    margin: 16px 0 0;
    color: var(--dwc-pc-muted);
    font-size: 17px;
    line-height: 1.65;
}

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

.dwc-pc-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--dwc-pc-line);
    box-shadow: 0 10px 32px rgba(35,58,65,.08);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.dwc-pc-card:hover {
    transform: translateY(-5px);
    border-color: rgba(32,139,137,.48);
    box-shadow: 0 20px 48px rgba(35,58,65,.14);
}

.dwc-pc-card__image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--dwc-pc-green-soft);
}

.dwc-pc-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    transition: transform .45s ease;
}

.dwc-pc-card:hover .dwc-pc-card__image img {
    transform: scale(1.035);
}

.dwc-pc-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: var(--dwc-pc-green);
    font-size: 80px;
}

.dwc-pc-card__date {
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 9px 13px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(32,139,137,.28);
    color: var(--dwc-pc-green-dark);
    font-size: 13px;
    font-weight: 700;
}

.dwc-pc-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 29px;
}

.dwc-pc-card h3 {
    margin: 0;
    color: var(--dwc-pc-ink);
    font-size: clamp(26px, 2.5vw, 34px);
    font-weight: 600;
    line-height: 1.14;
}

.dwc-pc-card__excerpt {
    margin: 16px 0 0;
    color: var(--dwc-pc-muted);
    font-size: 15px;
    line-height: 1.65;
}

.dwc-pc-card__facts {
    display: grid;
    gap: 0;
    margin-top: 23px;
    border-top: 1px solid var(--dwc-pc-line);
}

.dwc-pc-card__facts p {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 15px;
    margin: 0;
    padding: 11px 0;
    border-bottom: 1px solid var(--dwc-pc-line);
    font-size: 14px;
    line-height: 1.45;
}

.dwc-pc-card__facts strong {
    color: var(--dwc-pc-green-dark);
}

.dwc-pc-card__facts span {
    color: var(--dwc-pc-ink);
}

.dwc-pc-card__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 23px;
}

.dwc-pc-card__contacts {
    margin-top: 14px;
    border: 1px solid var(--dwc-pc-line);
    background: #fcfdfd;
}

.dwc-pc-card__contacts summary {
    padding: 13px 15px;
    color: var(--dwc-pc-green-dark);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.dwc-pc-card__contacts > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 15px 15px;
}

.dwc-pc-card__contacts a {
    display: inline-flex;
    padding: 7px 10px;
    background: var(--dwc-pc-green-soft);
    color: var(--dwc-pc-green-dark) !important;
    font-size: 13px;
    text-decoration: none !important;
}

.dwc-pc-card__contacts a:hover,
.dwc-pc-card__contacts a:focus {
    background: var(--dwc-pc-green);
    color: #fff !important;
}

.dwc-pc-card__contacts .dwc-pc-card__whatsapp {
    background: #e6f7ec;
    color: #16733c !important;
}

.dwc-pc-empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding: clamp(30px, 5vw, 55px);
    background: var(--dwc-pc-green-soft);
    border: 1px solid rgba(32,139,137,.25);
}

.dwc-pc-empty h3 {
    margin: 0;
    color: var(--dwc-pc-ink);
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 500;
}

.dwc-pc-empty > div > p:last-child {
    max-width: 700px;
    margin: 13px 0 0;
    color: var(--dwc-pc-muted);
    font-size: 16px;
}

.dwc-pc-organize {
    padding: clamp(65px, 7vw, 95px) 0;
    background: var(--dwc-pc-cream);
}

.dwc-pc-organize__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.dwc-pc-organize__inner > div {
    max-width: 820px;
}

.dwc-pc-organize__inner > a {
    flex: 0 0 auto;
}

.dwc-pc-history {
    padding: clamp(75px, 8vw, 115px) 0;
    background: #fff;
}

.dwc-pc-gallery {
    display: grid;
    grid-auto-flow: dense;
    grid-auto-rows: 180px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.dwc-pc-gallery__item {
    position: relative;
    display: block;
    min-width: 0;
    overflow: hidden;
    padding: 0 !important;
    background: var(--dwc-pc-green-soft) !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    cursor: zoom-in;
}

.dwc-pc-gallery__item:nth-child(9n + 1),
.dwc-pc-gallery__item:nth-child(9n + 6) {
    grid-column: span 2;
    grid-row: span 2;
}

.dwc-pc-gallery__item img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    transition: transform .4s ease, filter .3s ease;
}

.dwc-pc-gallery__item > span {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    transform: translate(-50%, -50%) scale(.72);
    background: rgba(255,255,255,.94);
    color: var(--dwc-pc-green);
    font-size: 30px;
    line-height: 1;
    opacity: 0;
    transition: opacity .25s ease, transform .25s ease;
}

.dwc-pc-gallery__item:hover img,
.dwc-pc-gallery__item:focus img {
    transform: scale(1.045);
    filter: brightness(.78);
}

.dwc-pc-gallery__item:hover > span,
.dwc-pc-gallery__item:focus > span {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.dwc-pc-lightbox {
    width: min(1100px, calc(100% - 30px));
    max-width: none;
    height: min(820px, calc(100% - 30px));
    max-height: none;
    padding: 25px 72px;
    background: #111820;
    border: 0;
    color: #fff;
    overflow: hidden;
}

.dwc-pc-lightbox::backdrop {
    background: rgba(10,16,22,.88);
    backdrop-filter: blur(4px);
}

.dwc-pc-lightbox[open] {
    display: grid;
    place-items: center;
}

.dwc-pc-lightbox figure {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    margin: 0;
}

.dwc-pc-lightbox figure img {
    display: block;
    max-width: 100%;
    max-height: calc(100% - 44px);
    margin: 0;
    object-fit: contain;
}

.dwc-pc-lightbox figcaption {
    min-height: 34px;
    padding-top: 12px;
    color: rgba(255,255,255,.8);
    font-size: 14px;
    text-align: center;
}

.dwc-pc-lightbox button {
    position: absolute;
    z-index: 2;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0 !important;
    background: rgba(255,255,255,.1) !important;
    border: 1px solid rgba(255,255,255,.25) !important;
    border-radius: 0 !important;
    color: #fff !important;
    font-size: 31px !important;
    line-height: 1 !important;
    cursor: pointer;
}

.dwc-pc-lightbox button:hover,
.dwc-pc-lightbox button:focus {
    background: var(--dwc-pc-green) !important;
}

.dwc-pc-lightbox__close {
    top: 15px;
    right: 15px;
}

.dwc-pc-lightbox__prev,
.dwc-pc-lightbox__next {
    top: 50%;
    transform: translateY(-50%);
}

.dwc-pc-lightbox__prev {
    left: 14px;
}

.dwc-pc-lightbox__next {
    right: 14px;
}

.dwc-pc-page a:focus-visible,
.dwc-pc-page button:focus-visible,
.dwc-pc-page summary:focus-visible {
    outline: 3px solid rgba(32,139,137,.32);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .dwc-pc-page *,
    .dwc-pc-page *::before,
    .dwc-pc-page *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

@media (max-width: 1024px) {
    .dwc-pc-hero__inner {
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 38px;
    }

    .dwc-pc-hero__collage {
        min-height: 390px;
    }

    .dwc-pc-gallery {
        grid-auto-rows: 170px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dwc-pc-gallery__item:nth-child(9n + 1),
    .dwc-pc-gallery__item:nth-child(9n + 6) {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 767px) {
    .dwc-pc-shell {
        width: min(100% - 30px, 1280px);
    }

    .dwc-pc-hero {
        padding: 65px 0 55px;
    }

    .dwc-pc-hero__inner,
    .dwc-pc-grid {
        grid-template-columns: 1fr;
    }

    .dwc-pc-hero__collage {
        min-height: 330px;
    }

    .dwc-pc-hero__photo {
        border-width: 5px;
    }

    .dwc-pc-card__content {
        padding: 23px;
    }

    .dwc-pc-card__actions {
        grid-template-columns: 1fr;
    }

    .dwc-pc-empty,
    .dwc-pc-organize__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .dwc-pc-empty > a,
    .dwc-pc-organize__inner > a {
        width: 100%;
    }

    .dwc-pc-gallery {
        grid-auto-rows: 155px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .dwc-pc-lightbox {
        padding: 55px 12px 20px;
    }

    .dwc-pc-lightbox__prev,
    .dwc-pc-lightbox__next {
        top: auto;
        bottom: 14px;
        transform: none;
    }

    .dwc-pc-lightbox__prev {
        left: calc(50% - 52px);
    }

    .dwc-pc-lightbox__next {
        right: calc(50% - 52px);
    }
}

@media (max-width: 420px) {
    .dwc-pc-hero__collage {
        min-height: 285px;
    }

    .dwc-pc-card__facts p {
        grid-template-columns: 68px 1fr;
    }

    .dwc-pc-gallery {
        grid-auto-rows: 130px;
    }
}

