@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@300;400;700&display=swap');

* {
    font-family: 'Comic Neue', cursive;
    box-sizing: border-box;
}

/* ============================================================
   BASE GENERAL
============================================================ */
.nh-main {
    background: linear-gradient(180deg, #f7f8fb 0%, #eef2f7 100%);
    padding: 54px 0 90px;
    overflow: hidden;
}

.nh-container {
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
}

.nh-title,
.nh-section-head h3,
.nh-feature__content h3,
.nh-meaning__content h3,
.nh-family__content h3,
.nh-house__content h3,
.nh-closing__content h3 {
    color: #001f3f;
    font-weight: 800;
}

.nh-line {
    width: 78px;
    height: 4px;
    background: #daa520;
    border-radius: 999px;
    margin: 0 auto 24px;
}

.nh-line.small {
    width: 56px;
    margin-bottom: 18px;
}

.nh-small-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 65, 54, 0.1);
    color: #ff4136;
    padding: 8px 15px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 800;
    margin-bottom: 14px;
}

/* ============================================================
   ANIMACIONES
============================================================ */
.nh-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.nh-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   HERO
============================================================ */
.nh-hero {
    position: relative;
    min-height: 500px;
    background: #001f3f;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.nh-hero__image {
    position: absolute;
    inset: 0;
}

.nh-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.04);
    animation: nhHeroZoom 12s ease-in-out infinite alternate;
}

@keyframes nhHeroZoom {
    from {
        transform: scale(1.04);
    }
    to {
        transform: scale(1.1);
    }
}

.nh-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 31, 63, 0.86) 0%, rgba(0, 31, 63, 0.62) 46%, rgba(0, 31, 63, 0.24) 100%),
        radial-gradient(circle at 80% 25%, rgba(255, 65, 54, 0.24), transparent 34%);
    z-index: 1;
}

.nh-hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -140px;
    bottom: -170px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    z-index: 1;
}

.nh-hero__overlay {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 150px 0 105px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.nh-hero__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 17px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 800;
    margin-bottom: 18px;
    backdrop-filter: blur(5px);
}

.nh-hero__overlay h2 {
    color: #ffffff;
    font-size: clamp(3rem, 6vw, 5.6rem);
    line-height: 1;
    font-weight: 800;
    margin: 0 0 18px;
    text-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.nh-hero__overlay h2 span {
    color: #ff4136;
}

.nh-hero__overlay p {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    line-height: 1.85;
    margin: 0;
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

/* ============================================================
   BREADCRUMB
============================================================ */
.breadcrumb {
    background: #ffffff;
    border-bottom: 1px solid #e5eaf1;
}

.breadcrumb-container {
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
    padding: 15px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.96rem;
    color: #7b8492;
}

.breadcrumb-container a {
    color: #001f3f;
    text-decoration: none;
    font-weight: 800;
}

.breadcrumb-container i {
    font-size: 0.72rem;
    color: #9aa4b2;
}

/* ============================================================
   INTRO
============================================================ */
.nh-intro {
    max-width: 980px;
    margin: 0 auto 58px;
    text-align: center;
}

.nh-title {
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.15;
    margin: 0 0 10px;
}

.nh-title span {
    color: #ff4136;
}

.nh-intro p {
    color: #566173;
    font-size: 1.08rem;
    line-height: 1.9;
    margin: 0 auto 16px;
}

/* ============================================================
   FEATURE / ORIGEN
============================================================ */
.nh-feature {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 32px;
    align-items: stretch;
    margin-bottom: 58px;
}

.nh-feature__image,
.nh-feature__content {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.12);
}

.nh-feature__image {
    min-height: 430px;
    position: relative;
}

.nh-feature__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 31, 63, 0.08), rgba(0, 31, 63, 0.42));
}

.nh-feature__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.nh-feature__image:hover img {
    transform: scale(1.06);
}

