/* =========================================================
   NUESTROS MESES
========================================================= */

.months-section {
    position: relative;

    min-height: 100vh;

    padding: 150px 25px 180px;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(221,85,163,0.10),
            transparent 25%
        ),
        radial-gradient(
            circle at 85% 70%,
            rgba(108,72,189,0.12),
            transparent 25%
        ),
        linear-gradient(
            180deg,
            #09050d,
            #120817,
            #09050d
        );

    overflow: hidden;
}


/* =========================================================
   ENCABEZADO
========================================================= */

.months-header {
    max-width: 900px;

    margin: 0 auto 120px;

    text-align: center;
}

.months-symbol {
    width: 65px;
    height: 65px;

    margin: 0 auto 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    border: 1px solid rgba(240,111,174,0.35);

    color: var(--pink);

    font-size: 27px;

    box-shadow:
        0 0 45px rgba(240,111,174,0.14);
}

.months-header h2 {
    font-family: "Cormorant Garamond", serif;

    font-size: clamp(60px, 8vw, 100px);

    line-height: 0.95;

    margin-bottom: 25px;
}

.months-intro {
    max-width: 650px;

    margin: auto;

    font-family: "Cormorant Garamond", serif;

    font-size: 27px;

    line-height: 1.5;

    color: #cdbdce;
}


/* =========================================================
   CONTENEDOR
========================================================= */

.months-timeline {
    position: relative;

    max-width: 1150px;

    margin: 0 auto;
}


/* línea central */

.months-timeline::before {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;

    left: 50%;

    width: 1px;

    transform: translateX(-50%);

    background:
        linear-gradient(
            to bottom,
            transparent,
            rgba(240,111,174,0.4),
            rgba(141,85,199,0.35),
            transparent
        );
}


/* =========================================================
   TARJETAS
========================================================= */

.month-card {
    position: relative;

    width: 90%;

    margin: 0 auto 160px;

    display: grid;

    grid-template-columns:
        minmax(260px, 0.9fr)
        minmax(260px, 1fr);

    gap: 65px;

    align-items: center;
}

.month-card-reverse {
    grid-template-columns:
        minmax(260px, 1fr)
        minmax(260px, 0.9fr);
}

.month-card-reverse .month-photo {
    order: 2;
}

.month-card-reverse .month-content {
    order: 1;
}


/* =========================================================
   NÚMERO DEL MES
========================================================= */

.month-number {
    position: absolute;

    top: -5px;

    left: 50%;

    transform: translateX(-50%);

    width: 62px;
    height: 62px;

    display: flex;

    justify-content: center;

    align-items: center;

    border-radius: 50%;

    border: 1px solid rgba(240,111,174,0.35);

    background: #100817;

    color: var(--light-pink);

    font-family: "Cormorant Garamond", serif;

    font-size: 22px;

    box-shadow:
        0 0 30px rgba(240,111,174,0.12);

    z-index: 3;
}


/* =========================================================
   FECHA
========================================================= */

.month-date {
    position: absolute;

    top: 62px;

    left: 50%;

    transform: translateX(-50%);

    padding: 7px 14px;

    border-radius: 20px;

    background: rgba(10,5,15,0.8);

    border: 1px solid rgba(255,255,255,0.08);

    font-size: 9px;

    letter-spacing: 3px;

    color: #ad93b0;

    z-index: 3;
}


/* =========================================================
   FOTO DEL MES
========================================================= */

.month-photo {
    position: relative;

    aspect-ratio: 4 / 5;

    overflow: hidden;

    border-radius: 8px;

    box-shadow:
        0 30px 60px rgba(0,0,0,0.35);
}

.placeholder-photo {
    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    padding: 40px;

    background:
        linear-gradient(
            145deg,
            #302039,
            #19101e
        );

    border:
        1px solid rgba(255,255,255,0.08);
}

.placeholder-photo span {
    font-size: 60px;

    margin-bottom: 20px;

    filter:
        drop-shadow(
            0 0 15px rgba(240,111,174,0.3)
        );
}

.placeholder-photo p {
    font-family: "Cormorant Garamond", serif;

    font-size: 34px;

    color: #f4dce9;
}

.placeholder-photo small {
    margin-top: 8px;

    font-size: 10px;

    letter-spacing: 2px;

    color: #9f899f;
}


/* =========================================================
   CONTENIDO DEL MES
========================================================= */

.month-content {
    padding: 45px;
}

