/* ============================================
   LANDING PAGE - Hugo Morales & Asociados S.A.S.
   Estilos exclusivos de la landing page
   Navbar + Footer ahora en public-nav.css
   ============================================ */

/* --- Variables landing (aliases de --pn-*) --- */
:root {
    --landing-max-width: var(--pn-max-width);
    --landing-nav-height: var(--pn-nav-height);
    --landing-section-py: 100px;
    --landing-green: var(--pn-green);
    --landing-green-dark: var(--pn-green-dark);
    --landing-green-deeper: var(--pn-green-deeper);
    --landing-gold: var(--pn-gold);
    --landing-gold-light: var(--pn-gold-light);
    --landing-gold-dark: var(--pn-gold-dark);
    --landing-text: var(--pn-text);
    --landing-text-mid: var(--pn-text-mid);
    --landing-bg: var(--pn-bg);
    --landing-white: var(--pn-white);
    --landing-border: var(--pn-border);
    --landing-radius: var(--pn-radius);
    --landing-shadow: var(--pn-shadow);
    --landing-shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --landing-transition: var(--pn-transition);
}

/* --- Anular sidebar en landing --- */
.landing-page .sidebar,
.landing-page .sidebar-overlay {
    display: none !important;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-landing {
    position: relative;
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: calc(var(--landing-nav-height) + 40px) 32px 0;
    background: linear-gradient(160deg, var(--landing-green-deeper) 0%, var(--landing-green) 40%, var(--landing-green-dark) 100%);
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23c4a35a' stroke-width='0.8'%3E%3Cpath d='M0 40 L40 0 L80 40 L40 80 Z'/%3E%3Cpath d='M20 20 L60 20 L60 60 L20 60 Z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 80px 80px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(196,163,90,0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 80%, rgba(0,0,0,0.2) 0%, transparent 50%);
}

.hero-content-landing {
    position: relative;
    z-index: 2;
    max-width: 780px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-landing h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-landing h1 span {
    color: var(--landing-gold);
}

.hero-landing .hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.82);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: var(--landing-gold);
    color: var(--landing-green-dark);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all var(--landing-transition);
    letter-spacing: 0.3px;
}

.btn-hero-primary:hover {
    background: var(--landing-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(196,163,90,0.35);
}

.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 12px;
    text-decoration: none;
    transition: all var(--landing-transition);
}

.btn-hero-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.08);
    transform: translateY(-2px);
}

/* Stats bar at bottom of hero */
.hero-stats-bar {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: auto;
    width: 100%;
    max-width: 800px;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(12px);
    border-radius: 16px 16px 0 0;
    padding: 24px 16px;
}

.hero-stat {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 0 20px;
}

.hero-stat + .hero-stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: rgba(255,255,255,0.15);
}

.hero-stat .counter-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--landing-gold);
    line-height: 1.1;
}

.stat-label-hero {
    display: block;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* ============================================
   SECTION BASE
   ============================================ */

.landing-section {
    padding: var(--landing-section-py) 32px;
}

.landing-section-dark {
    background: linear-gradient(160deg, var(--landing-green-deeper) 0%, var(--landing-green) 100%);
    color: #fff;
}

.landing-section-alt {
    background: var(--landing-bg);
}

.section-container {
    max-width: var(--landing-max-width);
    margin: 0 auto;
}

.section-heading {
    text-align: center;
    margin-bottom: 60px;
}

.section-heading h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--landing-green);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.landing-section-dark .section-heading h2 {
    color: #fff;
}

.section-heading .heading-line {
    display: block;
    width: 60px;
    height: 4px;
    background: var(--landing-gold);
    border-radius: 2px;
    margin: 16px auto 0;
}

.section-heading p {
    font-size: 1.05rem;
    color: var(--landing-text-mid);
    max-width: 560px;
    margin: 20px auto 0;
    line-height: 1.7;
}

.landing-section-dark .section-heading p {
    color: rgba(255,255,255,0.7);
}

/* ============================================
   SERVICIOS - Grid 4 columnas
   ============================================ */

.services-grid-landing {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.svc-card {
    background: var(--landing-white);
    border-radius: var(--landing-radius);
    padding: 32px 24px 28px;
    border: 1px solid var(--landing-border);
    transition: all var(--landing-transition);
    position: relative;
    overflow: hidden;
}

.svc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--landing-green), var(--landing-gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--landing-transition);
}

.svc-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--landing-shadow-lg);
    border-color: transparent;
}

.svc-card:hover::before {
    transform: scaleX(1);
}

.svc-icon-badge {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--landing-green), var(--landing-green-dark));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all var(--landing-transition);
}

.svc-icon-badge svg {
    width: 28px;
    height: 28px;
    stroke: #fff;
    stroke-width: 1.5;
    fill: none;
}

.svc-card:hover .svc-icon-badge {
    background: linear-gradient(135deg, var(--landing-gold), var(--landing-gold-dark));
    transform: scale(1.06);
}

.svc-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--landing-green);
    margin-bottom: 10px;
}

.svc-card p {
    font-size: 0.9rem;
    color: var(--landing-text-mid);
    line-height: 1.6;
    margin-bottom: 16px;
}

