/* =====================================================
   Carlos Medina Plascencia — v4.1
   Hero: dark #1a2b2b · Timeline: light #e8e9dc · Blog: teal #1a2b2b
   Teal accent: #3d6163 · Cream: #e8e9dc
   ===================================================== */

/* ── Reset de página ── */
html.cmt-page,
body.cmt-page {
    background: #1a2b2b !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.cmt-page #wpadminbar { display: none !important; }

body.cmt-page header,
body.cmt-page .wp-block-template-part,
body.cmt-page footer,
body.cmt-page .site-header,
body.cmt-page .site-footer { display: none !important; }

body.cmt-page .wp-block-post-title,
body.cmt-page h1.wp-block-post-title { display: none !important; }

body.cmt-page main,
body.cmt-page .wp-site-blocks,
body.cmt-page #content,
body.cmt-page #page,
body.cmt-page .site-content {
    background: #1a2b2b !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.cmt-page .wp-site-blocks > * { margin-block-start: 0 !important; }

body.cmt-page .entry-content,
body.cmt-page .wp-block-post-content {
    background: #1a2b2b !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

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

.cmt-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 68px;
    background: #1a2b2b;
    border-bottom: 1px solid rgba(232, 233, 220, 0.08);
    box-sizing: border-box;
    transition: box-shadow 0.3s ease;
}

.cmt-nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #e8e9dc;
}

/* Logo C en nav */
.cmt-nav-c-img {
    height: 52px;
    width: auto;
    display: block;
    margin-right: 2px;
    flex-shrink: 0;
}

.cmt-nav-brand {
    display: flex;
    flex-direction: column;
    gap: 0px;
    line-height: 1;
}

/* Cada línea del nombre */
.cmt-nav-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 3.5px;
    color: #e8e9dc;
    display: block;
    line-height: 1.45;
}

.cmt-nav-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 2.5px;
    color: rgba(232, 233, 220, 0.35);
    display: block;
    margin-top: 4px;
}

.cmt-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 36px;
    align-items: center;
}

.cmt-nav-links a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(232, 233, 220, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.cmt-nav-links a:hover { color: #e8e9dc; }

.cmt-nav-blog-link {
    color: #e8e9dc !important;
    background: #3d6163;
    padding: 7px 18px;
    border-radius: 20px;
    transition: background 0.3s ease, opacity 0.3s ease !important;
}

.cmt-nav-blog-link:hover {
    background: #4d7a7c !important;
    opacity: 1;
}

/* Hamburger */
.cmt-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.cmt-nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: #e8e9dc;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* =====================================================
   HERO — dark #1a2b2b
   ===================================================== */

.cmt-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 100px;
    background: #1a2b2b;
    box-sizing: border-box;
    overflow: hidden;
}

.cmt-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 75% 55% at 50% 68%, rgba(61,97,99,0.5) 0%, transparent 65%),
        radial-gradient(ellipse 45% 35% at 18% 28%, rgba(61,97,99,0.13) 0%, transparent 60%),
        radial-gradient(ellipse 50% 38% at 82% 22%, rgba(77,122,124,0.13) 0%, transparent 60%);
    pointer-events: none;
}

/* ── Logo hero — fiel al branding ── */
.cmt-hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 3vw, 36px);
    position: relative;
    z-index: 1;
    margin-bottom: clamp(28px, 4vw, 48px);
}

/* Logo C real en hero */
.cmt-hero-c-img {
    height: clamp(60px, 7vw, 100px);
    width: auto;
    display: block;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 30px rgba(61,97,99,0.3));
}

/* Bloque de nombre + tagline */
.cmt-hero-brand {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.5vw, 16px);
    text-align: left;
}

/* CARLOS / MEDINA / PLASCENCIA */
.cmt-hero-brand-name {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cmt-hero-brand-name span {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.3rem, 3.2vw, 3rem);
    font-weight: 300;
    letter-spacing: clamp(6px, 1.2vw, 14px);
    color: #e8e9dc;
    display: block;
    line-height: 1.15;
    text-transform: uppercase;
}

