/* ============================================================================
   SERNA SOLUCIONES - Landing Page Styles
   Single source of truth. Do not duplicate these rules elsewhere.
   ============================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    background: #FFFFFF;
    color: #0F172A;
    line-height: 1.6;
    overflow-x: hidden;
}

* {
    scrollbar-color: #CBD5E1 #F8FAFC;
    scrollbar-width: thin;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #F8FAFC;
}

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.875rem, 4vw, 3rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    font-size: 1rem;
    color: #475569;
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Layout utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 22px;
}

section {
    padding: 6rem 2rem;
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-family: 'Manrope', sans-serif;
}

.btn-primary {
    background: #10B981;
    color: white;
}

.btn-primary:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.2);
}

.btn-secondary {
    background: transparent;
    color: #0F172A;
    border: 2px solid #E2E8F0;
}

.btn-secondary:hover {
    border-color: #0F172A;
    background: #F8FAFC;
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
}

/* Reveal-on-scroll: driven by IntersectionObserver toggling .is-visible.
   Elements start hidden/offset via [data-reveal] and transition to their
   natural state on their own — no JS library needs to recalculate scroll
   position or page height, so nothing to desync. */
[data-reveal] {
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal="up"] {
    transform: translateY(40px);
}

[data-reveal="left"] {
    transform: translateX(-40px);
}

[data-reveal="scale"] {
    transform: scale(0.92);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* Respect users who don't want motion. */
@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

.word-in {
    display: inline-block;
}

/* Navigation */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #E2E8F0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: #0F172A;
}

.nav-logo-img {
    height: 75px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #475569;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: -100%;
    width: 100%;
    height: 2px;
    background: #10B981;
    transition: left 0.3s ease;
}

.nav-link:hover::after {
    left: 0;
}

/* Hero */
.hero {
    padding-top: 70px;
    padding-bottom: 1rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-content {
    display: block;
}

.hero-title {
    font-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #1D4ED8;
    text-shadow: 0 6px 20px rgba(29, 78, 216, 0.22);
    display: block;
}

.hero-title .word-in {
    display: block;
}

.hero-title .word-in:first-child {
    color: #0F172A;
    text-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}

.hero-description {
    font-size: 1.125rem;
    color: #475569;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-visual {
    display: block;
}

.visual-placeholder {
    background: #F8FAFC;
    border: 2px solid #E2E8F0;
    border-radius: 1rem;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    gap: 1.5rem;
}

.visual-icon {
    width: 100%;
    max-width: 300px;
    height: auto;
    opacity: 0.6;
}

.visual-text {
    color: #94A3B8;
    text-align: center;
    font-size: 0.875rem;
}

.hero-image {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    border-radius: 1rem;
    border: 2px solid #E2E8F0;
    display: block;
}

/* Section headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    color: #0F172A;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #475569;
    max-width: 600px;
    margin: 0 auto;
}

/* Services */
.services {
    background: #FFFFFF;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 2.5rem;
}

.service-card {
    padding: 1.5rem;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    border-color: #10B981;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
    transform: translateY(-4px);
}

.service-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #F1F5F9;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: block;
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 1.25rem;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.08);
    color: #10B981;
}

.service-icon svg {
    width: 26px;
    height: 26px;
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #0F172A;
}

.service-description {
    color: #475569;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-link {
    color: #10B981;
    font-weight: 600;
    position: relative;
}

.service-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #10B981;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.service-card:hover .service-link::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Process */
.process {
    background: #F8FAFC;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.process-step {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    border-left: 4px solid #10B981;
    position: relative;
}

.step-number {
    display: inline-flex;
    width: 50px;
    height: 50px;
    background: #10B981;
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.step-content h3 {
    color: #0F172A;
    margin-bottom: 0.75rem;
}

.step-content p {
    color: #475569;
    line-height: 1.7;
}

/* Stats */
.stats {
    background: #0F172A;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-card {
    padding: 2rem;
}

.stat-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #10B981;
    line-height: 1;
}

.stat-suffix {
    font-size: 1.5rem;
    color: #10B981;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    color: #CBD5E1;
    margin-top: 0.75rem;
    font-size: 0.95rem;
}