.month-label {
    display: block;

    margin-bottom: 15px;

    font-size: 10px;

    letter-spacing: 4px;

    color: var(--light-pink);
}

.month-content h3 {
    font-family: "Cormorant Garamond", serif;

    font-size: clamp(42px, 5vw, 65px);

    font-weight: 600;

    line-height: 0.98;

    margin-bottom: 25px;
}

.month-content > p {
    font-family: "Cormorant Garamond", serif;

    font-size: 23px;

    line-height: 1.55;

    color: #cfc1d1;
}


/* =========================================================
   MES 7
========================================================= */

.month-seven {
    width: 96%;

    padding: 60px 20px;

    margin-top: 40px;

    border-radius: 35px;

    border:
        1px solid rgba(240,111,174,0.22);

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(240,111,174,0.11),
            transparent 45%
        ),
        rgba(255,255,255,0.025);

    box-shadow:
        0 40px 90px rgba(0,0,0,0.3);
}

.month-seven .month-number {
    width: 72px;
    height: 72px;

    font-size: 27px;

    color: #ffd3e8;

    background:
        linear-gradient(
            145deg,
            #7b3c88,
            #321a4b
        );
}

.month-seven-photo {
    min-height: 450px;

    border:
        1px solid rgba(240,111,174,0.18);

    background:
        radial-gradient(
            circle at center,
            rgba(240,111,174,0.16),
            transparent 55%
        ),
        linear-gradient(
            145deg,
            #2b1635,
            #100815
        );
}

.month-seven-photo > span {
    font-size: 70px;

    animation:
        pulseGlow 2.5s ease-in-out infinite;
}

.month-seven-glow {
    position: absolute;

    width: 180px;
    height: 180px;

    border-radius: 50%;

    background: rgba(240,111,174,0.18);

    filter: blur(60px);
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

.month-seven .month-content {
    padding-right: 60px;
}

.month-seven .month-content h3 {
    font-size: clamp(48px, 6vw, 76px);
}

.month-seven .month-content > p {
    color: #dbc6d8;
}

/* =========================================================
   COLLAGE DE FOTOS
========================================================= */

.month-collage {
    display: grid;

    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;

    gap: 6px;

    padding: 6px;

    background:
        linear-gradient(
            145deg,
            #f8e9f1,
            #ddd0e8
        );

    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.4);

    aspect-ratio: 4 / 5;
}

.collage-item {
    position: relative;

    overflow: hidden;

    min-height: 0;

    background: #120a17;

    border-radius: 5px;
}

.collage-item img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;

    transition:
        transform 0.6s ease,
        filter 0.6s ease;
}

.collage-item:hover img {
    transform: scale(1.08);

    filter: brightness(1.08);
}

.collage-item:nth-child(1) {
    border-top-left-radius: 9px;
}

.collage-item:nth-child(2) {
    border-top-right-radius: 9px;
}

.collage-item:nth-child(3) {
    border-bottom-left-radius: 9px;
}

.collage-item:nth-child(4) {
    border-bottom-right-radius: 9px;
}


/* =========================================================
   BOTÓN DEL MES 7
========================================================= */

