/* =========================
   ENASWIM - BLOG
   CSS exclusivo de /blog/
========================= */

:root {
    --blog-blue: #001e62;
    --blog-coral: #ff6b52;
    --blog-text: #414c56;
    --blog-side-space: clamp(10px, 2.2vw, 38px);
}

html {
    scroll-behavior: smooth;
}

html,
body {
    min-height: 100%;
}

.blog-body {
    min-height: 100vh;
    margin: 0;
    color: var(--blog-text);

    background-color: #e3f6f9;
    background-image: url('/imagenes/fondo.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.blog-main {
    width: 100%;
    margin: 0;
    padding: 0 0 30px;
}

/* =========================
   NAVEGACIÓN
========================= */

.blog-body .navbar-custom {
    position: relative;
    z-index: 50;

    background-color: #e3f6f9 !important;
    background-image: url('/imagenes/fondo_olas.png') !important;
    background-size: 280px auto !important;
    background-position: left top !important;
    background-repeat: repeat !important;

    border-bottom: 1px solid rgba(0, 30, 98, 0.10);
    box-shadow: 0 5px 18px rgba(0, 30, 98, 0.08);
}

.blog-body .navbar-logo {
    display: block;
    width: auto;
    height: 45px;
}

.blog-body .navbar-nav .nav-link {
    color: #222 !important;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-body .navbar-nav .nav-link:hover,
.blog-body .navbar-nav .nav-link.active-link {
    color: var(--blog-coral) !important;
}

.blog-body .nav-liquidacion {
    font-weight: 800;
}

.blog-body .navbar-actions {
    flex-shrink: 0;
}

.blog-body .navbar-icon-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #222;
}

.blog-body .nav-account-link,
.blog-body .nav-cart-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: #222 !important;
    text-decoration: none;
}

.blog-body .nav-account-link:hover,
.blog-body .nav-cart-link:hover,
.blog-body .navbar-icon-button:hover {
    color: var(--blog-coral) !important;
}

.blog-body .nav-icon {
    font-size: 1.2rem;
}

.blog-body .cuenta-texto,
.blog-body #carritoTotal {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

/* =========================
   PORTADA
========================= */

.blog-hero {
    width: 100%;
    padding: 0 var(--blog-side-space);
}

.blog-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.5fr);
    align-items: center;

    width: 100%;
    min-height: clamp(390px, 58vh, 610px);

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.78);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: clamp(24px, 2.2vw, 38px);
    border-bottom-right-radius: clamp(24px, 2.2vw, 38px);

    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 22px 58px rgba(0, 30, 98, 0.15);

    backdrop-filter: blur(11px);
    -webkit-backdrop-filter: blur(11px);
}

.blog-hero-copy {
    padding:
        clamp(44px, 6vw, 100px)
        clamp(30px, 7vw, 125px);
}

.blog-eyebrow {
    margin: 0 0 8px;

    color: var(--blog-coral);
    font-size: 0.94rem;
    font-weight: 900;

    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.blog-hero-copy h1 {
    max-width: 900px;
    margin: 0 0 24px;

    color: var(--blog-blue);
    font-size: clamp(3rem, 5.8vw, 6rem);
    font-weight: 900;
    line-height: 0.95;
}

.blog-hero-copy > p:not(.blog-eyebrow) {
    max-width: 760px;
    margin: 0;

    color: var(--blog-text);
    font-size: clamp(1rem, 1.15vw, 1.2rem);
    line-height: 1.75;
}

.blog-hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.blog-hero-links a {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 11px 18px;

    border: 1px solid rgba(0, 30, 98, 0.13);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.88);
    color: var(--blog-blue);

    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;

    box-shadow: 0 10px 25px rgba(0, 30, 98, 0.08);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.blog-hero-links a:hover {
    transform: translateY(-2px);
    border-color: var(--blog-coral);
    color: var(--blog-coral);
}

.blog-hero-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px;
}

.blog-hero-icon img {
    width: min(190px, 75%);
    filter: drop-shadow(0 17px 30px rgba(0, 30, 98, 0.14));
}

/* =========================
   ARTÍCULOS
========================= */

.blog-section {
    width: 100%;
    padding:
        24px
        var(--blog-side-space)
        0;
    scroll-margin-top: 110px;
}

.blog-article {
    width: 100%;
    padding: clamp(32px, 5vw, 78px);

    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: clamp(24px, 2.2vw, 38px);

    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 22px 58px rgba(0, 30, 98, 0.14);

    backdrop-filter: blur(11px);
    -webkit-backdrop-filter: blur(11px);
}

.blog-article-header {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 34px;
}

.blog-article-number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 78px;
    height: 78px;
    flex: 0 0 78px;

    border-radius: 50%;

    background: #e3f6f9;
    color: var(--blog-blue);

    font-size: 1.35rem;
    font-weight: 900;

    box-shadow: inset 0 0 0 1px rgba(0, 30, 98, 0.08);
}

