
/* =====================================================
   HAZLO POSIBLE V3
   Unidad visual con Home V4.9
===================================================== */

:root {
    --hp3-blue: #0D2366;
    --hp3-deep: #071946;
    --hp3-coral: #FF4D52;
    --hp3-ivory: #F7F5F1;
    --hp3-light-blue: #A7B8E8;
    --hp3-white: #FFFFFF;
}

html {
    scroll-behavior: smooth;
}

.dm-hp3-page header,
.dm-hp3-page .header-area,
.dm-hp3-page .navbar {
    background: var(--hp3-deep) !important;
}

.dm-hp3-container {
    padding-left: 5vw;
    padding-right: 5vw;
}

.dm-hp3-kicker {
    display: block;
    font-family: var(--alt-font);
    font-size: 10px;
    line-height: 15px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: rgba(255,255,255,.78);
}

.dm-hp3-kicker-coral {
    color: var(--hp3-coral);
}

/* -----------------------------
   HERO
------------------------------ */
.dm-hp3-hero {
    background: var(--hp3-blue);
    color: #fff;
    overflow: hidden;
}

.dm-hp3-hero-copy {
    min-height: 720px;
    display: flex;
    align-items: center;
    background: var(--hp3-blue);
}

.dm-hp3-hero-copy-inner {
    width: 100%;
    padding: 92px 6vw 88px 5vw;
}

.dm-hp3-hero h1 {
    max-width: 820px;
    margin: 20px 0 28px;
    color: #fff;
    font-size: clamp(4rem, 6.2vw, 7.1rem);
    line-height: .91;
    letter-spacing: -5.2px;
}

.dm-hp3-lead {
    max-width: 700px;
    margin-bottom: 38px;
    color: rgba(255,255,255,.78);
    font-size: 18px;
    line-height: 30px;
}

.dm-hp3-routes {
    max-width: 760px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid rgba(255,255,255,.30);
    border-bottom: 1px solid rgba(255,255,255,.30);
}

.dm-hp3-route {
    min-height: 92px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 18px 20px 18px 0;
    color: #fff;
    transition: background .3s ease, padding .3s ease;
}

.dm-hp3-route + .dm-hp3-route {
    padding-left: 22px;
    border-left: 1px solid rgba(255,255,255,.30);
}

.dm-hp3-route:hover {
    background: rgba(255,77,82,.95);
    padding-left: 18px;
}

.dm-hp3-route + .dm-hp3-route:hover {
    padding-left: 38px;
}

.dm-hp3-route-number {
    font-family: var(--alt-font);
    font-size: 11px;
    color: rgba(255,255,255,.58);
}

.dm-hp3-route-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dm-hp3-route-copy small {
    font-size: 9px;
    letter-spacing: 1.7px;
    color: rgba(255,255,255,.66);
}

.dm-hp3-route-copy strong {
    font-family: var(--alt-font);
    font-size: 15px;
    line-height: 19px;
    font-weight: 600;
    color: #fff;
}

.dm-hp3-route i {
    font-size: 12px;
    color: #fff;
    transition: transform .3s ease;
}

.dm-hp3-route:hover i {
    transform: translateY(4px);
}

/* Hero image */
.dm-hp3-hero-visual {
    position: relative;
    min-height: 720px;
    background:
        linear-gradient(180deg, rgba(7,25,70,.05), rgba(7,25,70,.42)),
        url("../images/dm-hazlo-home.jpg") center center / cover no-repeat,
        var(--hp3-deep);
}

.dm-hp3-camera-ui {
    position: absolute;
    inset: 36px;
    z-index: 2;
    border: 1px solid rgba(255,255,255,.42);
}

.dm-hp3-hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(13,35,102,.16), rgba(7,25,70,.12));
    pointer-events: none;
}

.dm-hp3-rec {
    position: absolute;
    left: 24px;
    top: 22px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--alt-font);
    font-size: 9px;
    letter-spacing: 1.7px;
    color: #fff;
}

