/* ===================================
   AgroSense Landing Page — 2026
   Modern, mobile-first, app-focused
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Open+Sans:wght@300;400;600;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
    --color-primary: #1a9e75;
    --color-primary-dark: #158562;
    --color-accent: #25d366;
    --color-teal: #209ca5;
    /* second brand color from logo */
    --color-teal-dark: #1a8790;
    --color-navy: #0f1b2d;
    --color-navy-light: #162337;
    --color-dark: #1a1a2e;
    --color-text: #4a4a5a;
    --color-text-light: #7a7a8a;
    --color-bg-light: #f5f7fa;
    --color-white: #ffffff;
    --color-danger: #e74c3c;
    --color-success: #27ae60;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

/* ---------- Teal utilities (second brand color) ---------- */
.text-teal {
    color: var(--color-teal) !important;
}

/* Icon blocks in teal gradient */
.icon-teal {
    background: linear-gradient(135deg, var(--color-teal-dark), var(--color-teal)) !important;
}

/* Stat number in teal */
.stat-number-teal {
    color: var(--color-teal) !important;
}

/* Section tag in teal — chained selector for higher specificity than .section-tag */
.section-tag.section-tag-teal {
    color: var(--color-teal);
}

/* Outline teal button — used for secondary CTAs */
.btn-outline-teal {
    border: 2px solid var(--color-teal);
    color: var(--color-teal);
    background: transparent;
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 600;
    font-family: var(--font-heading);
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.btn-outline-teal:hover {
    background: var(--color-teal);
    color: var(--color-white);
    box-shadow: 0 6px 20px rgba(32, 156, 165, 0.35);
    transform: translateY(-2px);
}


/* ---------- Global ---------- */
* {
    box-sizing: border-box;
}

/* overflow-x on BOTH html and body prevents WebKit/mobile browsers from
   treating body as a scroll container, which clips position:fixed elements
   (navbar toggler, floating WhatsApp button) on the right edge */
html {
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.3;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

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

.bg-light {
    background-color: var(--color-bg-light) !important;
}

.bg-dark-navy {
    background-color: var(--color-navy) !important;
}

.bg-accent {
    background-color: var(--color-accent) !important;
}

.link-accent {
    color: var(--color-primary);
    font-weight: 600;
}

.link-accent:hover {
    color: var(--color-primary-dark);
}

.section-padding {
    padding: 80px 0;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 100px 0;
    }
}

/* ---------- Section Tags & Titles ---------- */
.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.section-tag-light {
    color: var(--color-accent);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-quote {
    position: relative;
    padding: 0 2.5rem;
    font-style: italic;
    font-size: 1.15rem;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.section-quote::before,
.section-quote::after {
    content: '\201C';
    font-family: Georgia, serif;
    font-size: 5rem;
    line-height: 0;
    position: absolute;
    color: var(--color-primary);
    opacity: 0.35;
    font-style: normal;
}

.section-quote::before {
    top: 1.2rem;
    left: 0;
}

.section-quote::after {
    content: '\201D';
    bottom: -1rem;
    right: 0;
}

/* ---------- Buttons ---------- */
.btn-whatsapp {
    background-color: #0f9b58;
    color: var(--color-white);
    border: none;
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 600;
    font-family: var(--font-heading);
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-whatsapp:hover {
    background-color: #0d8a4d;
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 155, 88, 0.4);
}

.btn-whatsapp-nav {
    background-color: #0f9b58;
    color: var(--color-white) !important;
    border: none;
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    align-items: center;
    transition: var(--transition);
}

.btn-whatsapp-nav:hover {
    background-color: #0d8a4d;
    color: var(--color-white) !important;
    transform: translateY(-1px);
}

.btn-outline-light {
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    padding: 12px 28px;
}

/* ---------- Navigation ---------- */
#mainNav {
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
    z-index: 1039;
    /* explicit z-index to ensure it's always above page content */
}

#mainNav.scrolled {
    background: var(--color-white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.14);
    /* stronger shadow — visible against light sections */
    padding: 8px 0;
}

#mainNav.scrolled .nav-link {
    color: var(--color-navy) !important;
}

