/* ==========================================================
   MD CREATIVE - SLIDER HERO (solo portada)
   No modifica menu, proyectos, catalogo ni pie de pagina.
   Importar DESPUES de portfolio-white.css.
   ========================================================== */

.hero.md-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(60px, 7vw, 104px);
    background:
        radial-gradient(ellipse at 92% 14%, rgba(80, 139, 246, .15) 0%, transparent 48%),
        linear-gradient(115deg, #ffffff 0%, #f8fbff 48%, #eef5ff 100%);
}

.md-hero .md-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(26px, 4.6vw, 76px);
}

.md-hero .md-hero-content { min-width: 0; }

.md-hero .md-hero-eyebrow {
    color: #1d4ed8;
    letter-spacing: .13em;
    font-weight: 800;
    font-size: clamp(11px, 1vw, 13px);
}

.md-hero .md-hero-heading {
    margin: 20px 0 20px;
    color: #17233c;
    font-size: clamp(39px, 4.25vw, 70px);
    font-weight: 850;
    line-height: 1.10;
    letter-spacing: -.045em;
    overflow-wrap: anywhere;
}

.md-hero .md-hero-heading span { display: block; color: #2459bd; }

.md-hero .md-hero-description {
    max-width: 580px;
    margin: 0 0 22px;
    color: #586b87;
    font-size: clamp(15px, 1.3vw, 18px);
    line-height: 1.75;
}

.md-hero-specialties {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 28px;
}

.md-hero-specialties span {
    border: 1px solid #dce8fc;
    border-radius: 100px;
    padding: 8px 13px;
    background: rgba(237, 245, 255, .84);
    color: #28568e;
    font-size: 12px;
    font-weight: 700;
}

.md-hero .md-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 0;
}

.md-hero .md-hero-actions a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 51px;
    border-radius: 13px;
    text-decoration: none;
}

.md-hero-slider {
    position: relative;
    width: 100%;
    min-width: 0;
    aspect-ratio: 1.19 / 1;
    min-height: 330px;
    max-height: 560px;
    overflow: hidden;
    border-radius: clamp(18px, 2.5vw, 30px);
    border: 1px solid rgba(159, 191, 238, .55);
    background: linear-gradient(135deg, #142c55, #356fc1);
    box-shadow: 0 25px 65px rgba(30, 57, 98, .17);
}

.md-hero-slides, .md-hero-slide { position: absolute; inset: 0; }

.md-hero-slide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .55s ease, visibility .55s ease;
}

.md-hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

.md-hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 26, 50, .02) 19%, rgba(7, 20, 44, .88) 100%);
}

.md-hero-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.md-hero-slide-caption {
    position: absolute;
    bottom: 55px;
    left: clamp(20px, 3vw, 36px);
    right: clamp(20px, 3vw, 36px);
    z-index: 2;
    color: #ffffff;
    text-align: left;
}

.md-hero-slide-caption > span {
    display: block;
    color: #b6d6ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .15em;
    margin-bottom: 10px;
}

.md-hero-slide-caption h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(21px, 2.35vw, 33px);
    line-height: 1.15;
    letter-spacing: -.025em;
    font-weight: 800;
}

.md-hero-slide-caption p {
    margin: 0;
    color: #e4efff;
    font-size: 14px;
    line-height: 1.55;
}

.md-hero-control {
    position: absolute;
    z-index: 3;
    top: 47%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 41px;
    height: 41px;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 50%;
    background: rgba(255, 255, 255, .88);
    color: #1d4ed8;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
    backdrop-filter: blur(6px);
}

.md-hero-control svg { width: 20px; height: 20px; }
.md-hero-control:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.md-hero-control:focus-visible, .md-hero-dots button:focus-visible {
    outline: 3px solid #a9ceff;
    outline-offset: 3px;
}
.md-hero-prev { left: 14px; }
.md-hero-next { right: 14px; }

.md-hero-dots {
    position: absolute;
    z-index: 4;
    bottom: 19px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 9px;
    align-items: center;
}

.md-hero-dots button {
    padding: 0;
    border: 0;
    border-radius: 30px;
    width: 9px;
    height: 9px;
    background: rgba(255, 255, 255, .56);
    cursor: pointer;
    transition: width .2s ease, background .2s ease;
}

.md-hero-dots button.is-active {
    background: #fff;
    width: 27px;
}

@media (max-width: 1020px) {
    .md-hero .md-hero-grid { gap: 26px; }
    .md-hero .md-hero-heading { font-size: clamp(36px, 4.8vw, 54px); }
    .md-hero-slider { min-height: 330px; }
}

@media (max-width: 820px) {
    .md-hero .md-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .md-hero .md-hero-content { order: 1; }
    .md-hero-slider { order: 2; aspect-ratio: 1.55 / 1; min-height: 310px; max-height: none; }
    .md-hero .md-hero-heading { font-size: clamp(38px, 7vw, 58px); }
}

@media (max-width: 520px) {
    .hero.md-hero { padding-block: 53px 68px; }
    .md-hero .md-hero-heading { font-size: clamp(32px, 9vw, 44px); }
    .md-hero .md-hero-actions a { min-height: 47px; }
    .md-hero-slider { aspect-ratio: 1 / 1; min-height: 310px; border-radius: 20px; }
    .md-hero-slide-caption { bottom: 53px; left: 20px; right: 20px; }
    .md-hero-slide-caption h2 { font-size: 23px; }
    .md-hero-slide-caption p { font-size: 12px; }
    .md-hero-control { width: 35px; height: 35px; top: 41%; }
    .md-hero-prev { left: 10px; }
    .md-hero-next { right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .md-hero-slide, .md-hero-control, .md-hero-dots button { transition: none; }
}
