:root {
    --color-main: #ff6b00;
    --color-dark: #1c1c1c;
    --color-gray: #2e2e2e;
    --color-light: #f5f5f5;
}

body {
    padding-top: 76px;
    background-color: #ffffff;
    color: #212529;
}

.text-main {
    color: var(--color-main) !important;
}

.btn-main {
    background-color: var(--color-main);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    transition: 0.3s ease;
    text-decoration: none;
}

.btn-main:hover {
    background-color: #e65c00;
    color: #fff;
}

.card-custom {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.navbar .nav-link {
    color: rgba(255,255,255,.8);
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--color-main);
}

footer a:hover {
    color: var(--color-main) !important;
}

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

.article-header {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.article-shell {
    background: #fff;
    border-radius: 18px;
}

.article-hero-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 30px auto;
}

.article-hero-image {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.article-content {
    font-size: 16px;
    color: #333;
}

.article-content h2 {
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 700;
    border-left: 4px solid var(--color-main);
    padding-left: 10px;
}

.article-content p {
    line-height: 1.8;
    margin-bottom: 18px;
}

.article-content hr {
    margin: 40px 0;
    opacity: 0.15;
}

.article-content ul,
.article-content ol {
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content strong {
    color: #000;
}

.article-content .box {
    background: #f8f9fa;
    padding: 15px;
    border-left: 4px solid var(--color-main);
    margin: 20px 0;
    border-radius: 5px;
}

/* =========================
   TARJETAS BLOG
   ========================= */

.blog-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.10) !important;
}

.card-img-top {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
}

/* =========================
   RECURSOS
   ========================= */

/* Las portadas de recursos deben mostrarse completas, no recortadas. */
.card-img-top.resource-cover-image {
    height: 360px;
    padding: 14px;
    object-fit: contain;
    object-position: center;
    background: linear-gradient(135deg, #f7f7f7, #ececec);
}

.article-hero-image.resource-hero-image {
    height: auto;
    max-height: 680px;
    padding: 18px;
    object-fit: contain;
    object-position: center;
    background: linear-gradient(135deg, #f7f7f7, #ececec);
}

.resource-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.10) !important;
}

.resource-detail-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.resource-info-box {
    background: #f8f9fa;
    border-left: 4px solid var(--color-main);
    padding: 18px;
    border-radius: 8px;
}

.related-resource-item {
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #ececec;
}

.related-resource-item:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* =========================
   FORMULARIOS
   ========================= */

.btn-outline-warning {
    border-color: var(--color-main);
    color: var(--color-main);
}

.btn-outline-warning:hover {
    background-color: var(--color-main);
    color: #fff;
    border-color: var(--color-main);
}

.form-control,
.form-select,
textarea.form-control {
    border-radius: 10px;
    border: 1px solid #dcdcdc;
    padding: 10px 14px;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: var(--color-main);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 0, 0.15);
}

.form-label {
    font-weight: 600;
}

.iti {
    width: 100%;
}

.iti input {
    width: 100%;
}

/* =========================
   ALERTAS
   ========================= */

.alert-success {
    border: 0;
    border-left: 4px solid #198754;
}

/* =========================
   COMENTARIOS
   ========================= */

.discussion-section .card {
    border-radius: 14px;
}

.comment-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.comment-card__body {
    padding: 24px;
}

.reply-list {
    padding-left: 28px;
    border-left: 3px solid #ececec;
}

.reply-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 575.98px) {

    .article-hero-wrapper {
        max-width: 100%;
        margin-bottom: 24px;
    }

    .article-hero-image {
        width: 100%;
        height: auto;
        border-radius: 12px;
    }

    .card-img-top.resource-cover-image {
        height: 320px;
    }

    .article-hero-image.resource-hero-image {
        max-height: 520px;
        padding: 10px;
    }
}

.blog-card-image {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #f5f5f5;
}

.service-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-cover-image {
    width: 100%;
    height: auto;
    display: block;
}

.service-card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card-body p {
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

.service-card-body .btn {
    align-self: flex-start;
}

@media (max-width: 767.98px) {
    .service-cover-image {
        height: 220px;
    }
}

.service-hero-image-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.service-hero-image {
    width: 100%;
    height: auto;
    display: block;
}

/* =========================
   LANDINGS DE SERVICIOS
   ========================= */

.service-landing-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 20%, rgba(255, 107, 0, .16), transparent 32%),
        linear-gradient(135deg, #161616 0%, #222 100%);
}