/* Partners */
.partners {
    background: white;
    padding: 4rem 2rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: center;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    background: #F8FAFC;
    border-radius: 0.5rem;
    padding: 1rem;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    background: #E2E8F0;
    transform: scale(1.05);
}

.partner-logo svg,
.partner-logo img {
    width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
}

/* Testimonials */
.testimonials {
    background: #F8FAFC;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: #10B981;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.testimonial-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    display: block;
}

.testimonial-stars {
    color: #10B981;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.testimonial-quote {
    color: #0F172A;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    border-top: 1px solid #E2E8F0;
    padding-top: 1rem;
}

.author-name {
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 0.25rem;
}

.author-role {
    color: #10B981;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.author-company {
    color: #94A3B8;
    font-size: 0.875rem;
}

/* FAQ */
.faq {
    background: white;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #E2E8F0;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: 600;
    color: #0F172A;
    padding: 0;
    transition: color 0.3s ease;
    font-family: 'Manrope', sans-serif;
}

.faq-question:hover {
    color: #10B981;
}

.faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #10B981;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    overflow: hidden;
    height: 0;
    opacity: 0;
    padding-top: 1rem;
}

.faq-answer p {
    color: #475569;
    line-height: 1.8;
}

/* Gallery */
.gallery {
    background: #F8FAFC;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #E2E8F0 0%, #CBD5E1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    text-align: center;
    padding: 1rem;
    font-weight: 500;
}

/* CTA Final */
.cta-final {
    background: white;
    padding: 4rem 0rem 0;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
}

.cta-title {
    color: #0F172A;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.cta-description {
    color: #475569;
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.cta-subtext {
    color: #94A3B8;
    font-size: 0.875rem;
}

/* Footer */
.footer {
    background: #0F172A;
    color: white;
    padding: 3rem 2rem 1rem;
    margin-top: 5px;
    border-top: 1px solid #1E293B;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid #1E293B;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #CBD5E1;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #10B981;
}

/* Hide WordPress chrome on the landing */
#wpadminbar,
.wp-footer,
.wp-footer-notice {
    display: none !important;
}

html.wp-toolbar body {
    padding-top: 0 !important;
}

/* ============================================================================
   Responsive
   ============================================================================ */

@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    section {
        padding: 0px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .nav-bar .container {
        padding: 0 1.5rem;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .hero-ctas .btn {
        width: 100%;
    }

    .services-grid,
    .testimonials-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

/* ============================================================================
   UI/UX refinement pass — trust, hierarchy, conversion (Eje Cafetero)
   ============================================================================ */

/* Hero eyebrow: local-SEO/context label above the H1 */
.hero-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #059669;
    background: rgba(16, 185, 129, 0.08);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

/* Hero trust row */
.hero-trust {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 1.75rem;
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid #E2E8F0;
}

.hero-trust li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
}

.hero-trust svg {
    width: 20px;
    height: 20px;
    color: #10B981;
    flex-shrink: 0;
}

/* Buttons: crisper depth + arrow affordance on primary */
.btn-primary {
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.btn-primary::after {
    content: '→';
    font-weight: 700;
    transform: translateX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover::after {
    transform: translateX(4px);
}

/* Cards: softer, more premium elevation and hover lift */
.service-card,
.testimonial-card {
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.service-card:hover {
    box-shadow: 0 18px 40px rgba(16, 185, 129, 0.12);
}

.testimonial-card:hover {
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

/* Section title: accent underline for hierarchy */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    border-radius: 3px;
    background: #10B981;
    margin: 0.85rem auto 0;
}

/* Gallery: caption overlay on hover (uses existing alt via title) */
.gallery-item {
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.55), transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Floating WhatsApp button — primary conversion path */
.wa-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #25D366;
    color: #fff;
    padding: 0.85rem 1.15rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wa-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
    color: #fff;
}

.wa-float svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .wa-float span {
        display: none;
    }
    .wa-float {
        padding: 0.9rem;
    }
    .wa-float svg {
        width: 26px;
        height: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn-primary::after,
    .wa-float,
    .gallery-item::after {
        transition: none;
    }
}