.svc-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.svc-features li {
    font-size: 0.85rem;
    color: var(--landing-text);
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.svc-features li svg {
    width: 16px;
    height: 16px;
    stroke: var(--landing-green);
    stroke-width: 2.5;
    fill: none;
    flex-shrink: 0;
}

/* ============================================
   POR QUE ELEGIRNOS
   ============================================ */

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.why-card {
    text-align: center;
    padding: 40px 28px;
    background: var(--landing-white);
    border-radius: var(--landing-radius);
    border: 1px solid var(--landing-border);
    transition: all var(--landing-transition);
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--landing-shadow);
}

.why-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(74,82,64,0.08), rgba(196,163,90,0.08));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: all var(--landing-transition);
}

.why-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--landing-green);
    stroke-width: 1.5;
    fill: none;
}

.why-card:hover .why-icon {
    background: linear-gradient(135deg, var(--landing-green), var(--landing-green-dark));
}

.why-card:hover .why-icon svg {
    stroke: var(--landing-gold);
}

.why-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--landing-green);
    margin-bottom: 12px;
}

.why-card p {
    font-size: 0.92rem;
    color: var(--landing-text-mid);
    line-height: 1.65;
}

/* ============================================
   ESTADISTICAS - Counter Up
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 960px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
}

.stat-card .stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--landing-gold);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-card .stat-suffix {
    font-size: 1.8rem;
    font-weight: 700;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ============================================
   CTA INTERMEDIO
   ============================================ */

.cta-mid {
    text-align: center;
    padding: 80px 32px;
    background: var(--landing-bg);
}

.cta-mid-inner {
    max-width: 650px;
    margin: 0 auto;
    background: var(--landing-white);
    border-radius: var(--landing-radius);
    padding: 56px 48px;
    box-shadow: var(--landing-shadow);
    position: relative;
    overflow: hidden;
}

.cta-mid-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--landing-green), var(--landing-gold), var(--landing-green));
}

.cta-mid h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--landing-green);
    margin-bottom: 12px;
}

.cta-mid p {
    font-size: 1rem;
    color: var(--landing-text-mid);
    margin-bottom: 28px;
    line-height: 1.6;
}

.cta-mid-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-landing-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--landing-green), var(--landing-green-dark));
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all var(--landing-transition);
}

.btn-landing-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74,82,64,0.3);
}

.btn-landing-gold {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--landing-gold);
    color: var(--landing-green-dark);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all var(--landing-transition);
}

.btn-landing-gold:hover {
    background: var(--landing-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(196,163,90,0.35);
}

/* ============================================
   CONTACTO + MAPA
   ============================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info-landing h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--landing-green);
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-item-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(74,82,64,0.08), rgba(196,163,90,0.08));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--landing-green);
    stroke-width: 1.5;
    fill: none;
}

.contact-item-text h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--landing-text);
    margin-bottom: 4px;
}

.contact-item-text p,
.contact-item-text a {
    font-size: 0.9rem;
    color: var(--landing-text-mid);
    line-height: 1.5;
    text-decoration: none;
}

.contact-item-text a:hover {
    color: var(--landing-gold-dark);
}

.contact-map {
    border-radius: var(--landing-radius);
    overflow: hidden;
    box-shadow: var(--landing-shadow);
    border: 1px solid var(--landing-border);
    height: 360px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================================
   ANIMACIONES
   ============================================ */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.35s; }

/* Skip link para accesibilidad */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--landing-gold);
    color: var(--landing-green-dark);
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    z-index: 9999;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 16px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .services-grid-landing {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    :root {
        --landing-section-py: 72px;
    }

    .hero-landing h1 {
        font-size: 2.4rem;
    }

    .services-grid-landing {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .section-heading h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .hero-landing {
        min-height: 85vh;
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-landing h1 {
        font-size: 2rem;
    }

    .hero-landing .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-hero-primary,
    .btn-hero-outline {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .hero-stats-bar {
        flex-wrap: wrap;
        max-width: 100%;
        border-radius: 0;
    }

    .hero-stat {
        flex: 1 1 45%;
        padding: 12px 8px;
    }

    .hero-stat + .hero-stat::before {
        display: none;
    }

    .hero-stat .counter-value {
        font-size: 1.6rem;
    }

    .landing-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .services-grid-landing {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .svc-card {
        padding: 24px 20px;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .why-card {
        padding: 28px 24px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .stat-card .stat-number {
        font-size: 2.2rem;
    }

    .cta-mid-inner {
        padding: 40px 24px;
    }

    .cta-mid h2 {
        font-size: 1.4rem;
    }

    .cta-mid-buttons {
        flex-direction: column;
        align-items: center;
    }

    .contact-map {
        height: 280px;
    }

    .section-heading h2 {
        font-size: 1.5rem;
    }

    .section-heading {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .hero-landing h1 {
        font-size: 1.7rem;
    }

    .hero-stat {
        flex: 1 1 45%;
    }

    .stat-card .stat-number {
        font-size: 1.8rem;
    }
}

/* Respeto por preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .svc-card,
    .why-card,
    .btn-hero-primary,
    .btn-hero-outline {
        transition: none;
    }

    .svc-card:hover,
    .why-card:hover {
        transform: none;
    }
}
