/* =====================================================================
   Rastro - Landing institucional
   assets/css/landing.css
   ---------------------------------------------------------------------
   Extiende style.css (paleta, tipografía) solo para la landing.
   Firma visual: una línea de "pulso" (trazo tipo monitor de signos
   vitales) que separa secciones -- coherente con un sistema clínico
   de investigación, sin caer en el gradiente/blob genérico.
   ===================================================================== */

.landing-body {
    background: #fff;
    color: var(--pc-texto);
    overflow-x: hidden;
}

.landing-eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--pc-verde-fvet);
}

/* ---------------------------------------------------------------- */
/* Barra institucional superior                                      */
/* ---------------------------------------------------------------- */
.topbar-institucional {
    background: #062e22;
    color: rgba(255,255,255,.75);
    font-size: .78rem;
}
.topbar-institucional a { color: rgba(255,255,255,.75); text-decoration: none; }
.topbar-institucional a:hover { color: #fff; }

/* ---------------------------------------------------------------- */
/* Nav principal                                                     */
/* ---------------------------------------------------------------- */
.landing-nav {
    background: #fff;
    padding: .9rem 0;
    border-bottom: 1px solid var(--pc-borde);
    transition: box-shadow .25s ease;
}
.landing-nav.scrolled { box-shadow: 0 2px 18px rgba(0,0,0,.06); }
.landing-nav .nav-link {
    color: var(--pc-texto);
    font-weight: 500;
    font-size: .92rem;
    padding: .4rem .9rem !important;
    position: relative;
}
.landing-nav .nav-link.active,
.landing-nav .nav-link:hover { color: var(--pc-verde-fvet); }
.landing-nav .nav-link.active::after {
    content: '';
    position: absolute;
    left: .9rem; right: .9rem; bottom: -2px;
    height: 2px;
    background: var(--pc-verde-fvet);
}

/* ---------------------------------------------------------------- */
/* Hero                                                               */
/* ---------------------------------------------------------------- */
.hero {
    position: relative;
    padding: 4.5rem 0 3rem;
    background:
        radial-gradient(650px 320px at 82% 15%, rgba(4,113,76,.06), transparent 70%),
        #fff;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(4,113,76,.08);
    color: var(--pc-verde-fvet);
    font-size: .8rem;
    font-weight: 600;
    padding: .35rem .8rem;
    border-radius: 30px;
}
.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(2.1rem, 3.6vw, 3rem);
    line-height: 1.12;
    letter-spacing: -.01em;
}
.hero .lead {
    font-size: 1.05rem;
    color: var(--pc-texto-muted);
    max-width: 34rem;
}
.hero-img-wrap {
    position: relative;
    border-radius: 50% / 40%;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-dot-grid {
    position: absolute;
    top: -14px; left: -14px;
    width: 90px; height: 90px;
    background-image: radial-gradient(circle, var(--pc-verde-fvet) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    opacity: .35;
    z-index: -1;
}

.hero-login-card {
    border-radius: var(--pc-radius);
    box-shadow: var(--pc-shadow-hover);
    border: 1px solid var(--pc-borde);
}
.hero-login-card .card-header-brand {
    background: var(--pc-verde-fvet);
    color: #fff;
    border-radius: var(--pc-radius) var(--pc-radius) 0 0;
    padding: 1.25rem 1.5rem;
}

/* ---------------------------------------------------------------- */
/* Firma visual: línea de pulso (separador entre secciones)          */
/* ---------------------------------------------------------------- */
.pulse-divider {
    display: block;
    width: 100%;
    height: 34px;
    color: var(--pc-verde-fvet);
    opacity: .55;
}
.pulse-divider path {
    stroke-dasharray: 340;
    stroke-dashoffset: 340;
    animation: pulseDraw 2.6s ease-out forwards;
    animation-play-state: paused;
}
.pulse-divider.in-view path { animation-play-state: running; }
@keyframes pulseDraw {
    to { stroke-dashoffset: 0; }
}

/* ---------------------------------------------------------------- */
/* Secciones genéricas                                               */
/* ---------------------------------------------------------------- */
.section { padding: 4.5rem 0; }
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}
.section-subtitle {
    color: var(--pc-texto-muted);
    max-width: 38rem;
}
.bg-alt { background: var(--pc-fondo); }

/* ---------------------------------------------------------------- */
/* Servicios                                                          */
/* ---------------------------------------------------------------- */
.servicio-card {
    height: 100%;
    padding: 1.9rem 1.6rem;
    border-radius: var(--pc-radius);
    background: #fff;
    border: 1px solid var(--pc-borde);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.servicio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pc-shadow-hover);
    border-color: transparent;
}
.servicio-icon {
    width: 52px; height: 52px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 14px;
    background: rgba(4,113,76,.09);
    color: var(--pc-verde-fvet);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.servicio-card:nth-child(4) .servicio-icon,
.servicio-card:nth-child(5) .servicio-icon {
    background: rgba(0,74,130,.09);
    color: var(--pc-azul-udelar);
}

/* ---------------------------------------------------------------- */
/* Barra de estadísticas (contadores animados)                       */
/* ---------------------------------------------------------------- */
.stats-bar {
    background: linear-gradient(120deg, var(--pc-verde-fvet) 0%, #035d3e 100%);
    color: #fff;
}
.stat-number {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}
.stat-label {
    font-size: .85rem;
    color: rgba(255,255,255,.75);
}

/* ---------------------------------------------------------------- */
/* Objetivos / beneficios (layout alternado imagen-texto)            */
/* ---------------------------------------------------------------- */
.beneficio-row:not(:last-child) { margin-bottom: 3.2rem; }
.beneficio-icon-lg {
    width: 60px; height: 60px;
    border-radius: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    background: rgba(4,113,76,.09);
    color: var(--pc-verde-fvet);
}
.beneficio-lista li {
    padding-left: 1.6rem;
    position: relative;
    margin-bottom: .6rem;
    color: var(--pc-texto-muted);
}
.beneficio-lista li::before {
    content: '\2713';
    position: absolute; left: 0; top: 0;
    color: var(--pc-verde-fvet);
    font-weight: 700;
}

/* ---------------------------------------------------------------- */
/* Capturas del sistema (mockup tipo navegador)                      */
/* ---------------------------------------------------------------- */
.browser-mockup {
    border-radius: var(--pc-radius);
    overflow: hidden;
    box-shadow: var(--pc-shadow-hover);
    border: 1px solid var(--pc-borde);
    background: #fff;
}
.browser-mockup .browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: .6rem .9rem;
    background: #eef0f2;
}
.browser-mockup .browser-dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: #d0d5db;
}
.browser-mockup img { width: 100%; display: block; }

