/* =============================================================
   PÁGINAS DE SERVICIO — NAI Gaviria
   ============================================================= */

:root {
    --srv-rojo:   #E30723;
    --srv-titulo: 'CentenialLT', 'Georgia', serif;
    --srv-texto:  'Open Sans', sans-serif;
}

.cr-serv,
.cr-serv * {
    box-sizing: border-box;
}

/* ── FULL BLEED — rompe el contenedor de Elementor ──────────── */
.cr-serv {
    font-family: var(--srv-texto);
    font-size: 16px;
    color: #111;
    line-height: normal;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    overflow-x: hidden;
}

.elementor-widget-shortcode .elementor-widget-container {
    padding: 0 !important;
    margin:  0 !important;
    line-height: 0;
    font-size: 0;
}

/* ── BANNER ─────────────────────────────────────────────────── */
.cr-serv-banner {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 560px;
    background-color: #111;
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: flex-end;
}

.cr-serv-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        155deg,
        rgba(0,0,0,0.04) 0%,
        rgba(0,0,0,0.28) 45%,
        rgba(0,0,0,0.86) 100%
    );
}

.cr-serv-banner__content {
    position: relative;
    z-index: 1;
    padding: 0 8% 7%;
}

/* Wrapper inline-flex para que la línea mida lo mismo que el título */
.cr-serv-banner__titulo-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 20px;
}

.cr-serv-banner__titulo {
    font-family: var(--srv-titulo);
    font-weight: 100;
    font-size: clamp(42px, 6.5vw, 80px);
    color: #fff;
    margin: 0 0 18px;
    line-height: 1.05;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

/* Línea roja tan ancha como el título */
.cr-serv-banner__linea {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--srv-rojo);
}

.cr-serv-banner__tagline {
    font-family: var(--srv-titulo);
    font-weight: 100;
    font-size: clamp(15px, 1.6vw, 20px);
    color: #fff;
    margin: 0;
    line-height: 1.4;
    opacity: 0.88;
}

/* ── CUERPO ─────────────────────────────────────────────────── */
.cr-serv-body {
    background: #fff;
    padding-bottom: 0;
}

.cr-serv-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 80px 48px;
}

.cr-serv-inner--disclaimer {
    padding-top: 0;
    padding-bottom: 72px;
}

/* ── CALLOUT — cita destacada ──────────────────────────────── */
.cr-serv-callout {
    position: relative;
    background: #f7f7f7;
    border-left: 4px solid var(--srv-rojo);
    padding: 32px 36px;
    margin-bottom: 56px;
}

.cr-serv-callout__texto {
    font-family: var(--srv-titulo);
    font-weight: 100;
    font-size: clamp(18px, 2vw, 24px);
    color: #111;
    line-height: 1.5;
    margin: 0;
}

.cr-serv-callout__texto strong {
    font-family: var(--srv-titulo);
    font-weight: 200;
}

/* Comillas decorativas */
.cr-serv-callout::before {
    content: '\201C';
    position: absolute;
    top: -8px;
    left: 20px;
    font-family: Georgia, serif;
    font-size: 60px;
    color: var(--srv-rojo);
    opacity: 0.25;
    line-height: 1;
}

/* ── ÍTEMS ──────────────────────────────────────────────────── */
.cr-serv-items {
    display: flex;
    flex-direction: column;
}

.cr-serv-item {
    display: grid;
    grid-template-columns: 34px 1fr 1.8fr;
    gap: 0 40px;
    align-items: start;
    padding: 40px 0;
    border-bottom: 1px solid #e8e8e8;
    border-radius: 2px;
}

.cr-serv-items .cr-serv-item:first-child {
    border-top: 1px solid #e8e8e8;
}

/* Ítem invertido: descripción a la izquierda, título a la derecha */
.cr-serv-item--inv {
    grid-template-columns: 1.8fr 1fr 34px;
}

.cr-serv-item--inv .cr-serv-item__icon { order: 3; }
.cr-serv-item--inv .cr-serv-item__titulo { order: 2; text-align: right; }
.cr-serv-item--inv .cr-serv-item__desc  { order: 1; }

/* Badge circular numerado */
.cr-serv-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--srv-rojo);
    color: #fff;
    font-family: var(--srv-titulo);
    font-weight: 100;
    font-size: 13px;
    letter-spacing: 0.04em;
    flex-shrink: 0;
    margin-top: 3px;
}

.cr-serv-item__titulo {
    font-family: var(--srv-titulo);
    font-weight: 100;
    font-size: clamp(18px, 1.9vw, 26px);
    color: var(--srv-rojo);
    margin: 0;
    line-height: 1.25;
}

.cr-serv-item__desc {
    font-family: var(--srv-texto);
    font-size: 16px;
    line-height: 1.85;
    color: #111;
    margin: 0;
}

/* Highlight en rojo para palabras clave en los ítems */
.cr-serv-accent {
    color: var(--srv-rojo);
    font-weight: 400;
}

/* ── CTA — banner completo ──────────────────────────────────── */
.cr-serv-cta {
    position: relative;
    width: 100%;
    padding: 64px 40px;
    background-image: url('https://naigaviria.com/wp-content/uploads/2026/03/Rectangle-60.png');
    background-size: cover;
    background-position: center center;
    text-align: center;
}

.cr-serv-cta__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
}

.cr-serv-cta__inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.cr-serv-cta__texto {
    font-family: var(--srv-titulo);
    font-weight: 100;
    font-size: clamp(20px, 2.4vw, 34px);
    color: #fff;
    margin: 0 0 32px;
    line-height: 1.35;
}