/* — AHORA ES CUANDO — */
.cmt-hero-brand-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.6rem, 1.1vw, 0.9rem);
    font-weight: 400;
    letter-spacing: clamp(4px, 0.8vw, 8px);
    color: rgba(232,233,220,0.45);
    text-transform: uppercase;
    padding-top: 4px;
    border-top: 1px solid rgba(232,233,220,0.15);
}

/* Tagline debajo del logo */
.cmt-hero-tagline {
    font-size: clamp(0.88rem, 1.6vw, 1.05rem) !important;
    color: rgba(232,233,220,0.38) !important;
    max-width: 460px;
    line-height: 1.85;
    margin: 0 auto !important;
    position: relative;
    z-index: 1;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    text-align: center;
    letter-spacing: 0.5px;
}

.cmt-hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(232,233,220,0.22);
    font-size: 0.6rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    animation: cmt-bounce 2.2s ease-in-out infinite;
    z-index: 1;
}

.cmt-hero-scroll svg {
    width: 18px;
    height: 18px;
    stroke: rgba(232,233,220,0.22);
    fill: none;
}

@keyframes cmt-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.4; }
    50%       { transform: translateX(-50%) translateY(10px); opacity: 1; }
}

/* =====================================================
   TIMELINE — colorway CLARO #e8e9dc
   ===================================================== */

.cmt-timeline-wrap {
    position: relative;
    width: 100%;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 80px 0 120px !important;
    background: #e8e9dc !important;
    color: #1a2b2b !important;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
    display: block !important;
}

.cmt-timeline-inner {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.cmt-timeline-wrap *, .cmt-timeline-wrap *::before, .cmt-timeline-wrap *::after {
    box-sizing: border-box;
}

/* ── Línea ── */
.cmt-line-track {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: rgba(26,43,43,0.1);
    z-index: 0;
}

.cmt-line-progress {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, #3d6163, #1a2b2b);
    border-radius: 2px;
}

/* ── Bolita viajera — teal destacado ── */
.cmt-traveler {
    position: absolute;
    left: 50%;
    top: 0%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #3d6163;
    border-radius: 50%;
    z-index: 4;
    opacity: 0;
    transition: top 0.08s linear, opacity 0.3s ease;
    box-shadow:
        0 0 0 4px rgba(61,97,99,0.2),
        0 0 14px rgba(61,97,99,0.8),
        0 0 28px rgba(61,97,99,0.35);
}

@keyframes cmt-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(61,97,99,0.6), 0 0 18px rgba(61,97,99,0.6); }
    100% { box-shadow: 0 0 0 16px rgba(61,97,99,0), 0 0 18px rgba(61,97,99,0.2); }
}

.cmt-dot.pulse {
    animation: cmt-pulse 0.6s ease-out forwards;
}

/* ── Evento ── */
.cmt-event {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 48px 1fr;
    align-items: start;
    margin-bottom: 72px;
    z-index: 1;
}

/* ── Dot — branding, destacado ── */
.cmt-dot {
    grid-column: 2;
    grid-row: 1;
    width: 16px;
    height: 16px;
    background: #c8c9bc;
    border: 2px solid #b0b1a5;
    border-radius: 50%;
    margin: 4px auto 0;
    position: relative;
    z-index: 2;
    transition: background 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
}

/* Dot activo: teal sólido con glow */
.cmt-event.active .cmt-dot {
    background: #3d6163;
    border-color: #3d6163;
    box-shadow:
        0 0 0 5px rgba(61,97,99,0.18),
        0 0 20px rgba(61,97,99,0.55);
}

