/* =========================================================
   WONDERWORLD · MANTENIMIENTO
   Estilo alineado al home (index) y compatible con Bootstrap
   ========================================================= */

/* RESET BÁSICO */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

/* ================= TIPOGRAFÍA Y BASE ================= */

body.ww-body {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #ffffff;
    color: #1e2445;
}

/* ================= HEADER + NAVBAR ================= */

.ww-header {
    position: sticky;
    top: 0;
    z-index: 50;
}

/* Nav principal */
.ww-navbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-block: 0.4rem;
}

/* Marca / logo */

.ww-brand {
    text-decoration: none;
}

.ww-logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 16px;
    background: #0b2147;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e0f2ff;
    font-weight: 700;
    font-size: 1.3rem;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.4);
}

.ww-logo-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.1;
}

.ww-logo-text strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ww-logo-text span {
    display: block;
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Toggler personalizado (hamburguesa) */

.ww-navbar-toggler {
    border-color: rgba(15, 23, 42, 0.25);
    padding: 0.2rem 0.45rem;
}

.ww-navbar-toggler:focus {
    box-shadow: 0 0 0 0.15rem rgba(11, 99, 214, 0.32);
}

.ww-navbar-toggler-icon {
    background-image: none;
    width: 1.3rem;
    height: 1.3rem;
    position: relative;
}

.ww-navbar-toggler-icon::before,
.ww-navbar-toggler-icon::after,
.ww-navbar-toggler-icon span {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background-color: #0b2147;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

.ww-navbar-toggler-icon::before {
    top: 0;
}

.ww-navbar-toggler-icon::after {
    bottom: 0;
}

.ww-navbar-toggler-icon span {
    top: 50%;
    transform: translateY(-50%);
}

/* Nav-links dentro del navbar */

.ww-navbar .nav-link {
    position: relative;
    font-size: 0.9rem;
    font-weight: 500;
    color: #222842;
    padding-inline: 0.4rem;
    padding-block: 0.2rem;
    margin-inline: 0.2rem;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.ww-navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.1rem;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: #0b2147;
    transition: width 0.25s ease-out;
}

.ww-navbar .nav-link:hover {
    color: #0b2147;
    transform: translateY(-1px);
}

.ww-navbar .nav-link.active {
    color: #0b2147;
    font-weight: 600;
}

.ww-navbar .nav-link.active::after {
    width: 100%;
}

/* ================= LAYOUT GENERAL MAIN ================= */

.mant-main {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(79, 209, 255, 0.12), transparent 55%),
        radial-gradient(circle at bottom right, rgba(11, 99, 214, 0.12), transparent 55%),
        #ffffff;
    display: flex;
    flex-direction: column;
}

/* ================= HERO MANTENIMIENTO ================= */

.mant-hero {
    max-width: 1180px;
    margin: 0 auto;
    padding: 3.1rem 1.5rem 2.6rem;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
    gap: 2.6rem;
    align-items: center;
}

/* Tag/píldora */

.mant-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.32rem 0.9rem;
    border-radius: 999px;
    background: rgba(11, 33, 71, 0.92);
    color: #e0f2ff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
    animation: mant-fade-down 700ms ease-out both;
}

.mant-tag-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4fd1ff;
}

/* Texto hero */

.mant-hero-left {
    animation: mant-fade-left 800ms ease-out both;
}

.mant-title {
    margin: 0 0 0.6rem;
    font-size: clamp(2.1rem, 3.3vw + 1rem, 3.1rem);
    line-height: 1.05;
    color: #0b2147;
}

.mant-subtitle {
    margin: 0 0 0.8rem;
    font-size: 0.98rem;
    color: #404a67;
    max-width: 34rem;
}

.mant-subtext {
    margin: 0;
    font-size: 0.9rem;
    color: #2f3b5c;
}

/* Lado derecho hero */

.mant-hero-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    animation: mant-fade-right 850ms ease-out both;
}

.mant-hero-badge {
    padding: 1.3rem 1.6rem;
    border-radius: 24px;
    background: linear-gradient(135deg, #0b63d6 0%, #1d9bf0 45%, #4fd1ff 100%);
    color: #ffffff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
    max-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.mant-hero-badge span:first-child {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mant-hero-badge span:last-child {
    font-size: 0.88rem;
    opacity: 0.95;
}

/* ================= GALERÍA ================= */

.mant-gallery {
    padding: 0 1.5rem 3.1rem;
}

.mant-gallery-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

/* Tarjetas de imagen */

.mant-img-card {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: #0b2147;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.25);
    cursor: pointer;
    transform: translateY(12px);
    opacity: 0;
    animation: mant-card-in 700ms ease-out forwards;
}

.mant-img-card:nth-child(1) { animation-delay: 80ms; }
.mant-img-card:nth-child(2) { animation-delay: 150ms; }
.mant-img-card:nth-child(3) { animation-delay: 220ms; }
.mant-img-card:nth-child(4) { animation-delay: 290ms; }
.mant-img-card:nth-child(5) { animation-delay: 360ms; }
.mant-img-card:nth-child(6) { animation-delay: 430ms; }

.mant-img-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.25) 0%,
        transparent 40%,
        rgba(0, 0, 0, 0.35) 100%
    );
    opacity: 0;
    transition: opacity 0.22s ease-out;
    pointer-events: none;
}

.mant-img-card img {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition:
        transform 0.22s ease-out,
        filter 0.22s ease-out;
}

.mant-img-card:hover img {
    transform: scale(1.06);
    filter: saturate(1.05);
}

.mant-img-card:hover::before {
    opacity: 1;
}

/* ================= FOOTER ================= */

.ww-footer {
    padding: 1.6rem 1.5rem 2.4rem;
    text-align: center;
    font-size: 0.8rem;
    color: #7a8198;
}

/* ================= ANIMACIONES ================= */

@keyframes mant-fade-left {
    from {
        opacity: 0;
        transform: translateX(-18px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes mant-fade-right {
    from {
        opacity: 0;
        transform: translateX(18px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes mant-fade-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mant-card-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {
    .ww-navbar {
        padding-block: 0.35rem;
    }

    .mant-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
        padding: 2.8rem 1.3rem 2.2rem;
    }

    .mant-hero-left {
        order: 2;
    }

    .mant-hero-right {
        order: 1;
        justify-content: flex-start;
    }

    .mant-gallery {
        padding-inline: 1.3rem;
    }

    .mant-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mant-img-card img {
        height: 210px;
    }
}

@media (max-width: 720px) {
    .mant-gallery-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .mant-img-card img {
        height: 230px;
    }
}

@media (max-width: 480px) {
    .mant-title {
        font-size: 2rem;
    }

    .mant-hero {
        padding-inline: 1.1rem;
    }
}