.service-landing-hero::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 50%;
    right: -110px;
    bottom: -130px;
}

.service-landing-hero .container {
    position: relative;
    z-index: 1;
}

.service-kicker {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--color-main);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .78rem;
    font-weight: 700;
}

.service-kicker::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--color-main);
}

.service-landing-title {
    max-width: 760px;
    line-height: 1.06;
}

.service-landing-lead {
    max-width: 690px;
    font-size: 1.15rem;
    line-height: 1.7;
}

.service-landing-visual {
    position: relative;
    border-radius: 22px;
    padding: 8px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 28px 60px rgba(0,0,0,.34);
}

.service-landing-visual img {
    width: 100%;
    display: block;
    border-radius: 16px;
}

.service-landing-proof {
    margin-top: -1px;
    background: #fff;
    border-bottom: 1px solid #ececec;
}

.service-proof-item {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: 1.1rem 0;
}

.service-proof-mark {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,107,0,.1);
    color: var(--color-main);
    font-weight: 800;
}

.service-section {
    padding: 5rem 0;
}

.service-section-soft {
    background: #f6f7f8;
}

.service-section-dark {
    background: #171717;
    color: #fff;
}

.service-section-heading {
    max-width: 760px;
    margin-bottom: 2.5rem;
}

.service-section-heading.centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.service-problem-card,
.service-feature-card,
.service-related-card {
    height: 100%;
    border: 1px solid #e9ecef;
    border-radius: 18px;
    padding: 1.5rem;
    background: #fff;
    box-shadow: 0 12px 34px rgba(24, 24, 24, .06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.service-problem-card:hover,
.service-feature-card:hover,
.service-related-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,107,0,.28);
    box-shadow: 0 16px 40px rgba(24, 24, 24, .09);
}

.service-problem-number,
.service-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255,107,0,.1);
    color: var(--color-main);
    font-weight: 800;
    margin-bottom: 1rem;
}

.service-feature-card {
    padding: 1.65rem;
}

.service-feature-card h3,
.service-problem-card h3,
.service-related-card h3 {
    font-size: 1.1rem;
}

.service-feature-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.service-feature-list li {
    position: relative;
    padding: .55rem 0 .55rem 1.8rem;
    color: #5d6369;
}

.service-feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: .55rem;
    color: var(--color-main);
    font-weight: 800;
}

.service-process {
    position: relative;
}

.service-step {
    height: 100%;
    padding: 1.5rem;
    border-radius: 18px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.09);
}

.service-step p {
    color: rgba(255,255,255,.62);
}

.service-flow {
    border-radius: 22px;
    border: 1px solid #e8e8e8;
    background: #fff;
    padding: 2rem;
    box-shadow: 0 18px 45px rgba(0,0,0,.07);
}

.service-flow-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eeeeee;
}

.service-flow-step:last-child {
    border-bottom: 0;
}

.service-flow-step strong {
    display: block;
}

.service-flow-arrow {
    color: var(--color-main);
    font-weight: 900;
    font-size: 1.2rem;
}

.service-faq details {
    border: 1px solid #e4e6e8;
    border-radius: 14px;
    background: #fff;
    margin-bottom: .9rem;
    padding: 0 1.25rem;
}

.service-faq summary {
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    padding: 1.15rem 2rem 1.15rem 0;
    position: relative;
}

.service-faq summary::-webkit-details-marker {
    display: none;
}

.service-faq summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: .9rem;
    font-size: 1.35rem;
    color: var(--color-main);
}

.service-faq details[open] summary::after {
    content: "−";
}

.service-faq details p {
    color: #6c757d;
    padding-bottom: 1.15rem;
    margin-bottom: 0;
}

.service-final-cta {
    border-radius: 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 15%, rgba(255,107,0,.22), transparent 34%),
        #181818;
    color: #fff;
    box-shadow: 0 22px 55px rgba(0,0,0,.18);
}

.service-related-card a {
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .service-landing-title {
        max-width: 100%;
    }

    .service-landing-visual {
        margin-top: 1rem;
    }
}

@media (max-width: 767.98px) {
    .service-section {
        padding: 3.5rem 0;
    }

    .service-landing-hero {
        text-align: left;
    }

    .service-landing-title {
        font-size: 2.25rem;
    }

    .service-landing-lead {
        font-size: 1.03rem;
    }

    .service-proof-item {
        padding: .75rem 0;
    }

    .service-problem-card,
    .service-feature-card,
    .service-related-card,
    .service-step,
    .service-flow {
        padding: 1.25rem;
    }
}