.month-button {
    display: inline-flex;

    align-items: center;

    gap: 15px;

    margin-top: 30px;

    padding: 15px 22px;

    border-radius: 30px;

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    color: white;

    background:
        linear-gradient(
            90deg,
            #d95fa8,
            #895bd0
        );

    box-shadow:
        0 15px 35px rgba(217,95,168,0.25);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.month-button:hover {
    transform: translateY(-3px);

    box-shadow:
        0 20px 40px rgba(217,95,168,0.4);
}

.month-button span {
    font-size: 18px;
}

.month-seven .month-collage {
    border:
        1px solid rgba(240,111,174,0.3);

    box-shadow:
        0 0 50px rgba(240,111,174,0.12),
        0 30px 70px rgba(0,0,0,0.45);
}

.month-seven .collage-item {
    border:
        1px solid rgba(255,255,255,0.08);
}

/* =========================================================
   FINAL
========================================================= */

.months-ending {
    text-align: center;

    padding-top: 50px;
}

.months-ending-line {
    width: 1px;

    height: 70px;

    margin: 0 auto 30px;

    background:
        linear-gradient(
            to bottom,
            transparent,
            var(--pink)
        );
}

.months-ending p {
    font-size: 10px;

    letter-spacing: 4px;

    color: #96799d;
}

.months-ending h3 {
    font-family: "Cormorant Garamond", serif;

    font-size: clamp(55px, 7vw, 85px);

    line-height: 1;

    margin: 20px 0;
}

.months-ending > span {
    display: block;

    font-family: "Cormorant Garamond", serif;

    font-size: 23px;

    color: #bba9bd;
}

.months-heart {
    margin-top: 35px;

    color: var(--pink);

    font-size: 25px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 850px) {

    .month-collage {
    width: 100%;

    aspect-ratio: 4 / 5;

    gap: 4px;

    padding: 4px;
    }

    .collage-item {
        border-radius: 4px;
    }

    .months-section {
        padding: 110px 18px 130px;
    }

    .months-header {
        margin-bottom: 90px;
    }

    .months-intro {
        font-size: 23px;
    }

    .months-timeline::before {
        left: 25px;
    }

    .month-card,
    .month-card-reverse {
        width: calc(100% - 45px);

        margin-left: 45px;

        display: flex;

        flex-direction: column;

        gap: 25px;

        align-items: stretch;

        margin-bottom: 100px;
    }

    .month-card-reverse .month-photo,
    .month-card-reverse .month-content {
        order: initial;
    }

    .month-number {
        left: -45px;

        top: 0;

        width: 52px;
        height: 52px;

        font-size: 18px;
    }

    .month-date {
        position: static;

        align-self: flex-start;

        transform: none;

        margin-top: -12px;
    }

    .month-content {
        padding: 15px 5px;
    }

    .month-content h3 {
        font-size: 43px;
    }

    .month-content > p {
        font-size: 21px;
    }

    .month-seven {
        width: calc(100% - 45px);

        margin-left: 45px;

        padding: 35px 20px;
    }

    .month-seven-photo {
        min-height: 330px;
    }

    .month-seven .month-content {
        padding-right: 5px;
    }

    .month-seven .month-content h3 {
        font-size: 47px;
    }

    .month-button {
        width: 100%;
        justify-content: center;
    }

/* =========================================================
   RECUERDOS DINÁMICOS DEL MES 7
========================================================= */

.month-seven-memories {
    grid-column: 1 / -1;

    margin-top: 45px;

    padding: 30px;

    border-top:
        1px solid rgba(240,111,174,0.12);
}

.month-seven-memories-header {
    display: flex;

    flex-direction: column;

    gap: 7px;

    margin-bottom: 22px;
}

.month-seven-memories-header span {
    font-size: 9px;

    letter-spacing: 4px;

    color: var(--light-pink);
}

.month-seven-memories-header strong {
    font-family: "Cormorant Garamond", serif;

    font-size: 32px;

    color: #f1dce8;
}

.month-seven-post-preview {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;
}

.mini-memory {
    overflow: hidden;

    border-radius: 16px;

    border:
        1px solid rgba(255,255,255,0.08);

    background:
        rgba(255,255,255,0.03);
}

.mini-memory-image {
    aspect-ratio: 4 / 3;

    overflow: hidden;
}

.mini-memory-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition:
        transform 0.5s ease;
}

.mini-memory:hover
.mini-memory-image img {
    transform: scale(1.05);
}

.mini-memory-info {
    display: flex;

    flex-direction: column;

    gap: 5px;

    padding: 14px;
}

.mini-memory-info span {
    font-size: 9px;

    letter-spacing: 2px;

    color: var(--light-pink);
}

.mini-memory-info strong {
    font-family: "Cormorant Garamond", serif;

    font-size: 22px;

    color: #f3e0ea;
}

.mini-memory-info small {
    font-size: 9px;

    color: #927e95;
}

.month-seven-all-button {
    display: inline-flex;

    margin-top: 22px;

    color: var(--light-pink);

    text-decoration: none;

    font-size: 11px;

    font-weight: 600;
}

@media (max-width: 850px) {

    .month-seven-memories {
        padding: 25px 5px;
    }

    .month-seven-post-preview {
        grid-template-columns: 1fr;
    }

}

.letter-link {
    display: inline-flex;

    align-items: center;

    gap: 12px;

    margin-top: 35px;

    padding: 15px 24px;

    border-radius: 30px;

    color: white;

    background:
        linear-gradient(
            90deg,
            #d95fa8,
            #895bd0
        );

    text-decoration: none;

    font-size: 12px;

    font-weight: 600;

    box-shadow:
        0 15px 35px
        rgba(217,95,168,0.25);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.letter-link:hover {
    transform: translateY(-3px);

    box-shadow:
        0 20px 45px
        rgba(217,95,168,0.4);
}

.letter-link span {
    font-size: 18px;
}

}