#mainNav.scrolled .nav-link:hover {
    color: var(--color-primary) !important;
}

#mainNav.scrolled .logo-light {
    display: none !important;
}

#mainNav.scrolled .logo-dark {
    display: inline-block !important;
}

#mainNav.scrolled .navbar-toggler {
    color: var(--color-navy);
}

#mainNav.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230f1b2d' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 16px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--color-accent) !important;
}

/* ---------- Hero ---------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(15, 27, 45, 0.7) 0%,
            rgba(15, 27, 45, 0.5) 50%,
            rgba(15, 27, 45, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 100px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    font-family: var(--font-heading);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 20px;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 992px) {
    .hero-title {
        font-size: 4rem;
    }
}

.hero-sub {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto 32px;
    line-height: 1.8;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

.hero-scroll-down:hover {
    color: var(--color-white);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ---------- Pain Cards (Problema) ---------- */
.pain-card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.pain-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.pain-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--color-white);
    font-size: 1.3rem;
}

.pain-card h4 {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

/* ---------- Before / After (Solucion) ---------- */
.stat-block {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-accent);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.before-after-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ba-item {
    border-radius: var(--radius-sm);
    padding: 24px;
}

.ba-item h5 {
    color: var(--color-white);
    font-size: 1.05rem;
    margin-bottom: 12px;
}

.ba-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ba-item ul li {
    padding: 4px 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.ba-before {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.ba-after {
    background: rgba(39, 174, 96, 0.15);
    border: 1px solid rgba(39, 174, 96, 0.3);
}

/* ---------- Feature Cards ---------- */
.feature-card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 32px 24px;
    height: 100%;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.13);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-card-highlight {
    border: 2px solid var(--color-accent);
    position: relative;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.feature-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 0;
}

.badge.bg-accent {
    background-color: var(--color-accent) !important;
    font-weight: 600;
    font-size: 0.75rem;
}

/* ---------- Flow Diagram (Como funciona) ---------- */
.flow-diagram {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.flow-step {
    text-align: center;
    flex: 0 0 auto;
    max-width: 160px;
    padding: 16px;
}

.flow-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.4rem;
    margin: 0 auto 12px;
}

.flow-icon-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.flow-step h5 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.flow-step p {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin: 0;
}

.flow-arrow {
    display: flex;
    align-items: center;
    color: var(--color-primary);
    font-size: 1.5rem;
    padding-top: 24px;
}

@media (max-width: 767px) {
    .flow-diagram {
        flex-direction: column;
        align-items: center;
    }

    .flow-arrow {
        transform: rotate(90deg);
        padding: 8px 0;
    }
}

.data-sources {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    align-items: center;
    padding-top: 12px;
}

.data-source-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.data-source-item {
    display: inline-flex;
    align-items: center;
    background: var(--color-white);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    color: var(--color-navy);
}

/* ---------- App Demo ---------- */
.demo-video-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.demo-video {
    width: 100%;
    display: block;
    border-radius: var(--radius);
}

.demo-features-list {
    list-style: none;
    padding: 0;
}

.demo-features-list li {
    padding: 6px 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

/* ---------- WhatsApp AI / Chat Mockup ---------- */
.whatsapp-features {
    list-style: none;
    padding: 0;
}

.whatsapp-features li {
    padding: 8px 0;
    font-size: 1rem;
}

.chat-mockup {
    background: #e5ddd5;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    margin: 0 auto;
}

.chat-header {
    background: #075e54;
    color: var(--color-white);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.chat-header strong {
    font-size: 0.95rem;
}

.chat-header small {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.chat-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ccc' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.chat-msg {
    max-width: 85%;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.88rem;
    line-height: 1.5;
}

.chat-msg p {
    margin: 0 0 4px;
}

.chat-msg p:last-child {
    margin: 0;
}

.chat-msg-user {
    background: #dcf8c6;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-msg-bot {
    background: var(--color-white);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

/* ---------- Services ---------- */
.service-card {
    border-radius: var(--radius);
    padding: 32px;
    height: 100%;
    transition: var(--transition);
}

.service-card-main {
    background: var(--color-navy);
    color: var(--color-white);
    box-shadow: var(--shadow-lg);
}

.service-card-main h3 {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.service-card-main p {
    color: rgba(255, 255, 255, 0.8);
}

.service-card-main .service-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.service-highlights {
    list-style: none;
    padding: 0;
    margin-top: 16px;
}

.service-highlights li {
    padding: 4px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.service-highlights li::before {
    content: "✓ ";
    color: var(--color-accent);
    font-weight: bold;
}

.service-card-secondary {
    background: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.service-card-secondary:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.service-card-secondary h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.service-card-secondary p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.service-icon-sm {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: var(--radius-sm);
    background: var(--color-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.2rem;
}

/* ---------- Clients Carousel ---------- */
.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    padding: 8px 16px;
    filter: grayscale(80%);
    opacity: 0.7;
    transition: var(--transition);
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.client-logo img {
    max-height: 50px;
    width: auto;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-stars {
    color: #f5a623;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.testimonial-stars i {
    margin-right: 2px;
}

.testimonial-text {
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author strong {
    display: block;
    font-size: 0.9rem;
    color: var(--color-navy);
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* ---------- CTA Final ---------- */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 158, 117, 0.15), transparent 70%);
}

.cta-title {
    color: var(--color-white);
    font-size: 2.2rem;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .cta-title {
        font-size: 2.8rem;
    }
}

.cta-sub {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Footer ---------- */
.footer-section {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0 20px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    display: inline;
}

.footer-links li+li::before {
    content: " · ";
    color: rgba(255, 255, 255, 0.3);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-social {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-bottom: 8px;
}

@media (max-width: 767px) {
    .footer-social {
        justify-content: center;
    }
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-2px);
}

.footer-contact {
    font-size: 0.85rem;
    margin: 0;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
    color: var(--color-accent);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 24px 0 16px;
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

/* ---------- WhatsApp Floating Button ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    color: var(--color-white);
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 24px rgba(37, 211, 102, 0.6);
    }

    100% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    }
}

/* ---------- Scroll Animations ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* ---------- Hero Staggered Animations ---------- */
.hero-anim {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-anim-1 {
    animation-delay: 0.3s;
}

.hero-anim-2 {
    animation-delay: 0.6s;
}

.hero-anim-3 {
    animation-delay: 0.9s;
}

.hero-anim-4 {
    animation-delay: 1.2s;
}

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Text Morph ---------- */
.text-morph {
    display: inline-block;
    position: relative;
}

.text-morph .morph-word {
    display: inline-block;
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateY(8px);
    white-space: nowrap;
}

.text-morph .morph-word.active {
    opacity: 1;
    position: relative;
    transform: translateY(0);
}

/* ---------- Hero Overlay Pulse ---------- */
.hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(26, 158, 117, 0.12), transparent 70%);
    animation: overlayPulse 6s ease-in-out infinite alternate;
}

@keyframes overlayPulse {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* ---------- Parallax Backgrounds ---------- */
.parallax-bg {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
}

.parallax-bg>.container {
    position: relative;
    z-index: 1;
}

.parallax-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
}

.parallax-solucion {
    background-image: url('../images/counter-bg.jpg');
}

.parallax-solucion::before {
    background: rgba(15, 27, 45, 0.65);
}

.parallax-testimonios {
    background-image: url('../images/testimonial-bg.jpg');
}

.parallax-testimonios::before {
    background: rgba(245, 247, 250, 0.3);
}

.parallax-demo {
    background-image: url('../images/bg-demo.jpg');
}

.parallax-demo::before {
    background: rgba(15, 27, 45, 0.65);
    /* Fondo oscuro navy con 65% de opacidad */
}

/* ---------- Staggered Card Delays ---------- */
#problema .row.g-4> :nth-child(2) {
    transition-delay: 0.15s;
}

#problema .row.g-4> :nth-child(3) {
    transition-delay: 0.3s;
}

#features .row.g-4> :nth-child(1) {
    transition-delay: 0s;
}

#features .row.g-4> :nth-child(2) {
    transition-delay: 0.08s;
}

#features .row.g-4> :nth-child(3) {
    transition-delay: 0.16s;
}

#features .row.g-4> :nth-child(4) {
    transition-delay: 0.24s;
}

#features .row.g-4> :nth-child(5) {
    transition-delay: 0.32s;
}

#features .row.g-4> :nth-child(6) {
    transition-delay: 0.4s;
}

/* ---------- Navbar Mobile Open (transparent state) ---------- */
/* When the mobile menu is expanded while the navbar is still transparent
   (at the top of the page, before scroll), give the dropdown a dark-translucent
   background so the white links are readable over the hero video */
@media (max-width: 991px) {

    #mainNav:not(.scrolled) #navContent.show,
    #mainNav:not(.scrolled) #navContent.collapsing {
        background: rgba(10, 20, 35, 0.78);
        /* translucent — video visible behind */
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-radius: 0 0 var(--radius) var(--radius);
        padding: 8px 16px 16px;
        margin-top: 4px;
    }

    /* Constrain logo width so it never pushes the hamburger off-screen */
    .navbar-brand {
        flex-shrink: 1;
        min-width: 0;
    }

    .navbar-brand img {
        max-width: 200px;
        height: 56px !important;
        width: auto;
    }

    .navbar-toggler {
        flex-shrink: 0;
        /* toggler never gets squished */
        margin-left: auto;
    }
}

/* ---------- Navbar Link Underline ---------- */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.navbar-nav .nav-link:hover::after {
    width: 60%;
}

@media (max-width: 991px) {
    .navbar-nav .nav-link::after {
        display: none;
    }
}

/* ---------- Feature Card Bottom Gradient ---------- */
.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 0 0 var(--radius) var(--radius);
}