.nh-feature__content {
    background: #ffffff;
    border: 1px solid #e8ecf3;
    padding: 42px 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nh-feature__content h3 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.15;
    margin: 0 0 16px;
}

.nh-feature__content p {
    color: #566173;
    font-size: 1.05rem;
    line-height: 1.88;
    margin: 0 0 16px;
}

/* ============================================================
   STATS
============================================================ */
.nh-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 64px;
}

.nh-stat {
    position: relative;
    background: #ffffff;
    border: 1px solid #e8ecf3;
    border-radius: 26px;
    padding: 30px 22px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.nh-stat::before {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    top: -64px;
    right: -48px;
    border-radius: 50%;
    background: rgba(255, 65, 54, 0.1);
}

.nh-stat span {
    position: relative;
    z-index: 2;
    display: block;
    color: #ff4136;
    font-size: clamp(2.2rem, 4vw, 3.3rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 12px;
}

.nh-stat p {
    position: relative;
    z-index: 2;
    color: #001f3f;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.5;
    margin: 0;
}

/* ============================================================
   SECTION HEAD
============================================================ */
.nh-section-head {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 36px;
}

.nh-section-head h3 {
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    margin: 0 0 10px;
}

.nh-section-head p {
    color: #667083;
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0;
}

/* ============================================================
   TIMELINE
============================================================ */
.nh-timeline-section {
    margin-bottom: 68px;
}

.nh-timeline {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
}

.nh-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #ff4136, #daa520, #001f3f);
    border-radius: 999px;
}

.nh-timeline-item {
    position: relative;
    width: 50%;
    padding: 0 34px 36px;
}

.nh-timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.nh-timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.nh-timeline-item::before {
    content: "";
    position: absolute;
    top: 13px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    border: 5px solid #ff4136;
    z-index: 2;
    box-shadow: 0 0 0 6px rgba(255, 65, 54, 0.12);
}

.nh-timeline-item:nth-child(odd)::before {
    right: -10px;
}

.nh-timeline-item:nth-child(even)::before {
    left: -10px;
}

.nh-timeline-year {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #001f3f;
    color: #ffffff;
    border-radius: 999px;
    padding: 9px 18px;
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 12px;
    box-shadow: 0 10px 22px rgba(0, 31, 63, 0.2);
}

.nh-timeline-content {
    background: #ffffff;
    border: 1px solid #e8ecf3;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.nh-timeline-content h4 {
    color: #001f3f;
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 10px;
}

.nh-timeline-content p {
    color: #5d6878;
    font-size: 1rem;
    line-height: 1.75;
    margin: 0;
}

/* ============================================================
   ACTIVIDADES / CARDS
============================================================ */
.nh-activities {
    margin-bottom: 68px;
}

.nh-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.nh-card {
    background: #ffffff;
    border: 1px solid #e8ecf3;
    border-radius: 26px;
    padding: 30px 24px;
    text-align: center;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.nh-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.13);
}

.nh-card__icon {
    width: 74px;
    height: 74px;
    border-radius: 24px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 31, 63, 0.12), rgba(255, 65, 54, 0.12));
    color: #ff4136;
    font-size: 2rem;
    transition: transform 0.28s ease;
}

.nh-card:hover .nh-card__icon {
    transform: scale(1.08) rotate(-4deg);
}

.nh-card h4 {
    color: #001f3f;
    font-size: 1.28rem;
    font-weight: 800;
    margin: 0 0 12px;
}

.nh-card p {
    color: #5d6878;
    font-size: 0.98rem;
    line-height: 1.75;
    margin: 0;
}

/* ============================================================
   SIGNIFICADO
============================================================ */
.nh-meaning {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    margin-bottom: 68px;
    align-items: stretch;
}

.nh-meaning__content,
.nh-meaning__quote {
    border-radius: 30px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
}

.nh-meaning__content {
    background: #ffffff;
    border: 1px solid #e8ecf3;
    padding: 42px 38px;
}