/* ── Year ── */
.cmt-year {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: rgba(26,43,43,0.12) !important;
    letter-spacing: -1px;
    line-height: 1;
    display: block !important;
    transition: color 0.45s ease;
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

.cmt-event.active .cmt-year { color: rgba(26,43,43,0.65) !important; }

/* ── Content ── */
.cmt-content {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.cmt-js-ready .cmt-content {
    opacity: 0;
    transform: translateY(16px);
}

.cmt-js-ready .cmt-event.active .cmt-content {
    opacity: 1;
    transform: translateY(0);
}

/* ── Left / Right ── */
.cmt-event--left .cmt-year    { grid-column: 1; grid-row: 1; text-align: right; padding-right: 22px; padding-top: 2px; }
.cmt-event--left .cmt-content { grid-column: 3; grid-row: 1; padding-left: 22px; }

.cmt-event--right .cmt-year    { grid-column: 3; grid-row: 1; text-align: left; padding-left: 22px; padding-top: 2px; }
.cmt-event--right .cmt-dot     { grid-column: 2; grid-row: 1; }
.cmt-event--right .cmt-content { grid-column: 1; grid-row: 1; text-align: right; padding-right: 22px; }
.cmt-event--right .cmt-tags    { justify-content: flex-end; }

/* ── Card — sobre fondo claro ── */
.cmt-card {
    background: #fff;
    border: 1px solid rgba(26,43,43,0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.cmt-event.active .cmt-card {
    border-color: rgba(61,97,99,0.25);
    box-shadow: 0 4px 20px rgba(26,43,43,0.07);
}

.cmt-card-body { padding: 18px 20px 20px; }

/* Imagen */
.cmt-card--image-top .cmt-img-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.cmt-card--image-top .cmt-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    filter: grayscale(20%);
    transition: filter 0.4s ease, transform 0.5s ease;
}
.cmt-card--image-top:hover .cmt-img-wrap img {
    filter: grayscale(0%);
    transform: scale(1.04);
}

/* ── Textos ── */
.cmt-title {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: #1a2b2b !important;
    margin: 0 0 6px !important;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    display: block !important;
    font-family: 'Montserrat', sans-serif;
}

.cmt-subtitle {
    font-size: 0.65rem !important;
    color: #3d6163 !important;
    margin: 0 0 8px !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.cmt-desc {
    font-size: 0.88rem !important;
    line-height: 1.8;
    color: rgba(26,43,43,0.65) !important;
    margin: 0 !important;
    display: block !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

/* ── Tags ── */
.cmt-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 12px;
}

.cmt-tag {
    font-size: 0.6rem;
    color: #3d6163;
    background: rgba(61,97,99,0.1);
    border: 1px solid rgba(61,97,99,0.22);
    border-radius: 20px;
    padding: 3px 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

/* ── Year mobile ── */
.cmt-year-mobile { display: none !important; }

/* =====================================================
   RESPONSIVE — TIMELINE
   ===================================================== */

@media (max-width: 768px) {
    .cmt-nav { padding: 0 24px; }
    .cmt-nav-brand { display: none; }
    .cmt-nav-links { gap: 20px; }

    .cmt-hero { padding: 110px 20px 90px; }
    .cmt-hero-logo { gap: 14px; }
    .cmt-hero-brand-name span { letter-spacing: 5px; }

    .cmt-timeline-wrap { padding: 60px 0 80px !important; }
    .cmt-event { grid-template-columns: 1fr 40px 1fr; margin-bottom: 56px; }
    .cmt-year  { font-size: 1.5rem !important; }
    .cmt-event--left .cmt-year    { padding-right: 16px; }
    .cmt-event--left .cmt-content { padding-left: 16px; }
    .cmt-event--right .cmt-year    { padding-left: 16px; }
    .cmt-event--right .cmt-content { padding-right: 16px; }
}

@media (max-width: 600px) {
    .cmt-nav { padding: 0 20px; }
    .cmt-nav-links { display: none; }
    .cmt-nav-toggle { display: flex; }

    .cmt-nav.open .cmt-nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: rgba(26, 43, 43, 0.98);
        padding: 24px 30px;
        gap: 20px;
        border-bottom: 1px solid rgba(232,233,220,0.07);
    }

    .cmt-nav.open .cmt-nav-links a { font-size: 0.82rem; }

    .cmt-hero { min-height: 100svh; padding: 100px 20px 80px; }
    .cmt-hero-logo { flex-direction: column; gap: 8px; }
    .cmt-hero-c-img { height: clamp(50px, 12vw, 75px); }
    .cmt-hero-brand { align-items: center; text-align: center; }
    .cmt-hero-brand-name span { font-size: clamp(1.1rem, 5.5vw, 1.8rem); letter-spacing: 5px; }
    .cmt-hero-brand-tagline { text-align: center; font-size: 0.6rem; }
    .cmt-hero-tagline { font-size: 0.88rem !important; }

    .cmt-timeline-wrap { padding: 48px 0 80px !important; }

    .cmt-event {
        grid-template-columns: 28px 1fr;
        grid-template-rows: auto auto;
        margin-bottom: 44px;
        gap: 0;
    }

    .cmt-line-track { left: 13px; transform: none; }

    .cmt-event--left .cmt-dot,
    .cmt-event--right .cmt-dot {
        grid-column: 1; grid-row: 1;
        margin: 3px auto 0;
    }

    .cmt-event--left .cmt-year,
    .cmt-event--right .cmt-year { display: none !important; }

    .cmt-year-mobile {
        display: block !important;
        grid-column: 2; grid-row: 1;
        font-size: 1rem !important;
        font-weight: 700 !important;
        color: rgba(26,43,43,0.25) !important;
        padding-left: 14px;
        font-family: 'Playfair Display', serif;
        font-style: italic;
        transition: color 0.45s ease;
        align-self: center;
    }

    .cmt-event.active .cmt-year-mobile { color: rgba(26,43,43,0.7) !important; }

    .cmt-event--left .cmt-content,
    .cmt-event--right .cmt-content {
        grid-column: 2; grid-row: 2;
        text-align: left !important;
        padding-left: 14px !important;
        padding-right: 0 !important;
        padding-top: 8px;
    }

    .cmt-event--right .cmt-tags { justify-content: flex-start; }
    .cmt-card-body { padding: 14px 14px 16px; }
    .cmt-title  { font-size: 0.75rem !important; }
    .cmt-desc   { font-size: 0.84rem !important; }
}

@media (max-width: 380px) {
    .cmt-timeline-wrap { padding: 40px 0 60px !important; }
}

/* =====================================================
   GALERÍA MASONRY
   ===================================================== */

.cmt-gallery {
    margin-top: 14px;
    columns: 2;
    column-gap: 6px;
}

.cmt-gallery-item {
    break-inside: avoid;
    margin-bottom: 6px;
    border-radius: 6px;
    overflow: hidden;
    display: block;
}

.cmt-gallery-item img {
    width: 100%;
    display: block;
    filter: grayscale(15%);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.cmt-gallery-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.cmt-img-portrait {
    margin-top: 12px;
    border-radius: 8px;
    overflow: hidden;
    max-width: 75%;
}

.cmt-event--right .cmt-img-portrait { margin-left: auto; }

.cmt-img-portrait img {
    width: 100%;
    display: block;
    filter: grayscale(15%);
    transition: filter 0.4s ease;
}
.cmt-img-portrait:hover img { filter: grayscale(0%); }

@media (max-width: 560px) {
    .cmt-gallery { columns: 2; }
    .cmt-img-portrait { max-width: 100%; }
}

/* =====================================================
   PLACEHOLDERS — sobre fondo claro
   ===================================================== */

.cmt-ph-banner {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #d5d6c8 0%, #c8c9bb 40%, #d0d1c4 100%);
}

.cmt-img-portrait.cmt-ph-portrait {
    aspect-ratio: 2/3;
    background: linear-gradient(160deg, #d0d1c4 0%, #c8c9bb 50%, #d5d6c8 100%);
}

.cmt-gallery-item.cmt-ph-tall {
    background: linear-gradient(160deg, #d5d6c8 0%, #c0c1b4 100%);
    height: 160px;
}

.cmt-gallery-item.cmt-ph-short {
    background: linear-gradient(160deg, #c8c9bc 0%, #d0d1c3 100%);
    height: 100px;
}

/* =====================================================
   BLOG — colorway TEAL OSCURO #1a2b2b
   ===================================================== */

.cmt-blog-section {
    width: 100%;
    background: #1a2b2b;
    padding: 100px 24px 120px;
    box-sizing: border-box;
}

.cmt-blog-inner {
    max-width: 1080px;
    margin: 0 auto;
}

.cmt-blog-header {
    text-align: center;
    margin-bottom: 64px;
}

.cmt-blog-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #3d6163;
    margin-bottom: 16px;
    font-weight: 600;
}

.cmt-blog-title {
    font-family: 'Playfair Display', 'Georgia', serif !important;
    font-size: clamp(2.4rem, 5vw, 4rem) !important;
    font-weight: 700 !important;
    color: #e8e9dc !important;
    margin: 0 0 20px !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em;
    font-style: italic;
}

.cmt-blog-intro {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    color: rgba(232,233,220,0.45) !important;
    max-width: 500px;
    margin: 0 auto !important;
    line-height: 1.8;
}

/* ── Grid ── */
.cmt-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: rgba(61,97,99,0.15);
    border: 1px solid rgba(61,97,99,0.15);
    border-radius: 16px;
    overflow: hidden;
}

/* ── Card ── */
.cmt-blog-card {
    background: #162424;
    display: flex;
    flex-direction: column;
    transition: background 0.3s ease;
    position: relative;
}

.cmt-blog-card:hover { background: #1e3535; }

/* Línea teal superior al hover */
.cmt-blog-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: #3d6163;
    transform: scaleX(0);
    transition: transform 0.35s ease;
    transform-origin: left;
}

.cmt-blog-card:hover::after { transform: scaleX(1); }

/* Card destacada ocupa 2 columnas, más grande */
.cmt-blog-card--featured {
    grid-column: span 2;
    background: #1a2b2b;
    border-right: 2px solid rgba(61,97,99,0.15);
}

.cmt-blog-card--featured .cmt-blog-card-body {
    padding: 48px 44px 44px;
}

.cmt-blog-card--featured .cmt-blog-card-num {
    font-size: 5rem;
    margin-bottom: 24px;
}

.cmt-blog-card--featured .cmt-blog-card-title {
    font-size: 1.7rem !important;
    margin-bottom: 18px !important;
}

.cmt-blog-card--featured .cmt-blog-card-excerpt {
    -webkit-line-clamp: 5 !important;
    font-size: 1rem !important;
    color: rgba(232,233,220,0.55) !important;
}

.cmt-blog-card-body {
    padding: 32px 28px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Número grande en Playfair itálico */
.cmt-blog-card-num {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 3.5rem;
    color: rgba(61, 97, 99, 0.25);
    line-height: 1;
    display: block;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.cmt-blog-card:hover .cmt-blog-card-num { color: rgba(61,97,99,0.45); }

.cmt-blog-card-title {
    font-family: 'Playfair Display', 'Georgia', serif !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #e8e9dc !important;
    margin: 0 0 14px !important;
    line-height: 1.35 !important;
    flex: 1;
}

.cmt-blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cmt-blog-card-title a:hover { color: #8ab5b7; }

.cmt-blog-card-excerpt {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.88rem !important;
    font-weight: 400 !important;
    color: rgba(232,233,220,0.4) !important;
    line-height: 1.8 !important;
    margin: 0 0 24px !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cmt-blog-card-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #3d6163;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease, color 0.3s ease;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(61,97,99,0.2);
}

.cmt-blog-card-link:hover {
    color: #8ab5b7;
    gap: 14px;
}

/* ── Responsive blog ── */
@media (max-width: 1024px) {
    .cmt-blog-inner { padding: 0 28px; }
}

@media (max-width: 900px) {
    .cmt-blog-grid { grid-template-columns: 1fr 1fr; }
    .cmt-blog-card--featured { grid-column: span 2; }
    .cmt-blog-card--featured .cmt-blog-card-body { padding: 36px 32px 32px; }
}

@media (max-width: 600px) {
    .cmt-blog-section { clip-path: polygon(0 30px, 100% 0, 100% 100%, 0 100%); margin-top: -30px; padding-top: 30px; }
    .cmt-blog-header-wrap { padding: 70px 0 50px; }
    .cmt-blog-title { font-size: clamp(2.2rem, 10vw, 3.5rem) !important; }
    .cmt-blog-inner { padding: 0 20px; }
    .cmt-blog-grid { grid-template-columns: 1fr; gap: 2px; border-radius: 12px; }
    .cmt-blog-card--featured { grid-column: span 1; border-right: none; border-bottom: 2px solid rgba(61,97,99,0.15); }
    .cmt-blog-card--featured .cmt-blog-card-body { padding: 28px 24px 24px; }
    .cmt-blog-card--featured .cmt-blog-card-num { font-size: 3rem; }
    .cmt-blog-card--featured .cmt-blog-card-title { font-size: 1.3rem !important; }
    .cmt-blog-card-body { padding: 24px 20px 20px; }
    .cmt-blog-grid-wrap { padding: 0 0 80px; }
}

/* =====================================================
   BLOG — TODO OSCURO, FULL WIDTH, CON POP
   ===================================================== */

.cmt-blog-section {
    width: 100%;
    background: #1a2b2b;
    position: relative;
    /* Corte diagonal en la transición desde el timeline crema */
    clip-path: polygon(0 60px, 100% 0, 100% 100%, 0 100%);
    margin-top: -60px;
    padding-top: 60px;
}

.cmt-blog-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ── Encabezado del blog ── */
.cmt-blog-header-wrap {
    padding: 100px 0 70px;
    text-align: center;
    position: relative;
}

/* Watermark C de fondo */
.cmt-blog-header-wrap::before {
    content: 'C';
    position: absolute;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 40vw;
    font-weight: 700;
    color: rgba(61,97,99,0.04);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    line-height: 1;
    white-space: nowrap;
}

.cmt-blog-label {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #3d6163;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
}

.cmt-blog-title {
    font-family: 'Playfair Display', 'Georgia', serif !important;
    font-size: clamp(3rem, 7vw, 6rem) !important;
    font-weight: 700 !important;
    font-style: italic !important;
    color: #e8e9dc !important;
    margin: 0 0 28px !important;
    line-height: 1.05 !important;
    letter-spacing: -0.03em;
    position: relative;
}

/* Línea decorativa bajo el título */
.cmt-blog-title-rule {
    width: 60px;
    height: 2px;
    background: #3d6163;
    margin: 0 auto 28px;
    position: relative;
}

.cmt-blog-intro {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 400 !important;
    color: rgba(232,233,220,0.45) !important;
    max-width: 540px;
    margin: 0 auto !important;
    line-height: 1.85;
    position: relative;
}

/* ── Grid wrap ── */
.cmt-blog-grid-wrap {
    padding: 0 0 120px;
}

/* =====================================================
   BOTÓN SUBIR AL INICIO
   ===================================================== */

.cmt-top-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: #3d6163;
    color: #e8e9dc;
    border: none;
    border-radius: 50px;
    padding: 12px 18px 10px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease, background 0.25s ease;
}

.cmt-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cmt-top-btn:hover { background: #4d7a7c; }

.cmt-top-btn svg {
    display: block;
    stroke: #e8e9dc;
}

@media (max-width: 600px) {
    .cmt-top-btn {
        bottom: 20px;
        right: 20px;
        padding: 10px 14px 8px;
    }
}

/* =====================================================
   ARTÍCULO INDIVIDUAL — diseño editorial
   ===================================================== */

body.cmt-single-page {
    background: #1a2b2b !important;
    margin: 0;
    padding: 0;
}

/* ── Header crema editorial ── */
.cmt-single-header {
    background: #e8e9dc;
    padding: 110px 40px 80px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

/* Número de artículo como watermark de fondo */
.cmt-single-num {
    position: absolute;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 700;
    font-size: clamp(18rem, 35vw, 40rem);
    color: rgba(26,43,43,0.05);
    line-height: 1;
    right: -2%;
    bottom: -10%;
    pointer-events: none;
    user-select: none;
}

.cmt-single-header-inner {
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    z-index: 1;
}

/* ← Volver */
.cmt-single-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #3d6163;
    text-decoration: none;
    transition: gap 0.3s ease;
    margin-bottom: 36px;
    width: fit-content;
}
.cmt-single-back:hover { gap: 12px; }

/* Etiqueta de categoría */
.cmt-single-category {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #3d6163;
    display: block;
    margin-bottom: 20px;
}

/* Título enorme */
.cmt-single-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: clamp(2.2rem, 5.5vw, 4.2rem) !important;
    font-weight: 700 !important;
    font-style: italic !important;
    color: #1a2b2b !important;
    line-height: 1.12 !important;
    margin: 0 0 36px !important;
    letter-spacing: -0.02em;
    max-width: 820px;
}

/* Línea teal */
.cmt-single-rule {
    width: 56px;
    height: 3px;
    background: #3d6163;
    margin-bottom: 32px;
    border-radius: 2px;
}

/* Byline */
.cmt-single-byline {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cmt-single-byline-logo {
    height: 40px;
    width: auto;
    opacity: 0.55;
}

.cmt-single-byline-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cmt-single-author {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: #1a2b2b;
    letter-spacing: 0.5px;
}

.cmt-single-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 400;
    color: rgba(26,43,43,0.45);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ── Cuerpo oscuro del artículo ── */
.cmt-single-body {
    background: #1a2b2b;
    padding: 0;
    box-sizing: border-box;
}

.cmt-single-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 72px 40px 80px;
    font-family: 'Montserrat', sans-serif;
}

/* ── Primer párrafo: full width, drop cap, destacado ── */
.cmt-single-content > p:first-child {
    font-size: 1.22rem !important;
    line-height: 1.88 !important;
    color: rgba(232,233,220,0.88) !important;
    font-weight: 400 !important;
    margin-bottom: 2.4em !important;
    padding-bottom: 2em;
    border-bottom: 1px solid rgba(232,233,220,0.1);
}

/* Drop cap en la primera letra */
.cmt-single-content > p:first-child::first-letter {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 700;
    font-size: 5.2rem;
    line-height: 0.72;
    float: left;
    margin: 6px 14px -4px 0;
    color: #3d6163;
}

/* ── Zona de dos columnas ── */
.cmt-single-cols {
    columns: 2;
    column-gap: 52px;
    column-rule: 1px solid rgba(232,233,220,0.07);
    column-fill: balance;
    orphans: 3;
    widows: 3;
}

/* Párrafos dentro de columnas */
.cmt-single-cols p {
    font-size: 0.98rem !important;
    line-height: 1.95 !important;
    color: rgba(232,233,220,0.62) !important;
    margin: 0 0 1.4em !important;
    font-weight: 400 !important;
    hyphens: auto;
    break-inside: avoid;
}

/* Encabezados internos — abarcan ambas columnas */
.cmt-single-cols h2 {
    column-span: all;
    font-family: 'Playfair Display', serif !important;
    font-size: clamp(1.8rem, 3vw, 2.6rem) !important;
    font-style: italic !important;
    font-weight: 700 !important;
    color: #e8e9dc !important;
    margin: 0 0 0.7em !important;
    padding-top: 1.6em;
    line-height: 1.15 !important;
    border-top: 1px solid rgba(232,233,220,0.1);
}

.cmt-single-cols h3 {
    column-span: all;
    font-family: 'Playfair Display', serif !important;
    font-size: clamp(1.2rem, 2vw, 1.6rem) !important;
    font-style: italic !important;
    font-weight: 700 !important;
    color: rgba(232,233,220,0.7) !important;
    margin: 0 0 0.6em !important;
    padding-top: 1.2em;
    line-height: 1.2 !important;
}

.cmt-single-cols h4 {
    column-span: all;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    color: #3d6163 !important;
    margin: 1.8em 0 0.6em !important;
}

/* Citas abarcan ambas columnas */
.cmt-single-cols blockquote {
    column-span: all;
    border-left: 3px solid #3d6163;
    margin: 0.5em 0 1.8em !important;
    padding: 20px 28px !important;
    background: rgba(61,97,99,0.07);
    border-radius: 0 8px 8px 0;
}

.cmt-single-cols blockquote p {
    font-family: 'Playfair Display', serif !important;
    font-style: italic !important;
    font-size: 1.3rem !important;
    color: rgba(232,233,220,0.88) !important;
    margin: 0 !important;
    hyphens: none;
    line-height: 1.6 !important;
}

/* Listas */
.cmt-single-cols ul,
.cmt-single-cols ol {
    padding-left: 1.4em;
    margin: 0 0 1.4em !important;
    break-inside: avoid;
}

.cmt-single-cols li {
    font-size: 0.97rem !important;
    line-height: 1.85 !important;
    color: rgba(232,233,220,0.62) !important;
    margin-bottom: 0.4em;
}

/* ── Navegación entre artículos ── */
.cmt-single-postnav {
    background: #162424;
    border-top: 1px solid rgba(232,233,220,0.07);
}

.cmt-single-postnav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
}

.cmt-postnav-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 40px 40px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.cmt-postnav-item:hover { background: rgba(61,97,99,0.08); }

.cmt-postnav-empty { display: block; }

.cmt-postnav-prev { border-right: 1px solid rgba(232,233,220,0.07); }
.cmt-postnav-next { justify-content: flex-end; border-left: 1px solid rgba(232,233,220,0.07); }

.cmt-postnav-arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(61,97,99,0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3d6163;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.cmt-postnav-item:hover .cmt-postnav-arrow {
    background: #3d6163;
    border-color: #3d6163;
    color: #e8e9dc;
}

.cmt-postnav-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cmt-postnav-next .cmt-postnav-meta { text-align: right; }

.cmt-postnav-dir {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #3d6163;
}

.cmt-postnav-title {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1rem;
    color: rgba(232,233,220,0.7);
    line-height: 1.3;
    max-width: 280px;
    transition: color 0.3s ease;
}

.cmt-postnav-item:hover .cmt-postnav-title { color: #e8e9dc; }

/* Botón central — blog */
.cmt-postnav-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px 32px;
    text-decoration: none;
    color: rgba(232,233,220,0.3);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    border-left: 1px solid rgba(232,233,220,0.07);
    border-right: 1px solid rgba(232,233,220,0.07);
}

.cmt-postnav-center:hover { color: #3d6163; }
.cmt-postnav-center svg { stroke: currentColor; }

/* ── Footer del artículo ── */
.cmt-single-article-footer {
    background: #1a2b2b;
    padding: 0 40px 80px;
}

.cmt-single-article-footer-inner {
    max-width: 720px;
    margin: 0 auto;
    padding-top: 60px;
}

.cmt-single-footer-line {
    width: 100%;
    height: 1px;
    background: rgba(232,233,220,0.1);
    margin-bottom: 28px;
}

.cmt-single-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.cmt-single-footer-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(232,233,220,0.25);
}

.cmt-single-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #3d6163;
    text-decoration: none;
    transition: gap 0.3s ease, color 0.3s ease;
}
.cmt-single-back-btn:hover { gap: 12px; color: #8ab5b7; }

/* ── Footer del sitio ── */
.cmt-single-site-footer {
    background: #162424;
    padding: 32px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.cmt-single-footer-c {
    height: 36px;
    width: auto;
    opacity: 0.35;
}

.cmt-single-footer-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cmt-single-footer-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 3px;
    color: rgba(232,233,220,0.3);
}

.cmt-single-footer-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.52rem;
    letter-spacing: 2px;
    color: rgba(232,233,220,0.18);
}

/* ── Responsive single ── */
@media (max-width: 900px) {
    .cmt-single-cols { columns: 1 !important; column-rule: none !important; }
    .cmt-postnav-title { max-width: 200px; }
    .cmt-postnav-item { padding: 32px 28px; gap: 14px; }
    .cmt-postnav-center { padding: 32px 20px; }
}

@media (max-width: 768px) {
    .cmt-single-header         { padding: 100px 24px 64px; min-height: auto; }
    .cmt-single-title          { font-size: clamp(1.9rem, 6vw, 3rem) !important; }
    .cmt-single-content        { padding: 56px 24px 64px; }
    .cmt-single-num            { font-size: clamp(14rem, 50vw, 24rem); }
    .cmt-single-content > p:first-child::first-letter { font-size: 4rem; }
}

@media (max-width: 600px) {
    .cmt-single-postnav-inner {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }
    .cmt-postnav-center {
        grid-column: span 2;
        grid-row: 2;
        border-top: 1px solid rgba(232,233,220,0.07);
        border-left: none;
        border-right: none;
        flex-direction: row;
        padding: 20px 28px;
        gap: 10px;
    }
    .cmt-postnav-prev { border-right: 1px solid rgba(232,233,220,0.07); }
    .cmt-postnav-title { max-width: 160px; font-size: 0.9rem; }
    .cmt-postnav-item { padding: 28px 20px; gap: 12px; }
}

@media (max-width: 480px) {
    .cmt-single-header         { padding: 88px 20px 56px; }
    .cmt-single-title          { font-size: 1.8rem !important; }
    .cmt-single-content        { padding: 44px 20px 60px; }
    .cmt-single-content > p:first-child { font-size: 1.05rem !important; }
    .cmt-single-content > p:first-child::first-letter { font-size: 3.5rem; }
}

/* Ocultar botón flotante de Extendify/HostGator AI Agent */
#extendify-agent-mobile-btn,
#wp-admin-bar-extendify-agent-btn {
    display: none !important;
}