.cr-serv-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 40px;
    background: var(--srv-rojo);
    color: #fff;
    font-family: var(--srv-texto);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
}

.cr-serv-cta__btn:hover {
    background: #b80019;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.cr-serv-cta__btn:focus,
.cr-serv-cta__btn:active,
.cr-serv-cta__btn:visited {
    color: #fff;
    text-decoration: none;
    outline: none;
}

.cr-serv-cta__arrow {
    display: block;
    width: 18px;
    height: auto;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}

/* ── DISCLAIMER ─────────────────────────────────────────────── */
.cr-serv-disclaimer {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 24px 28px;
    border-left: 3px solid #ddd;
    background: #fafafa;
    font-family: var(--srv-texto);
    font-size: 12.5px;
    font-style: italic;
    color: #888;
    line-height: 1.7;
}

.cr-serv-disclaimer__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #bbb;
    margin-top: 1px;
}

.cr-serv-disclaimer__body p {
    margin: 0 0 8px;
}

.cr-serv-disclaimer__body p:last-child {
    margin-bottom: 0;
}

/* ── CIERRE — frase final (dentro del inner, después de los ítems) */
.cr-serv-cierre {
    text-align: center;
    padding: 56px 0 0;
}

.cr-serv-cierre__titulo {
    font-family: var(--srv-titulo);
    font-weight: 100;
    font-size: clamp(28px, 3.5vw, 44px);
    color: #111;
    margin: 0 0 12px;
    line-height: 1.15;
}

.cr-serv-cierre__hashtag {
    font-family: var(--srv-texto);
    font-size: 14px;
    font-weight: 600;
    color: var(--srv-rojo);
    letter-spacing: 0.04em;
    margin: 0;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */

/* Tablet landscape */
@media (max-width: 1024px) {
    .cr-serv-banner__content {
        padding: 0 6% 6%;
    }

    .cr-serv-inner {
        padding: 64px 40px;
    }

    .cr-serv-item {
        grid-template-columns: 34px 1fr 1.5fr;
        gap: 0 28px;
    }

    .cr-serv-item--inv {
        grid-template-columns: 1.5fr 1fr 34px;
    }

    .cr-serv-cta {
        padding: 56px 40px;
    }

}

/* Tablet portrait */
@media (max-width: 768px) {
    .cr-serv-banner {
        height: 75vh;
        min-height: 420px;
    }

    .cr-serv-banner__titulo {
        white-space: normal;
        font-size: clamp(36px, 8vw, 56px);
    }

    .cr-serv-banner__content {
        padding: 0 28px 44px;
    }

    .cr-serv-inner {
        padding: 48px 28px;
    }

    .cr-serv-inner--disclaimer {
        padding-bottom: 56px;
    }

    .cr-serv-callout {
        padding: 24px 28px;
        margin-bottom: 40px;
    }

    /* Ítems: apilados, sin inversión, badge reducido */
    .cr-serv-item,
    .cr-serv-item--inv {
        grid-template-columns: 30px 1fr;
        grid-template-rows: auto auto;
        gap: 10px 14px;
        padding: 28px 0;
    }

    .cr-serv-item__icon {
        width: 30px;
        height: 30px;
        font-size: 12px;
        order: unset;
        grid-column: 1;
        grid-row: 1;
    }

    .cr-serv-item__titulo {
        order: unset;
        text-align: left !important;
        grid-column: 2;
        grid-row: 1;
    }

    .cr-serv-item__desc {
        order: unset;
        grid-column: 1 / -1;
        grid-row: 2;
        padding-left: 44px;
    }

    .cr-serv-cta {
        padding: 48px 28px;
    }

    .cr-serv-cta__texto {
        font-size: clamp(18px, 4vw, 26px);
    }

    .cr-serv-cierre {
        padding: 48px 0 0;
    }
}

/* Móvil */
@media (max-width: 480px) {
    .cr-serv-banner {
        height: 65vh;
        min-height: 340px;
    }

    .cr-serv-banner__titulo {
        font-size: clamp(32px, 10vw, 44px);
    }

    .cr-serv-banner__content {
        padding: 0 20px 36px;
    }

    .cr-serv-inner {
        padding: 36px 20px;
    }

    .cr-serv-inner--disclaimer {
        padding-bottom: 44px;
    }

    .cr-serv-callout {
        padding: 20px 22px;
        margin-bottom: 32px;
    }

    .cr-serv-callout__texto {
        font-size: 16px;
    }

    .cr-serv-callout::before {
        font-size: 44px;
        top: -4px;
        left: 14px;
    }

    .cr-serv-item,
    .cr-serv-item--inv {
        grid-template-columns: 26px 1fr;
        gap: 8px 12px;
        padding: 24px 0;
    }

    .cr-serv-item__icon {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    .cr-serv-item__desc {
        padding-left: 0;
        font-size: 14.5px;
    }

    .cr-serv-cta {
        padding: 44px 20px;
    }

    .cr-serv-cta__texto {
        font-size: 18px;
        margin-bottom: 24px;
    }

    /* Botón: flex para mantener la flecha alineada */
    .cr-serv-cta__btn {
        display: flex;
        justify-content: center;
        width: 100%;
        padding: 14px 24px;
        font-size: 13px;
    }

    .cr-serv-disclaimer {
        padding: 20px;
        font-size: 12px;
        gap: 12px;
    }

    .cr-serv-disclaimer__icon {
        width: 18px;
        height: 18px;
    }

    .cr-serv-cierre {
        padding: 36px 0 0;
    }

    .cr-serv-cierre__titulo {
        font-size: clamp(24px, 7vw, 32px);
    }
}