.nh-meaning__content h3 {
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    line-height: 1.15;
    margin: 0 0 16px;
}

.nh-meaning__content p {
    color: #566173;
    font-size: 1.05rem;
    line-height: 1.88;
    margin: 0 0 16px;
}

.nh-meaning__quote {
    position: relative;
    background: linear-gradient(135deg, #001f3f 0%, #173d76 100%);
    color: #ffffff;
    padding: 42px 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.nh-meaning__quote::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -80px;
    top: -80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.nh-meaning__quote::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    left: -60px;
    bottom: -70px;
    border-radius: 50%;
    background: rgba(255, 65, 54, 0.22);
}

.nh-meaning__quote i,
.nh-meaning__quote p {
    position: relative;
    z-index: 2;
}

.nh-meaning__quote i {
    color: #daa520;
    font-size: 2.4rem;
    margin-bottom: 18px;
}

.nh-meaning__quote p {
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    line-height: 1.45;
    font-weight: 800;
    margin: 0;
}

/* ============================================================
   FAMILIA / TÍOS
============================================================ */
.nh-family {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 32px;
    align-items: stretch;
    margin-bottom: 68px;
}

.nh-family__image,
.nh-family__content {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.12);
}

.nh-family__image {
    min-height: 420px;
    position: relative;
}

.nh-family__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 31, 63, 0.08), rgba(0, 31, 63, 0.42));
}

.nh-family__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.nh-family__image:hover img {
    transform: scale(1.06);
}

.nh-family__content {
    background: #ffffff;
    border: 1px solid #e8ecf3;
    padding: 42px 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nh-family__content h3 {
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    line-height: 1.15;
    margin: 0 0 16px;
}

.nh-family__content p {
    color: #566173;
    font-size: 1.05rem;
    line-height: 1.88;
    margin: 0 0 16px;
}

/* ============================================================
   CASA / INFRAESTRUCTURA
============================================================ */
.nh-house {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
    margin-bottom: 68px;
}

.nh-house__content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fc 100%);
    border: 1px solid #e8ecf3;
    border-radius: 30px;
    padding: 42px 38px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nh-house__content h3 {
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    line-height: 1.15;
    margin: 0 0 16px;
}

.nh-house__content p {
    color: #566173;
    font-size: 1.05rem;
    line-height: 1.88;
    margin: 0 0 16px;
}

.nh-house__gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 14px;
}

.nh-house__gallery img {
    width: 100%;
    height: 100%;
    min-height: 190px;
    object-fit: cover;
    border-radius: 24px;
    display: block;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.nh-house__gallery img:first-child {
    grid-row: span 2;
}

.nh-house__gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
}

/* ============================================================
   CIERRE
============================================================ */
.nh-closing {
    position: relative;
    background:
        linear-gradient(135deg, rgba(0, 31, 63, 0.92), rgba(23, 61, 118, 0.92)),
        url("img/6.jpg") center/cover no-repeat;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
}

.nh-closing::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    right: -110px;
    top: -110px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.09);
}

.nh-closing::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    left: -90px;
    bottom: -100px;
    border-radius: 50%;
    background: rgba(255, 65, 54, 0.2);
}

.nh-closing__content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: 0 auto;
    padding: 58px 28px;
    text-align: center;
}

.nh-closing__content h3 {
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 16px;
}

.nh-closing__content p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.08rem;
    line-height: 1.85;
    margin: 0 auto 28px;
}

.nh-closing__buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.nh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 14px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.nh-btn-primary {
    background: #ff4136;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(255, 65, 54, 0.28);
}

.nh-btn-primary:hover {
    transform: translateY(-3px);
    background: #e3362c;
}

.nh-btn-secondary {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(4px);
}

.nh-btn-secondary:hover {
    transform: translateY(-3px);
    background: #ffffff;
    color: #001f3f;
}