.feature-card:hover::after {
    transform: scaleX(1);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* ---------- Pain Card Hover ---------- */
.pain-card:hover .pain-icon {
    transform: scale(1.1) rotate(5deg);
    transition: transform 0.3s ease;
}

/* ---------- Button Shine Effect ---------- */
.btn-whatsapp::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-whatsapp:hover::after {
    left: 100%;
}

/* ---------- Service Card Enhancement ---------- */
.service-card-main {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card-main:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

/* ---------- Section Mockup Image ---------- */
.section-mockup {
    text-align: center;
    margin-bottom: 8px;
}

.section-mockup img {
    max-width: 500px;
    width: 100%;
    filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.15));
    transition: transform 0.5s ease;
}

.section-mockup img:hover {
    transform: scale(1.03) translateY(-4px);
}

/* ---------- Laptop Mock Frame ---------- */
.laptop-frame {
    position: relative;
    background: #1e1e2e;
    border-radius: 12px 12px 0 0;
    padding: 16px 16px 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.laptop-frame-bottom {
    height: 18px;
    background: linear-gradient(to bottom, #2a2a3e, #222233);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.laptop-frame-notch {
    width: 60px;
    height: 4px;
    background: #3a3a4e;
    border-radius: 2px;
    margin: 0 auto;
    position: relative;
    top: 7px;
}

.laptop-frame .demo-video-wrap {
    border-radius: 4px 4px 0 0;
    box-shadow: none;
}

.laptop-frame .demo-video {
    border-radius: 4px 4px 0 0;
}

/* ---------- Phone Frame ---------- */
.phone-frame {
    position: relative;
    background: #111;
    border-radius: 40px;
    padding: 14px;
    max-width: 340px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), inset 0 0 0 2px #333;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 6px;
    background: #222;
    border-radius: 3px;
    z-index: 5;
}

.phone-frame .chat-mockup {
    border-radius: 28px;
    overflow: hidden;
}

/* ---------- Testimonial Carousel ---------- */
.testimonial-carousel .item {
    padding: 12px;
}

.testimonial-carousel .testimonial-card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: left;
}