.dm-hp3-rec i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hp3-coral);
    animation: hp3Rec 2.6s ease-in-out infinite;
}

@keyframes hp3Rec {
    0%,100% { opacity: .42; }
    50% { opacity: 1; }
}

.dm-hp3-corner {
    position: absolute;
    width: 28px;
    height: 28px;
}

.dm-hp3-tl { left: 20px; top: 20px; border-left: 1px solid #fff; border-top: 1px solid #fff; }
.dm-hp3-tr { right: 20px; top: 20px; border-right: 1px solid #fff; border-top: 1px solid #fff; }
.dm-hp3-bl { left: 20px; bottom: 20px; border-left: 1px solid #fff; border-bottom: 1px solid #fff; }
.dm-hp3-br { right: 20px; bottom: 20px; border-right: 1px solid #fff; border-bottom: 1px solid #fff; }

.dm-hp3-image-caption {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    color: #fff;
}

.dm-hp3-image-caption span {
    display: block;
    margin-bottom: 7px;
    font-size: 9px;
    letter-spacing: 1.9px;
}

.dm-hp3-image-caption strong {
    display: block;
    max-width: 470px;
    font-family: var(--alt-font);
    font-size: clamp(2.3rem, 3.2vw, 4rem);
    line-height: .98;
    font-weight: 500;
    letter-spacing: -2px;
}

/* -----------------------------
   PREPÁRATE
------------------------------ */
.dm-hp3-preparate {
    padding: 115px 0 125px;
    background: var(--hp3-ivory);
}

.dm-hp3-section-head {
    margin-bottom: 55px;
}

.dm-hp3-preparate h2 {
    max-width: 800px;
    margin: 16px 0 0;
    color: var(--hp3-blue);
    font-size: clamp(3.5rem, 5vw, 5.6rem);
    line-height: .96;
    letter-spacing: -4px;
}

.dm-hp3-section-head p {
    color: #50596a;
    font-size: 16px;
    line-height: 27px;
    margin-bottom: 20px;
}

.dm-hp3-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dm-hp3-tags span {
    padding: 7px 11px;
    border: 1px solid rgba(13,35,102,.16);
    font-size: 10px;
    line-height: 12px;
    letter-spacing: .7px;
    color: var(--hp3-blue);
    background: rgba(255,255,255,.42);
}

.dm-hp3-video-card {
    height: 100%;
}

.dm-hp3-video-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--hp3-deep);
}

.dm-hp3-video-thumb::before,
.dm-hp3-video-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    transition: transform .45s ease, opacity .35s ease;
}

.dm-hp3-video-self::before {
    background:
        radial-gradient(circle at 68% 35%, rgba(255,77,82,.46), transparent 23%),
        linear-gradient(135deg, #071946, #173a88);
}

.dm-hp3-video-light::before {
    background:
        radial-gradient(circle at 48% 42%, rgba(255,255,255,.52), transparent 15%),
        radial-gradient(circle at 50% 45%, rgba(255,77,82,.25), transparent 34%),
        linear-gradient(135deg, #10265f, #071946);
}

.dm-hp3-video-sound::before {
    background:
        repeating-linear-gradient(90deg, transparent 0 17px, rgba(167,184,232,.16) 17px 19px),
        linear-gradient(135deg, #071946, #0D2366);
}

.dm-hp3-video-thumb::after {
    inset: 18px;
    border: 1px solid rgba(255,255,255,.26);
}

.dm-hp3-video-thumb:hover::before {
    transform: scale(1.035);
}

.dm-hp3-video-icon {
    position: absolute;
    left: 28px;
    top: 27px;
    z-index: 3;
    font-size: 34px;
    color: rgba(255,255,255,.30);
}

.dm-hp3-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 4;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    transform: translate(-50%,-50%);
    border-radius: 50%;
    color: var(--hp3-blue);
    background: #fff;
    transition: transform .3s ease, background .3s ease, color .3s ease;
}

.dm-hp3-video-thumb:hover .dm-hp3-play {
    transform: translate(-50%,-50%) scale(1.08);
    color: #fff;
    background: var(--hp3-coral);
}

.dm-hp3-frame-label {
    position: absolute;
    left: 30px;
    bottom: 27px;
    z-index: 4;
    font-size: 9px;
    letter-spacing: 1.6px;
    color: rgba(255,255,255,.72);
}

.dm-hp3-video-meta {
    padding: 20px 2px 0;
}

.dm-hp3-video-meta > span {
    display: block;
    margin-bottom: 8px;
    font-size: 9px;
    letter-spacing: 1.6px;
    color: var(--hp3-coral);
}

.dm-hp3-video-meta h3 {
    margin-bottom: 9px;
    color: var(--hp3-blue);
    font-size: 22px;
    line-height: 27px;
    letter-spacing: -.8px;
}

.dm-hp3-video-meta p {
    margin: 0;
    color: #6a7080;
    font-size: 14px;
    line-height: 23px;
}

/* -----------------------------
   CONÉCTATE
------------------------------ */
.dm-hp3-connect {
    padding: 120px 0 125px;
    color: #fff;
    background: var(--hp3-deep);
    overflow: hidden;
}

.dm-hp3-connect h2 {
    margin: 17px 0 0;
    color: #fff;
    font-size: clamp(3.5rem, 5vw, 5.8rem);
    line-height: .95;
    letter-spacing: -4px;
}

.dm-hp3-connect-lead {
    max-width: 690px;
    color: rgba(255,255,255,.80);
    font-size: 18px;
    line-height: 30px;
    margin-bottom: 35px;
}

.dm-hp3-connect-panel {
    position: relative;
    min-height: 320px;
    padding: 38px;
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 28px;
    align-items: center;
    border: 1px solid rgba(255,255,255,.20);
    background: rgba(13,35,102,.42);
    overflow: hidden;
}

.dm-hp3-coming {
    display: inline-block;
    margin-bottom: 18px;
    padding: 7px 10px;
    border: 1px solid rgba(255,77,82,.65);
    color: var(--hp3-coral);
    font-size: 9px;
    letter-spacing: 1.8px;
}

.dm-hp3-connect-panel h3 {
    max-width: 480px;
    color: #fff;
    font-size: 29px;
    line-height: 34px;
    letter-spacing: -1px;
}

.dm-hp3-connect-panel p {
    max-width: 520px;
    color: rgba(255,255,255,.64);
    font-size: 14px;
    line-height: 24px;
    margin-bottom: 0;
}

.dm-hp3-orbit {
    position: relative;
    width: 220px;
    height: 220px;
    justify-self: end;
}

.dm-hp3-orbit-ring,
.dm-hp3-orbit-dot {
    position: absolute;
    border-radius: 50%;
}

.dm-hp3-orbit-ring {
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    border: 1px solid rgba(167,184,232,.24);
}

.dm-hp3-ring-1 {
    width: 190px;
    height: 190px;
}

.dm-hp3-ring-2 {
    width: 112px;
    height: 112px;
}

.dm-hp3-orbit::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translate(-50%,-50%);
    border-radius: 50%;
    background: var(--hp3-coral);
    box-shadow: 0 0 0 10px rgba(255,77,82,.08);
}

.dm-hp3-orbit-dot {
    width: 8px;
    height: 8px;
    background: var(--hp3-light-blue);
}

.dm-hp3-dot-1 { left: 15px; top: 106px; }
.dm-hp3-dot-2 { right: 30px; top: 34px; }
.dm-hp3-dot-3 { right: 48px; bottom: 23px; }

/* -----------------------------
   CIERRE
------------------------------ */
.dm-hp3-close {
    padding: 105px 0 115px;
    background: #fff;
}

.dm-hp3-close h2 {
    max-width: 900px;
    margin: 16px 0 0;
    color: var(--hp3-blue);
    font-size: clamp(3.5rem, 5.5vw, 6.3rem);
    line-height: .94;
    letter-spacing: -4.5px;
}

.dm-hp3-close-actions {
    display: flex;
    justify-content: flex-end;
    gap: 28px;
    flex-wrap: wrap;
    padding-bottom: 8px;
}

.dm-hp3-close-actions a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--hp3-blue);
    font-family: var(--alt-font);
    font-size: 14px;
    font-weight: 600;
}