.blog-article-header h2 {
    max-width: 980px;
    margin: 0;

    color: var(--blog-blue);
    font-size: clamp(2.6rem, 4.8vw, 5rem);
    font-weight: 300;
    line-height: 1;
}

.blog-intro {
    max-width: 1120px;
    margin-bottom: 38px;

    color: var(--blog-text);
    font-size: clamp(1rem, 1.05vw, 1.12rem);
    line-height: 1.8;
}

.blog-intro p {
    margin-bottom: 18px;
}

.blog-intro p:last-child {
    margin-bottom: 0;
}

/* =========================
   CUIDADOS
========================= */

.care-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.care-card {
    padding: clamp(25px, 3vw, 40px);

    border: 1px solid rgba(0, 30, 98, 0.08);
    border-radius: 25px;

    background: rgba(247, 252, 253, 0.95);
    box-shadow: 0 14px 34px rgba(0, 30, 98, 0.09);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.care-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 42px rgba(0, 30, 98, 0.15);
}

.care-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;
    margin-bottom: 20px;

    border-radius: 50%;

    background: #e3f6f9;
    color: var(--blog-blue);

    font-size: 1.55rem;
}

.care-card h3 {
    margin: 0 0 16px;

    color: var(--blog-blue);
    font-size: clamp(1.4rem, 2vw, 2rem);
    font-weight: 900;
    text-transform: uppercase;
}

.care-card p {
    margin-bottom: 15px;

    color: var(--blog-text);
    font-size: 1rem;
    line-height: 1.75;
}

.care-card p:last-child {
    margin-bottom: 0;
}

/* =========================
   PROCESO DE PRODUCCIÓN
========================= */

.process-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.process-step {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 24px;

    padding: clamp(24px, 3vw, 38px);

    border: 1px solid rgba(0, 30, 98, 0.08);
    border-radius: 25px;

    background: rgba(247, 252, 253, 0.95);
    box-shadow: 0 14px 34px rgba(0, 30, 98, 0.08);
}

.process-step-number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 72px;
    height: 72px;

    border-radius: 50%;

    background: var(--blog-blue);
    color: #ffffff;

    font-size: 1.6rem;
    font-weight: 900;

    box-shadow: 0 13px 28px rgba(0, 30, 98, 0.20);
}

.process-step-content h3 {
    margin: 0 0 13px;

    color: var(--blog-blue);
    font-size: clamp(1.45rem, 2.2vw, 2.15rem);
    font-weight: 900;
}

.process-step-content p {
    margin-bottom: 14px;

    color: var(--blog-text);
    font-size: 1rem;
    line-height: 1.75;
}

.process-step-content p:last-child {
    margin-bottom: 0;
}

/* =========================
   FOOTER
========================= */

.blog-body .footer-ena {
    margin-top: 0;

    background-color: rgba(227, 246, 249, 0.96);
    background-image: url('/imagenes/fondo_olas.png');
    background-size: 280px auto;
    background-position: left top;
    background-repeat: repeat;

    border-top: 1px solid rgba(0, 30, 98, 0.10);
}

.blog-body .footer-logo {
    height: 55px;
}

.blog-body .footer-text {
    color: #333;
    font-size: 15px;
}

.blog-body .footer-social a {
    color: var(--blog-blue);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
}

.blog-body .footer-social a:hover {
    color: var(--blog-coral);
}

.blog-body .footer-copy {
    color: #555;
}

/* =========================
   TABLETA
========================= */

@media (max-width: 991px) {
    .blog-body {
        background-attachment: scroll;
    }

    .blog-body .navbar-collapse {
        margin-top: 16px;
        padding: 18px;

        border-radius: 16px;
        background: rgba(255, 255, 255, 0.95);
    }

    .blog-body .navbar-actions {
        margin-left: auto;
    }

    .blog-hero-card {
        grid-template-columns: 1fr;
    }

    .blog-hero-icon {
        padding-top: 0;
    }

    .care-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   CELULAR
========================= */

@media (max-width: 767px) {
    :root {
        --blog-side-space: 10px;
    }

    .blog-hero-card {
        border-bottom-left-radius: 22px;
        border-bottom-right-radius: 22px;
    }

    .blog-hero-copy,
    .blog-article {
        padding: 42px 24px;
    }

    .blog-hero-copy h1 {
        font-size: clamp(2.8rem, 13vw, 4.4rem);
    }

    .blog-article-header {
        align-items: flex-start;
        gap: 15px;
    }

    .blog-article-number {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
        font-size: 1.05rem;
    }

    .blog-article-header h2 {
        font-size: clamp(2.35rem, 11vw, 3.8rem);
    }

    .process-step {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 15px;
        padding: 22px 18px;
    }

    .process-step-number {
        width: 52px;
        height: 52px;
        font-size: 1.15rem;
    }
}

/* =========================
   CELULAR PEQUEÑO
========================= */

@media (max-width: 575px) {
    .blog-body .navbar-logo {
        height: 39px;
    }

    .blog-body .navbar-actions {
        gap: 14px !important;
    }

    .blog-hero-links {
        flex-direction: column;
        align-items: flex-start;
    }
}
