:root {
    --tr-bg: #101c24;
    --tr-bg-soft: #162733;
    --tr-primary: #29aeef;
    --tr-white: #ffffff;
    --tr-gray: #b8c4cc;
    --tr-card: #1b2d38;
}

body {
    background: linear-gradient(180deg, var(--tr-bg) 0%, #0f1a21 100%);
    color: var(--tr-white);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

.site-header {
    background: rgba(16, 28, 36, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(41, 174, 239, 0.15);
}

.navbar .nav-link,
.footer-list a,
.social-link {
    color: var(--tr-gray);
}

.navbar .nav-link:hover,
.footer-list a:hover,
.social-link:hover {
    color: var(--tr-primary);
}

.brand-logo,
.footer-logo {
    display: block;
    max-height: 44px;
    width: auto;
    object-fit: contain;
}

.hero-badge {
    background: rgba(41, 174, 239, 0.15);
    color: var(--tr-primary);
    border: 1px solid rgba(41, 174, 239, 0.4);
}

.hero-section {
    position: relative;
}

.hero-logo-panel {
    width: 100%;
}

.hero-logo-img {
    display: block;
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    object-position: center;
}

/* mantiene hero-card en uso para otras secciones eventuales */
.hero-card {
    position: relative;
    overflow: hidden;
}

.hero-card,
.service-card,
.project-card,
.feature-item,
.contact-form,
.cta-strip {
    background: linear-gradient(180deg, var(--tr-card), #182934);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.hero-card,
.cta-strip,
.contact-form {
    padding: 1.5rem;
}

.section-title {
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.section-subtitle,
.text-secondary-custom {
    color: var(--tr-gray);
}

.service-card,
.project-card,
.feature-item {
    padding: 1.2rem;
}

.service-card {
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(41, 174, 239, 0.45);
}

.service-icon {
    font-size: 1.8rem;
    color: var(--tr-primary);
    margin-bottom: 0.6rem;
}

.project-category {
    display: inline-block;
    font-size: 0.82rem;
    text-transform: uppercase;
    color: var(--tr-primary);
    margin-bottom: 0.4rem;
}

/* ── Proceso en flecha ── */
.process-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 2.2rem;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1 1 130px;
    max-width: 170px;
    padding: 0 0.4rem;
}

.process-node {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(41, 174, 239, 0.10);
    border: 2px solid rgba(41, 174, 239, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    cursor: default;
}

.process-step:hover .process-node {
    background: rgba(41, 174, 239, 0.22);
    border-color: var(--tr-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(41, 174, 239, 0.22);
}

.process-num {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--tr-primary);
    letter-spacing: 0.04em;
    line-height: 1;
}

.process-icon {
    font-size: 1.3rem;
    color: var(--tr-white);
    line-height: 1;
}

.process-label {
    margin-top: 0.75rem;
    margin-bottom: 0;
    font-size: 0.82rem;
    color: var(--tr-gray);
    line-height: 1.4;
    max-width: 140px;
}

.process-arrow {
    display: flex;
    align-items: center;
    padding-top: 1.75rem;
    color: rgba(41, 174, 239, 0.45);
    font-size: 1.4rem;
    flex-shrink: 0;
    align-self: flex-start;
}

@media (max-width: 767.98px) {
    .process-flow {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .process-step {
        flex-direction: row;
        text-align: left;
        max-width: 100%;
        width: 100%;
        gap: 1rem;
        padding: 0.6rem 0;
    }

    .process-node {
        flex-shrink: 0;
    }

    .process-label {
        margin-top: 0;
        max-width: none;
    }

    .process-arrow {
        display: none;
    }
}

/* mantiene compatibilidad si timeline-item aún existe */
.timeline { display: grid; gap: 0.9rem; }
.timeline-item {
    display: flex; align-items: center; gap: 0.8rem;
    padding: 0.75rem 1rem;
    background: rgba(41, 174, 239, 0.06);
    border-radius: 12px;
    border: 1px solid rgba(41, 174, 239, 0.15);
}
.timeline-badge {
    width: 34px; height: 34px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--tr-primary); color: #052235; font-weight: 700;
}

.btn-primary {
    background: var(--tr-primary);
    border-color: var(--tr-primary);
    color: #062334;
    font-weight: 600;
}

.btn-primary:hover {
    background: #1c9edb;
    border-color: #1c9edb;
    color: #041d2a;
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.35);
}

.floating-whatsapp {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1040;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    color: #ffffff;
    font-size: 1.9rem;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.25);
}

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.footer-list li {
    margin-bottom: 0.45rem;
}

.footer-separator {
    border-color: rgba(255, 255, 255, 0.12);
}

.form-control,
.form-select {
    background-color: rgba(12, 20, 25, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--tr-white);
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(12, 20, 25, 0.85);
    border-color: var(--tr-primary);
    color: var(--tr-white);
    box-shadow: 0 0 0 0.2rem rgba(41, 174, 239, 0.18);
}

.contact-feedback-modal .modal-content {
    background: linear-gradient(180deg, var(--tr-card), #182934);
    border: 1px solid rgba(41, 174, 239, 0.35);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.contact-feedback-modal .modal-body {
    color: var(--tr-white);
}

.contact-feedback-icon {
    font-size: 3rem;
    color: var(--tr-primary);
    line-height: 1;
}

.contact-feedback-modal.show .contact-feedback-icon {
    animation: contactFeedbackPop 0.45s ease;
}

@keyframes contactFeedbackPop {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 991.98px) {
    .brand-logo,
    .footer-logo {
        max-height: 36px;
    }

    .hero-logo-img {
        max-height: 220px;
    }
}

.journey-header {
    max-width: 760px;
    margin-bottom: 2.5rem;
}

.journey-timeline {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
}

.journey-progress {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 27px;
    width: 4px;
    pointer-events: none;
}

.journey-progress-track,
.journey-progress-fill {
    position: absolute;
    left: 0;
    width: 100%;
    border-radius: 999px;
}

.journey-progress-track {
    top: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.08);
}

.journey-progress-fill {
    top: 0;
    height: 0;
    background: linear-gradient(180deg, var(--tr-primary), #1c9edb);
    box-shadow: 0 0 16px rgba(41, 174, 239, 0.45);
    transition: height 0.35s ease;
}

.journey-steps {
    display: grid;
    gap: 1rem;
}

.journey-step {
    position: relative;
    padding-left: 4.5rem;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.journey-step.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.journey-card {
    background: linear-gradient(180deg, var(--tr-card), #182934);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.journey-step.is-active .journey-card,
.journey-card:hover {
    border-color: rgba(41, 174, 239, 0.42);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

.journey-step.is-active .journey-card {
    transform: translateY(-2px);
}

.journey-trigger {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 1.15rem 1.2rem;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.journey-trigger:focus-visible {
    outline: 2px solid var(--tr-primary);
    outline-offset: -2px;
}

.journey-marker {
    position: absolute;
    left: 0;
    top: 1.35rem;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(41, 174, 239, 0.12);
    border: 2px solid rgba(41, 174, 239, 0.35);
    color: var(--tr-primary);
    font-size: 1.35rem;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    z-index: 2;
}

.journey-step.is-active .journey-marker {
    background: var(--tr-primary);
    border-color: var(--tr-primary);
    color: #052235;
    box-shadow: 0 0 0 6px rgba(41, 174, 239, 0.16);
    transform: scale(1.05);
}

.journey-meta {
    display: grid;
    gap: 0.35rem;
    flex: 1;
    min-width: 0;
}

.journey-year {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.15rem 0.65rem;
    border-radius: 999px;
    background: rgba(41, 174, 239, 0.12);
    color: var(--tr-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.journey-title {
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
}

.journey-summary {
    color: var(--tr-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

.journey-chevron {
    margin-left: 0.75rem;
    margin-top: 0.15rem;
    color: var(--tr-primary);
    transition: transform 0.25s ease;
}

.journey-step.is-active .journey-chevron {
    transform: rotate(180deg);
}

.journey-panel {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.35s ease, opacity 0.25s ease;
}

.journey-panel.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
}

.journey-panel-body {
    overflow: hidden;
    padding: 0 1.2rem;
}

.journey-panel.is-open .journey-panel-body {
    padding-bottom: 1.15rem;
}

.journey-details {
    color: var(--tr-gray);
    line-height: 1.6;
}

.journey-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.journey-tags li {
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(41, 174, 239, 0.25);
    background: rgba(41, 174, 239, 0.08);
    color: var(--tr-white);
    font-size: 0.78rem;
}

@media (min-width: 768px) {
    .journey-progress {
        left: 50%;
        transform: translateX(-50%);
    }

    .journey-step {
        padding-left: 0;
        width: calc(50% - 2.2rem);
    }

    .journey-step:nth-child(odd) {
        margin-right: auto;
        padding-right: 3.5rem;
        text-align: right;
    }

    .journey-step:nth-child(even) {
        margin-left: auto;
        padding-left: 3.5rem;
    }

    .journey-step:nth-child(odd) .journey-marker {
        left: auto;
        right: -3.65rem;
    }

    .journey-step:nth-child(even) .journey-marker {
        left: -3.65rem;
    }

    .journey-step:nth-child(odd) .journey-trigger {
        flex-direction: row-reverse;
        text-align: right;
    }

    .journey-step:nth-child(odd) .journey-meta {
        align-items: end;
    }

    .journey-step:nth-child(odd) .journey-chevron {
        margin-left: 0;
        margin-right: 0.75rem;
    }
}

@media (min-width: 992px) {
    .journey-steps {
        gap: 1.35rem;
    }

    .journey-title {
        font-size: 1.15rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .journey-step,
    .journey-progress-fill,
    .journey-card,
    .journey-marker,
    .journey-panel,
    .journey-chevron {
        transition: none;
    }

    .journey-step {
        opacity: 1;
        transform: none;
    }
}