/* ---------------------------------------------------------------- */
/* Tecnologías                                                        */
/* ---------------------------------------------------------------- */
.tech-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem 1.1rem;
    border-radius: 30px;
    background: #fff;
    border: 1px solid var(--pc-borde);
    font-size: .85rem;
    font-weight: 500;
    color: var(--pc-texto);
}
.tech-chip i { color: var(--pc-verde-fvet); }

/* ---------------------------------------------------------------- */
/* Arquitectura MVC                                                   */
/* ---------------------------------------------------------------- */
.mvc-box {
    border-radius: var(--pc-radius);
    padding: 1.6rem;
    background: #fff;
    border: 1px solid var(--pc-borde);
    text-align: center;
    height: 100%;
}
.mvc-box .mvc-letter {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--pc-verde-fvet);
}
.mvc-arrow { color: var(--pc-texto-muted); font-size: 1.4rem; }

/* ---------------------------------------------------------------- */
/* Línea de tiempo del proyecto (las 12 fases reales)                 */
/* ---------------------------------------------------------------- */
.timeline { position: relative; padding-left: 2.2rem; }
.timeline::before {
    content: '';
    position: absolute; left: 7px; top: 6px; bottom: 6px;
    width: 2px;
    background: var(--pc-borde);
}
.timeline-item { position: relative; padding-bottom: 1.7rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
    content: '';
    position: absolute; left: -2.2rem; top: 3px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--pc-borde);
}
.timeline-item.done::before { border-color: var(--pc-verde-fvet); background: var(--pc-verde-fvet); }
.timeline-item.active::before { border-color: var(--pc-verde-fvet); }
.timeline-fase {
    font-family: 'IBM Plex Mono', monospace;
    font-size: .72rem;
    color: var(--pc-texto-muted);
}
.timeline-item.done .timeline-fase,
.timeline-item.active .timeline-fase { color: var(--pc-verde-fvet); }

/* ---------------------------------------------------------------- */
/* Equipo                                                             */
/* ---------------------------------------------------------------- */
.team-card {
    text-align: center;
    padding: 2rem 1.2rem;
    border-radius: var(--pc-radius);
    background: #fff;
    border: 1px solid var(--pc-borde);
    transition: box-shadow .25s ease, transform .25s ease;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--pc-shadow-hover); }
.team-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: #fff;
    background: var(--pc-verde-fvet);
    margin-bottom: 1rem;
}

/* ---------------------------------------------------------------- */
/* Footer institucional                                               */
/* ---------------------------------------------------------------- */
.footer-landing {
    background: #062e22;
    color: rgba(255,255,255,.7);
}
.footer-landing h6 { color: #fff; font-weight: 600; font-size: .88rem; }
.footer-landing a { color: rgba(255,255,255,.65); text-decoration: none; font-size: .87rem; }
.footer-landing a:hover { color: #fff; }
.footer-landing .social-icon {
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #fff;
}

/* ---------------------------------------------------------------- */
/* Reveal on scroll                                                   */
/* ---------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .reveal, .pulse-divider path { transition: none; animation: none; opacity: 1; transform: none; }
}

@media (max-width: 991.98px) {
    .hero-img-wrap { margin-top: 2.5rem; }
}