.testimonial-carousel .testimonial-stars {
    margin-bottom: 12px;
}

.testimonial-carousel .testimonial-text {
    font-style: italic;
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    min-height: 0;
}

.testimonial-carousel .testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-avatar-wrap {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.testimonial-avatar-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.testimonial-carousel .testimonial-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.testimonial-carousel .testimonial-author-info strong {
    font-size: 0.95rem;
    color: var(--color-text);
}

.testimonial-carousel .testimonial-author-info span {
    font-size: 0.82rem;
    color: var(--color-text-light);
}

/* ---------- Owl Carousel Overrides ---------- */
.owl-theme .owl-dots {
    margin-top: 28px !important;
}

.owl-theme .owl-dots .owl-dot span {
    width: 7px !important;
    height: 7px !important;
    margin: 0 4px !important;
    border-radius: 50% !important;
    background: #c5cfc9 !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    transition: width 0.3s ease, background 0.3s ease, border-radius 0.3s ease !important;
    display: block !important;
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
    width: 22px !important;
    border-radius: 4px !important;
    background: var(--color-primary) !important;
    box-shadow: none !important;
}

.owl-theme .owl-dots .owl-dot {
    outline: none !important;
    background: none !important;
    border: none !important;
}

/* ---------- Mobile Responsive ---------- */
@media (max-width: 767px) {
    p {
        font-size: 0.85rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-sub {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle,
    .cta-sub {
        font-size: 0.9rem;
    }

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

    .hero-ctas .btn+.btn {
        margin-left: 0 !important;
        margin-top: 8px;
    }

    .before-after-block {
        margin-top: 24px;
    }

    .footer-section .col-md-4 {
        text-align: center !important;
    }

    .footer-links {
        margin-bottom: 16px;
    }

    .chat-mockup {
        max-width: 100%;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .phone-frame {
        max-width: 100%;
        border-radius: 24px;
        padding: 8px;
    }

    .phone-frame .chat-mockup {
        border-radius: 16px;
    }

    .phone-frame::before {
        display: none;
    }

    .laptop-frame {
        padding: 8px 8px 0;
        border-radius: 8px 8px 0 0;
    }

    .section-mockup img {
        max-width: 100%;
    }

    .parallax-bg {
        background-attachment: scroll;
    }
}

@media (max-width: 575px) {
    .stat-number {
        font-size: 2rem;
    }

    .section-padding {
        padding: 60px 0;
    }
}

@supports (-webkit-touch-callout: none) {
    .parallax-bg {
        background-attachment: scroll;
    }
}

/* ---------- Transform List (Solucion section) ---------- */
.transform-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.transform-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 14px 18px;
    opacity: 0;
    transform: translateX(30px);
    animation: transformSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes transformSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.transform-before {
    flex: 1;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: line-through;
    text-decoration-color: rgba(231, 76, 60, 0.6);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.transform-before i {
    color: #e74c3c;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.transform-arrow {
    color: var(--color-accent);
    font-size: 1rem;
    flex-shrink: 0;
    animation: arrowPulse 1.8s ease-in-out infinite;
}

@keyframes arrowPulse {

    0%,
    100% {
        transform: translateX(0);
        opacity: 0.7;
    }

    50% {
        transform: translateX(4px);
        opacity: 1;
    }
}

.transform-after {
    flex: 1.3;
    font-size: 0.92rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.transform-after i {
    color: var(--color-accent);
    font-size: 0.8rem;
    flex-shrink: 0;
}

@media (max-width: 575px) {
    .transform-item {
        flex-wrap: wrap;
        gap: 8px;
    }

    .transform-before,
    .transform-after {
        flex: none;
        width: 100%;
        white-space: normal;
    }

    .transform-arrow {
        display: none;
    }
}

/* ---------- Badge accent (Temporada 2026/2027) ---------- */
.badge.bg-accent {
    background-color: #0f9b58 !important;
    color: #fff !important;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 50px;
    letter-spacing: 0.03em;
}

/* ---------- Casos de uso ---------- */
.case-filters {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    background: var(--color-bg-light);
    padding: 10px;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.case-chip {
    border: none;
    background: transparent;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 18px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.02em;
}

.case-chip:hover {
    background: rgba(26, 158, 117, 0.1);
    color: var(--color-primary);
}

.case-chip.active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(26, 158, 117, 0.3);
}

.case-grid {
    transition: var(--transition);
}

.case-item {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.case-item.is-hidden {
    display: none;
}

.case-card {
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.case-image {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #eef2f6;
    overflow: hidden;
}

.case-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.05);
}

.case-tags {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 2;
}

.case-tag {
    background: rgba(15, 27, 45, 0.85);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.case-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.case-title {
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: var(--color-navy);
}

.case-location {
    color: var(--color-text-light);
    font-size: 0.85rem;
    margin-bottom: 14px;
}

.case-location i {
    color: var(--color-primary);
    margin-right: 4px;
}

.case-challenge,
.case-result {
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 10px;
    line-height: 1.5;
}

.case-result {
    margin-bottom: 18px;
}

.case-cta {
    margin-top: auto;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.case-cta:hover {
    color: var(--color-accent);
    transform: translateX(4px);
}

@media (max-width: 576px) {
    .case-filters {
        border-radius: 16px;
        padding: 8px;
    }
    .case-chip {
        padding: 7px 14px;
        font-size: 0.8rem;
    }
}

/* ---------- Hero secondary CTA (lead magnet) ---------- */
.hero-secondary-cta {
    margin-top: 18px;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.hero-secondary-cta a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.5);
    padding-bottom: 2px;
    transition: var(--transition);
}

.hero-secondary-cta a:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

/* ---------- Equipo / Founder ---------- */
.founder-photo-wrap {
    width: 240px;
    height: 240px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--color-white);
    position: relative;
}

.founder-photo-wrap::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    z-index: -1;
}

.founder-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.founder-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.founder-badge {
    display: inline-flex;
    align-items: center;
    background: var(--color-bg-light);
    color: var(--color-navy);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.founder-badge i {
    color: var(--color-primary);
}

#equipo .section-title em {
    color: var(--color-primary);
    font-style: normal;
}

.founder-quote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-primary);
    border-left: 3px solid var(--color-primary);
    padding: 8px 0 8px 16px;
    margin: 16px 0 20px;
}

@media (max-width: 991px) {
    .founder-photo-wrap {
        width: 200px;
        height: 200px;
    }
    .founder-badges {
        justify-content: center;
    }
    #equipo .col-lg-8 {
        text-align: center;
    }
}

/* ---------- FAQ Accordion ---------- */
.faq-accordion .accordion-item {
    background: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-sm) !important;
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-accordion .accordion-header {
    margin: 0;
}

.faq-accordion .accordion-button {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--color-navy);
    padding: 20px 24px;
    background: var(--color-white);
    box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--color-primary);
    background: var(--color-white);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.06);
}

.faq-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.faq-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231a9e75'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.faq-accordion .accordion-body {
    padding: 4px 24px 22px;
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.65;
}

.faq-accordion .accordion-body strong {
    color: var(--color-navy);
}