.dm-hp3-close-actions a:hover {
    color: var(--hp3-coral);
}

/* -----------------------------
   RESPONSIVE
------------------------------ */
@media (max-width: 1199px) {
    .dm-hp3-container {
        padding-left: 4vw;
        padding-right: 4vw;
    }

    .dm-hp3-connect-panel {
        grid-template-columns: 1fr 190px;
    }

    .dm-hp3-orbit {
        width: 185px;
        height: 185px;
        transform: scale(.85);
    }
}

@media (max-width: 991px) {
    .dm-hp3-hero-copy,
    .dm-hp3-hero-visual {
        min-height: auto;
    }

    .dm-hp3-hero-copy-inner {
        padding: 82px 7vw 70px;
    }

    .dm-hp3-hero-visual {
        min-height: 560px;
    }

    .dm-hp3-preparate,
    .dm-hp3-connect {
        padding-top: 92px;
        padding-bottom: 98px;
    }

    .dm-hp3-section-head .col-lg-5 {
        margin-top: 28px;
    }

    .dm-hp3-connect-content {
        margin-top: 35px;
    }

    .dm-hp3-close-actions {
        justify-content: flex-start;
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .dm-hp3-container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .dm-hp3-hero-copy-inner {
        padding: 68px 24px 58px;
    }

    .dm-hp3-hero h1 {
        font-size: 3.55rem;
        line-height: .94;
        letter-spacing: -2.7px;
    }

    .dm-hp3-lead {
        font-size: 15px;
        line-height: 25px;
        margin-bottom: 30px;
    }

    .dm-hp3-routes {
        grid-template-columns: 1fr;
    }

    .dm-hp3-route {
        min-height: 76px;
        padding: 14px 0;
    }

    .dm-hp3-route + .dm-hp3-route {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,.30);
    }

    .dm-hp3-route:hover,
    .dm-hp3-route + .dm-hp3-route:hover {
        padding-left: 14px;
    }

    .dm-hp3-hero-visual {
        min-height: 430px;
        background-position: center center;
    }

    .dm-hp3-camera-ui {
        inset: 22px;
    }

    .dm-hp3-image-caption strong {
        font-size: 2.4rem;
    }

    .dm-hp3-preparate {
        padding: 78px 0 82px;
    }

    .dm-hp3-preparate h2,
    .dm-hp3-connect h2,
    .dm-hp3-close h2 {
        font-size: 3.25rem;
        letter-spacing: -2.4px;
    }

    .dm-hp3-video-grid > div + div {
        margin-top: 12px;
    }

    .dm-hp3-connect {
        padding: 82px 0 88px;
    }

    .dm-hp3-connect-lead {
        font-size: 16px;
        line-height: 27px;
    }

    .dm-hp3-connect-panel {
        min-height: auto;
        padding: 28px;
        grid-template-columns: 1fr;
    }

    .dm-hp3-orbit {
        width: 180px;
        height: 180px;
        justify-self: center;
        margin-top: 5px;
    }

    .dm-hp3-close {
        padding: 78px 0 84px;
    }
}

/* Touch: no depender del hover */
@media (hover: none) and (pointer: coarse) {
    .dm-hp3-route:hover {
        background: transparent;
        padding-left: 0;
    }

    .dm-hp3-route + .dm-hp3-route:hover {
        padding-left: 0;
    }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .dm-hp3-rec i {
        animation: none;
    }

    .dm-hp3-video-thumb::before,
    .dm-hp3-play,
    .dm-hp3-route,
    .dm-hp3-route i {
        transition: none;
    }
}