/* ============================================================
   RESPONSIVE TABLET
============================================================ */
@media (max-width: 1100px) {
    .nh-feature,
    .nh-meaning,
    .nh-family,
    .nh-house {
        grid-template-columns: 1fr;
    }

    .nh-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nh-feature__image,
    .nh-family__image {
        min-height: 380px;
    }

    .nh-house__gallery {
        min-height: 420px;
    }
}

/* ============================================================
   RESPONSIVE MOBILE
============================================================ */
@media (max-width: 768px) {
    .nh-main {
        padding: 42px 0 72px;
    }

    .nh-container,
    .breadcrumb-container {
        width: calc(100% - 24px);
    }

    .nh-hero {
        min-height: 430px;
    }

    .nh-hero__overlay {
        width: calc(100% - 32px);
        padding: 130px 0 84px;
        align-items: center;
        text-align: center;
    }

    .nh-hero__overlay h2 {
        font-size: clamp(2.7rem, 13vw, 4.2rem);
    }

    .nh-intro {
        margin-bottom: 44px;
    }

    .nh-feature,
    .nh-stats,
    .nh-timeline-section,
    .nh-activities,
    .nh-meaning,
    .nh-family,
    .nh-house {
        margin-bottom: 50px;
    }

    .nh-stats {
        grid-template-columns: 1fr;
    }

    .nh-card-grid {
        grid-template-columns: 1fr;
    }

    .nh-feature__content,
    .nh-meaning__content,
    .nh-family__content,
    .nh-house__content {
        padding: 32px 22px;
        border-radius: 24px;
    }

    .nh-feature__image,
    .nh-family__image {
        min-height: 310px;
        border-radius: 24px;
    }

    .nh-timeline::before {
        left: 14px;
        transform: none;
    }

    .nh-timeline-item,
    .nh-timeline-item:nth-child(odd),
    .nh-timeline-item:nth-child(even) {
        width: 100%;
        left: 0;
        text-align: left;
        padding: 0 0 30px 46px;
    }

    .nh-timeline-item::before,
    .nh-timeline-item:nth-child(odd)::before,
    .nh-timeline-item:nth-child(even)::before {
        left: 6px;
        right: auto;
    }

    .nh-timeline-content {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .nh-house__gallery {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        min-height: unset;
    }

    .nh-house__gallery img:first-child {
        grid-row: auto;
    }

    .nh-house__gallery img {
        min-height: 230px;
    }

    .nh-closing {
        border-radius: 26px;
    }

    .nh-closing__content {
        padding: 44px 20px;
    }
}

/* ============================================================
   RESPONSIVE SMALL MOBILE
============================================================ */
@media (max-width: 480px) {
    .nh-main {
        padding: 34px 0 60px;
    }

    .nh-hero {
        min-height: 380px;
    }

    .nh-hero__overlay {
        padding: 118px 0 70px;
    }

    .nh-hero__tag,
    .nh-small-tag {
        font-size: 0.86rem;
    }

    .nh-intro p,
    .nh-feature__content p,
    .nh-section-head p,
    .nh-timeline-content p,
    .nh-card p,
    .nh-meaning__content p,
    .nh-family__content p,
    .nh-house__content p,
    .nh-closing__content p {
        font-size: 0.98rem;
        line-height: 1.75;
    }

    .nh-card {
        padding: 26px 18px;
        border-radius: 22px;
    }

    .nh-card__icon {
        width: 66px;
        height: 66px;
        font-size: 1.75rem;
    }

    .nh-meaning__quote {
        padding: 34px 22px;
        border-radius: 24px;
    }

    .nh-btn {
        width: 100%;
    }
}

/* ============================================================
   REDUCIR MOVIMIENTO
============================================================ */
@media (prefers-reduced-motion: reduce) {
    .nh-hero__image img {
        animation: none;
    }

    .nh-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .nh-card,
    .nh-feature__image img,
    .nh-family__image img,
    .nh-house__gallery img,
    .nh-btn {
        transition: none;
    }
}