:root {
    /* App palette (aligned with home + blog chrome) */
    --primary: #16a34a;
    --primary-dark: #065f46;
    --primary-light: #f0fdf4;
    --secondary: #efab30;
    --accent: #99b84c;
    --accent-mint: #34d399;
    --dark: #111111;
    --light: #f7f2db;
    --surface: #f0fdf4;
    --surface-muted: #ecfdf5;
    --border-subtle: rgba(17, 17, 17, 0.08);
    /* Secondary text on light surfaces */
    --gray: #3d4a43;
    --white: #ffffff;
    --shadow: 0 4px 24px rgba(17, 17, 17, 0.07);
    --shadow-hover: 0 24px 56px rgba(17, 17, 17, 0.12);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 20px;
    /* Match blog + site internal pages (Inter / Montserrat) */
    --font-display: 'Montserrat', sans-serif;
    --font-sans: 'Inter', sans-serif;
    --site-header-offset: calc(118px + env(safe-area-inset-top, 0px));
}

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

/* Scroll reveal: motion only (opacity always 1 so the page never stays blank if CSS fails to load or IO is blocked). */
.reveal {
    opacity: 1;
    transform: translateY(20px);
    transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible {
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

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

body {
    font-family: var(--font-sans);
    line-height: 1.7;
    color: var(--dark);
    overflow-x: hidden;
    background: var(--surface);
    background-image:
        radial-gradient(ellipse 120% 80% at 0% -20%, rgba(22, 163, 74, 0.09) 0%, transparent 55%),
        radial-gradient(ellipse 80% 50% at 100% 0%, rgba(239, 171, 48, 0.06) 0%, transparent 45%);
    background-attachment: fixed;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; width: 100%; box-sizing: border-box; }
.section-padding { padding: 100px 0; }
.text-center { text-align: center; }

.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(253, 252, 250, 0.82);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    z-index: 10050;
    isolation: isolate;
    padding: calc(14px + env(safe-area-inset-top, 0px)) 0 14px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.06);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 8px 32px rgba(17, 17, 17, 0.04);
    transition: var(--transition);
    /* Let clicks reach the full-height fixed .nav-menu (backdrop-filter can limit hit targets to the bar in some WebViews) */
    pointer-events: none;
}

.header .nav-container {
    pointer-events: auto;
}

.header.scrolled {
    padding: calc(10px + env(safe-area-inset-top, 0px)) 0 10px;
    background: rgba(253, 252, 250, 0.94);
    box-shadow: 0 12px 40px rgba(17, 17, 17, 0.08);
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-img { height: 72px; width: auto; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1)); }
.logo-text { font-family: var(--font-display); font-size: 26px; font-weight: 900; color: var(--primary); letter-spacing: -0.03em; }
.logo-text span { color: var(--secondary); }
.logo-tagline { font-size: 12px; font-weight: 600; color: var(--gray); letter-spacing: 0.5px; margin-top: 2px; line-height: 1.2; }

/* Same pattern as site-chrome: logo + hamburguesa; links en panel lateral (todas las anchuras) */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(400px, 92vw);
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 96px 24px 36px;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
    transition: right 0.32s ease, visibility 0.32s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    z-index: 10060;
    visibility: hidden;
    overflow-y: auto;
    box-sizing: border-box;
}

.nav-menu.open {
    right: 0;
    visibility: visible;
}

/* Explicit theme backgrounds so the fixed panel repaints when toggling html.dark-mode (WebKit). */
html:not(.dark-mode) .nav-menu {
    background: #ffffff;
}
html.dark-mode .nav-menu {
    background: #111111;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.45);
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
    padding: 12px 4px;
    border-radius: 10px;
}

.nav-link::after { display: none; }

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-menu .nav-link,
.nav-menu .cta-button {
    justify-content: center;
    text-align: center;
}

.nav-menu .cta-button {
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    padding: 14px 22px;
}

.nav-menu .cta-button.secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: none;
}

.nav-menu .cta-button.secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.cta-button {
    background: linear-gradient(145deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 28px rgba(22, 163, 74, 0.28);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.6s;
    pointer-events: none;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(22, 163, 74, 0.35);
}

.cta-button:hover::before { left: 100%; }

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: none;
}

.cta-button.secondary:hover { background: var(--primary); color: var(--white); }

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
    border-radius: 10px;
    z-index: 10070;
}

.hamburger:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.hamburger span { width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    touch-action: none;
}

body.menu-open .nav-overlay {
    opacity: 1;
    visibility: visible;
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
}

html {
    scroll-padding-top: var(--site-header-offset);
}

.hero {
    padding: clamp(120px, 18vw, 200px) 0 clamp(72px, 10vw, 120px);
    min-height: min(92vh, 920px);
    display: flex;
    align-items: center;
    background:
        radial-gradient(ellipse 90% 70% at 15% 30%, rgba(22, 163, 74, 0.12) 0%, transparent 58%),
        radial-gradient(ellipse 70% 50% at 92% 18%, rgba(239, 171, 48, 0.1) 0%, transparent 52%),
        linear-gradient(165deg, var(--surface) 0%, var(--light) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(17, 17, 17, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 17, 17, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(180deg, black 0%, black 40%, transparent 100%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    right: -20%;
    width: min(70vw, 640px);
    height: min(70vw, 640px);
    background: radial-gradient(circle, rgba(22, 163, 74, 0.06) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-dark);
    margin-bottom: 20px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.14);
}

.hero > .container {
    width: 100%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 88px);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content > * {
    min-width: 0;
}

.hero-text h1 {
    font-size: clamp(2.25rem, 5vw, 3.65rem);
    margin-bottom: 22px;
    color: var(--dark);
    line-height: 1.08;
    font-weight: 700;
}

.hero-text h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-text h1 span::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 0.42em;
    background: linear-gradient(90deg, rgba(239, 171, 48, 0.45), rgba(22, 163, 74, 0.2));
    border-radius: 4px;
    z-index: -1;
}

.hero-text p { font-size: 20px; color: var(--gray); margin-bottom: 40px; max-width: 550px; }
.hero-subtitle { font-size: 20px; color: var(--gray); margin-bottom: 28px; max-width: 550px; }
.hero-text .highlight { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-benefits {
    list-style: none;
    margin-bottom: 30px;
    padding: 0;
}
.hero-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 16px;
    color: var(--dark);
}
.hero-benefits li i { color: var(--primary); font-size: 20px; flex-shrink: 0; }
.hero-buttons { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.cta-button.primary { font-size: 18px; padding: 18px 28px; line-height: 1.4; }
.cta-button.primary small { display: block; margin-top: 4px; font-size: 14px; }

.social-proof {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 20px 22px;
    background: rgba(255, 255, 255, 0.72);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(17, 17, 17, 0.06);
    backdrop-filter: blur(12px);
    max-width: 100%;
    box-sizing: border-box;
}
.proof-item { display: flex; align-items: center; gap: 10px; min-width: 0; }
a.proof-item {
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    padding: 6px 10px;
    margin: -6px -10px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}
a.proof-item:hover {
    background: rgba(22, 163, 74, 0.08);
    box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.15);
}
a.proof-item:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.proof-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: bold;
}
.proof-text { font-size: 14px; color: var(--gray); }
.proof-text strong { color: var(--dark); font-weight: 700; }

.hero-image-container { position: relative; }

.floating-phone {
    position: relative;
    width: 100%;
    max-width: 221px;
    margin: 0 auto;
    transform: perspective(1200px) rotateY(-12deg) rotateX(4deg);
    transition: var(--transition);
    filter: drop-shadow(0 32px 64px rgba(17, 17, 17, 0.22));
}

.floating-phone:hover { transform: perspective(1200px) rotateY(-4deg) rotateX(1deg) translateY(-6px); }

.phone-frame {
    position: relative;
    background: linear-gradient(160deg, #1c1c1e 0%, #0a0a0c 100%);
    border-radius: 42px;
    padding: 12px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 24px 80px rgba(0, 0, 0, 0.35);
}

.phone-screen {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 32px;
    overflow: hidden;
    display: block;
    object-fit: contain;
}

.pastoral-section {
    padding: 0;
    background: var(--light);
    overflow: hidden;
}
.pastoral-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.pastoral-image-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    margin: 0 auto 2rem;
    max-width: 1100px;
}
.pastoral-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.pastoral-caption {
    text-align: center;
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.gallery-section.reveal.visible { will-change: auto; }
.gallery-section { background: var(--white); padding: 80px 0; }
.gallery-section .section-header { margin-bottom: 50px; }
.gallery-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto 30px;
}
.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.gallery-item:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.gallery-row-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 768px) { .gallery-row { grid-template-columns: 1fr; } .gallery-row-3 { grid-template-columns: 1fr; } }

.app-showcase {
    background: linear-gradient(180deg, var(--surface) 0%, var(--light) 100%);
    position: relative;
}

.section-header { text-align: center; margin-bottom: 72px; }

.section-header h2 {
    font-size: clamp(1.85rem, 3.5vw, 2.85rem);
    margin-bottom: 18px;
    color: var(--dark);
    position: relative;
    display: inline-block;
    max-width: 100%;
    padding: 0 8px;
    box-sizing: border-box;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: 4px;
}

.section-header p { color: var(--gray); font-size: 1.05rem; max-width: 40rem; margin: 0 auto; line-height: 1.65; }

.app-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 80px; }

.app-feature {
    text-align: center;
    padding: 36px 28px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(17, 17, 17, 0.06);
    min-width: 0;
}

.app-feature:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(22, 163, 74, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(145deg, var(--primary-light) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: var(--primary);
    box-shadow: 0 10px 20px rgba(22, 163, 74, 0.1);
}

.app-feature h3 { font-size: 22px; margin-bottom: 15px; color: var(--dark); }
.app-feature p { color: var(--gray); }

.app-screens-container { position: relative; max-width: 1000px; margin: 0 auto; }

.app-screens { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; margin-bottom: 60px; }

.app-screen-card {
    background: var(--white);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.app-screen-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: var(--shadow-hover);
    z-index: 10;
}

.app-screen-img { width: 100%; height: auto; display: block; }

.screen-label {
    padding: 20px;
    text-align: center;
    background: var(--white);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.screen-label h4 { font-size: 18px; color: var(--dark); margin-bottom: 5px; }
.screen-label p { color: var(--gray); font-size: 14px; }

/* App divisions: Employee vs Admin with phone-style screenshots */
.app-divisions { background: var(--light); padding: 80px 0 100px; }
.app-division-block { margin-bottom: 70px; }
.app-division-block:last-child { margin-bottom: 0; }
.app-division-title {
    font-size: 28px;
    color: var(--dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}
.app-division-title .division-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.app-division-title.employee .division-icon { background: var(--primary-light); color: var(--primary); }
.app-division-title.admin .division-icon { background: rgba(74, 101, 114, 0.15); color: var(--accent); }
.app-division-subtitle { text-align: center; color: var(--gray); font-size: 16px; margin-bottom: 40px; max-width: 560px; margin-left: auto; margin-right: auto; }
.screenshot-phones-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    align-items: flex-start;
}
.screenshot-phone-wrap {
    flex: 0 0 auto;
    width: 100%;
    max-width: 130px;
    transform: perspective(800px) rotateY(-8deg);
    transition: var(--transition);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.12));
}
.screenshot-phone-wrap:nth-child(even) { transform: perspective(800px) rotateY(8deg); }
.screenshot-phone-wrap:hover { transform: perspective(800px) rotateY(0deg) scale(1.02); filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.18)); }
.screenshot-phone-wrap .phone-frame {
    padding: 8px;
    border-radius: 28px;
}
.screenshot-phone-wrap .phone-screen { border-radius: 22px; }
@media (min-width: 600px) { .screenshot-phone-wrap { max-width: 143px; } }
@media (min-width: 900px) { .screenshot-phone-wrap { max-width: 156px; } }
@media (max-width: 599px) {
    .screenshot-phone-wrap { max-width: 130px; transform: none; }
    .screenshot-phone-wrap:nth-child(even) { transform: none; }
    .screenshot-phone-wrap:hover { transform: scale(1.02); }
}

/* Horizontal app showcase (2026 simulator captures) */
.showcase-theme-strip--dark,
.screenshots-lead--dark,
.showcase-hint--dark {
    display: none;
}
html.dark-mode .showcase-theme-strip--light,
html.dark-mode .screenshots-lead--light,
html.dark-mode .showcase-hint--light {
    display: none;
}
html.dark-mode .showcase-theme-strip--dark,
html.dark-mode .screenshots-lead--dark,
html.dark-mode .showcase-hint--dark {
    display: block;
}

.floating-phone .phone-screen--hero-dark {
    display: none;
}
html.dark-mode .floating-phone .phone-screen--hero-light {
    display: none;
}
html.dark-mode .floating-phone .phone-screen--hero-dark {
    display: block;
}

.app-showcase-wrap {
    margin: 0 -10px;
}
@media (min-width: 768px) {
    .app-showcase-wrap { margin: 0 -20px; }
}
.showcase-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 20px;
    padding: 8px 20px 28px;
    -webkit-overflow-scrolling: touch;
}
.showcase-scroll:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}
.showcase-card {
    flex: 0 0 auto;
    scroll-snap-align: center;
    width: min(164px, 49vw);
    text-align: center;
}
.showcase-card .phone-frame {
    padding: 8px;
    border-radius: 28px;
    margin: 0 auto;
    max-width: 156px;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.12));
}
.showcase-card .phone-screen {
    border-radius: 22px;
    object-fit: contain;
    height: auto;
}
.showcase-caption {
    margin-top: 10px;
    font-size: clamp(12px, 3.2vw, 15px);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.35;
}
.showcase-caption span {
    display: block;
    margin-top: 4px;
    font-size: clamp(11px, 2.8vw, 12px);
    font-weight: 500;
    color: var(--gray);
}
.showcase-hint {
    text-align: center;
    font-size: 14px;
    color: var(--gray);
    margin: -4px 0 12px;
}

.blog-teaser {
    background: var(--surface-muted);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}
.blog-teaser-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    align-items: center;
    margin-top: 8px;
}
.blog-teaser .section-header a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.blog-teaser .section-header a:hover {
    color: var(--primary-dark);
}

.nav-menu .theme-toggle {
    align-self: center;
    margin-top: 12px;
}

html.dark-mode .blog-teaser {
    background: #111111;
    border-color: rgba(255, 255, 255, 0.06);
}
html.dark-mode .blog-teaser .section-header h2 { color: #f8fafc; }
html.dark-mode .blog-teaser .section-header p { color: #94a3b8; }
html.dark-mode .showcase-caption { color: #f1f5f9; }
html.dark-mode .showcase-caption span { color: #94a3b8; }
html.dark-mode .showcase-hint { color: #94a3b8; }
html.dark-mode .showcase-card .phone-frame {
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
}

/* Dark mode / energy-saving feature section */
.darkmode-section {
    background: linear-gradient(165deg, #111111 0%, #1a2332 35%, #15202b 100%);
    color: var(--white);
    padding: 100px 0 110px;
    position: relative;
    overflow: hidden;
}
.darkmode-section::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(22, 163, 74, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.darkmode-section .section-header h2 { color: var(--white); }
.darkmode-section .section-header h2::after { background: linear-gradient(90deg, var(--primary), #6ee7a0); }
.darkmode-section .section-header p { color: rgba(255, 255, 255, 0.75); }
.darkmode-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(22, 163, 74, 0.2);
    color: #86efac;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(22, 163, 74, 0.4);
}
.darkmode-badge i { font-size: 18px; }
.darkmode-headline {
    font-size: clamp(36px, 5vw, 52px);
    line-height: 1.15;
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.darkmode-subhead {
    font-size: 20px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 680px;
    margin: 0 auto 50px;
}
.darkmode-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    max-width: 1000px;
    margin: 0 auto 50px;
}
.darkmode-benefit-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 32px 28px;
    text-align: center;
    transition: var(--transition);
}
.darkmode-benefit-card:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(22, 163, 74, 0.3);
    transform: translateY(-6px);
}
.darkmode-benefit-card .benefit-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.3) 0%, rgba(22, 163, 74, 0.1) 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #86efac;
}
.darkmode-benefit-card h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--white);
}
.darkmode-benefit-card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.55;
}
.darkmode-cta-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 20px;
}

/* Reportes de producción - AI section */
.reportes-section {
    background: var(--white);
    padding: 90px 0 100px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.reportes-section .section-header p { max-width: 720px; }
.reportes-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(22, 163, 74, 0.08) 100%);
    color: var(--primary-dark);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(22, 163, 74, 0.25);
}
.reportes-ai-badge i { font-size: 18px; }
.reportes-intro {
    font-size: 18px;
    color: var(--gray);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 45px;
}
.report-preview-card {
    max-width: 520px;
    margin: 0 auto 40px;
    background: linear-gradient(180deg, #fafbfc 0%, #f1f4f8 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    font-family: var(--font-sans);
}
.report-preview-card .report-header {
    background: var(--primary);
    color: var(--white);
    padding: 18px 24px;
    font-weight: 700;
    font-size: 18px;
}
.report-preview-card .report-meta {
    padding: 14px 24px;
    font-size: 13px;
    color: var(--gray);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.report-preview-card .report-body { padding: 20px 24px 24px; }
.report-preview-card .report-resumen {
    margin-bottom: 18px;
    padding: 14px 16px;
    background: var(--white);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}
.report-preview-card .report-resumen h4 {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 10px;
    font-weight: 600;
}
.report-preview-card .report-resumen ul {
    list-style: none;
    font-size: 14px;
    color: var(--dark);
}
.report-preview-card .report-resumen li { margin-bottom: 4px; }
.report-preview-card .report-table-wrap {
    overflow-x: auto;
    margin-bottom: 16px;
}
.report-preview-card table {
    width: 100%;
    font-size: 13px;
    border-collapse: collapse;
}
.report-preview-card th {
    text-align: left;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.04);
    font-weight: 600;
    color: var(--dark);
}
.report-preview-card td { padding: 10px 12px; border-bottom: 1px solid rgba(0, 0, 0, 0.06); color: var(--dark); }
.report-preview-card .report-milk {
    padding: 14px 16px;
    background: var(--white);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 14px;
    color: var(--dark);
}
.report-preview-card .report-milk strong { color: var(--primary-dark); }
.reportes-features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    max-width: 720px;
    margin: 0 auto;
}
.reportes-features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--dark);
}
.reportes-features-list li i { color: var(--primary); font-size: 18px; flex-shrink: 0; }
.reportes-cta-note {
    margin-top: 28px;
    font-size: 15px;
    color: var(--gray);
}

.app-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.play-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: #1A1A1A;
    color: white;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.play-store-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    background: #000000;
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(180deg, #555 0%, #333 100%);
    color: white;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255,255,255,0.1);
}
.app-store-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    background: linear-gradient(180deg, #444 0%, #222 100%);
}
.app-store-btn .tester-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.95;
}

.revenue-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.revenue-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.revenue-section .section-header h2 { color: var(--white); }
.revenue-section .section-header h2::after { background: linear-gradient(90deg, var(--secondary), #f5e6a8); }
/* Override global .section-header p (gray) so all copy stays white on green/dark gradient */
.revenue-section .section-header p {
    color: #ffffff;
    opacity: 0.95;
}

.revenue-models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 60px; }

.revenue-model {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 50px 35px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.revenue-model:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.revenue-icon { font-size: 48px; margin-bottom: 25px; color: var(--secondary); }
.revenue-model h3 {
    font-size: 26px;
    margin-bottom: 15px;
    color: #ffffff;
}
.revenue-amount {
    font-size: 56px;
    font-weight: 900;
    margin: 25px 0;
    color: #ffffff;
    font-family: var(--font-display);
}
.revenue-amount span { font-size: 24px; font-weight: 600; color: rgba(255, 255, 255, 0.9); }
.revenue-model p {
    color: #ffffff;
    opacity: 0.95;
}

.revenue-section .revenue-cta-note {
    font-size: 14px;
    color: #ffffff;
    opacity: 0.92;
    margin-top: 16px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.revenue-section .revenue-cta-note a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.revenue-section .revenue-cta-note a:hover {
    opacity: 0.9;
}

.team-section { background: var(--light); }

.team-members { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; max-width: 700px; margin: 0 auto; }

.team-member {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.team-member:hover { transform: translateY(-15px); box-shadow: var(--shadow-hover); }

.member-avatar {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #FFFFFF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    color: var(--primary);
    font-weight: 900;
}

.member-info { padding: 30px; }
.member-info h4 { font-size: 22px; margin-bottom: 5px; }
.member-role { color: var(--primary); font-weight: 600; margin-bottom: 15px; font-size: 16px; }
.member-info p { color: var(--gray); font-size: 15px; }

.roi-calculator {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: var(--radius);
    padding: 50px;
    margin: 80px 0;
    box-shadow: var(--shadow-hover);
}
.calculator-title { text-align: center; margin-bottom: 40px; }
.calculator-title h2 { font-size: 36px; margin-bottom: 15px; }
.calculator-title p { opacity: 0.9; }
.calculator-inputs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}
.input-group label { display: block; margin-bottom: 10px; font-weight: 600; }
.input-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 16px;
}
.input-group input:focus { outline: none; border-color: var(--secondary); }
.calculator-result {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    backdrop-filter: blur(10px);
}
.result-amount {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
    text-align: center;
}
.result-amount #estimated-saving {
    font-size: 3.5rem;
    font-weight: 900;
    color: #27ae60;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
    display: inline-block;
    line-height: 1.1;
    font-family: var(--font-display);
}
.result-amount .result-currency {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
}
.savings-breakdown {
    text-align: left;
    max-width: 500px;
    margin: 28px auto 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}
.breakdown-title { margin-bottom: 16px; font-size: 16px; }
.breakdown-grid { display: flex; flex-direction: column; gap: 12px; }
.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.breakdown-category { font-size: 14px; opacity: 0.95; }
.breakdown-amount { font-weight: 700; color: var(--secondary); }
.breakdown-note { margin-top: 14px; font-size: 12px; color: var(--gray); }

.testimonials { background: var(--light); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
    min-width: 0;
}
.testimonial-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 60px;
    color: var(--primary-light);
    font-family: serif;
    line-height: 1;
}
.testimonial-text { font-size: 16px; line-height: 1.8; margin-bottom: 30px; color: var(--dark); }
.testimonial-author { display: flex; align-items: center; gap: 15px; }
.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: bold;
    font-size: 20px;
}
.author-info h4 { margin-bottom: 5px; font-size: 18px; }
.author-info p { color: var(--gray); font-size: 14px; }
.testimonial-avatar { position: relative; margin-bottom: 16px; }
.testimonial-avatar img {
    border-radius: 50%;
    border: 3px solid #27ae60;
    filter: brightness(1.05);
    width: 80px;
    height: 80px;
    object-fit: cover;
}
.testimonial-verified { font-size: 11px; color: var(--primary); margin-top: 4px; font-weight: 600; }
.testimonial-quote { font-size: 16px; line-height: 1.8; margin-bottom: 20px; color: var(--dark); }
.author-role { font-size: 13px; color: var(--gray); font-weight: normal; }

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    align-items: center;
}
.comparison-item {
    text-align: center;
    padding: 40px;
    border-radius: var(--radius);
    transition: background-color 0.3s;
}
.comparison-item:hover { background-color: #f9f9f9; }
.comparison-before {
    background: linear-gradient(135deg, #FFE8E8 0%, #FFFFFF 100%);
    border: 2px solid #FF6B6B;
    border-left: 4px solid #e74c3c;
}
.comparison-after {
    background: linear-gradient(135deg, #E8F5EB 0%, #FFFFFF 100%);
    border: 2px solid var(--primary);
    border-left: 4px solid #2ecc71;
}
.comparison-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 32px;
}
.comparison-before .comparison-icon { background: #FF6B6B; color: white; }
.comparison-after .comparison-icon { background: var(--primary); color: white; }
.comparison-item h3 { font-size: 24px; margin-bottom: 20px; color: var(--dark); }
.comparison-list { list-style: none; text-align: left; max-width: 300px; margin: 0 auto; }
.comparison-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
    min-width: 0;
}
.comparison-list li i { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 12px; }
.comparison-before .comparison-list li i { background: #FF6B6B; color: white; }
.comparison-after .comparison-list li i { background: var(--primary); color: white; }

.email-capture {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #111111 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}
.capture-content { max-width: 600px; margin: 0 auto; }
.capture-content h2 { font-size: 42px; margin-bottom: 20px; }
.capture-content p { font-size: 18px; margin-bottom: 40px; color: rgba(255, 255, 255, 0.95); }
.capture-form {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}
.capture-form input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    background: var(--white);
    color: var(--dark);
}
.capture-form input:focus { outline: none; box-shadow: 0 0 0 3px rgba(239, 171, 48, 0.3); }
.capture-note { margin-top: 20px; font-size: 14px; opacity: 0.9; }

.faq-section { background: var(--light); }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.faq-question {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}
.faq-question:hover { background: var(--primary-light); }
.faq-question h3 { font-size: 18px; color: var(--dark); }
.faq-icon { color: var(--primary); font-size: 24px; transition: var(--transition); }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-answer.active { max-height: 500px; }
.faq-answer p { padding: 0 30px 25px; color: var(--gray); line-height: 1.8; }

.final-cta {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #111111 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta h2 { font-size: 52px; margin-bottom: 25px; position: relative; z-index: 2; }
.final-cta p {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.footer {
    background: linear-gradient(180deg, #065f46 0%, #111111 100%);
    color: var(--white);
    padding: 88px 0 44px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand { max-width: 350px; }

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    text-decoration: none;
}

.footer-logo-img { height: 45px; width: auto; }
.footer-logo-text { font-family: var(--font-display); font-size: 26px; font-weight: 900; color: var(--white); display: block; }
.footer-logo-text span { color: var(--secondary); }
.footer-tagline { display: block; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.75); letter-spacing: 0.5px; margin-top: 2px; }
.footer-description { color: rgba(255, 255, 255, 0.82); line-height: 1.8; margin-bottom: 25px; }
.social-links { display: flex; gap: 15px; }
.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}
.social-link:hover { background: var(--primary); transform: translateY(-5px); }
.footer-links h4 { font-size: 20px; margin-bottom: 25px; color: var(--white); }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 15px; }
.footer-links a { color: rgba(255, 255, 255, 0.82); text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--white); padding-left: 5px; }
.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
}

@media (max-width: 1100px) {
    .app-features, .revenue-models, .team-members { grid-template-columns: repeat(2, 1fr); }
    .app-screens { grid-template-columns: repeat(2, 1fr); }
    .app-features { grid-template-columns: repeat(2, 1fr); }
    .calculator-inputs, .testimonial-grid { grid-template-columns: 1fr; }
    .comparison-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .hero-content, .footer-content { grid-template-columns: 1fr; }
    .hero-content { justify-items: center; }
    .hero { padding: 150px 0 80px; }
    .hero-text { text-align: center; width: 100%; max-width: 100%; }
    .hero-text p, .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-benefits { align-items: center; justify-content: center; }
    .hero-benefits li { justify-content: center; }
    .social-proof { flex-direction: column; text-align: center; justify-content: center; }
    .capture-form { flex-direction: column; }
    .floating-phone { max-width: 182px; }
    .hero-image-container { width: 100%; display: flex; justify-content: center; }
    .logo-img { height: 52px; }
    .logo-text { font-size: 22px; }
}

@media (max-width: 768px) {
    .section-padding { padding: 70px 0; }
    .container { padding-left: 16px; padding-right: 16px; }
    .hero { padding: 120px 0 60px; }
    .hero-text h1 { font-size: 42px; text-align: center; }
    .hero-buttons { justify-content: center; align-items: center; }
    .hero-buttons .cta-button, .hero-buttons .app-store-btn { flex: 1 1 auto; min-width: 0; max-width: 100%; }
    .calculator-title { text-align: center; }
    .calculator-title h2 { font-size: 28px; }
    .calculator-inputs { max-width: 100%; }
    .calculator-result { text-align: center; }
    .roi-calculator { padding: 30px 20px; margin: 40px 0; }
    .section-header { text-align: center; margin-bottom: 50px; padding: 0 8px; }
    .section-header h2 { font-size: 36px; }
    .section-header p { margin-left: auto; margin-right: auto; }
    .app-features, .revenue-models, .team-members { grid-template-columns: 1fr; }
    .app-screens { grid-template-columns: 1fr; max-width: 300px; margin-left: auto; margin-right: auto; }
    .app-cta-buttons { justify-content: center; flex-wrap: wrap; gap: 12px; }
    .app-cta-buttons .cta-button, .app-cta-buttons .play-store-btn, .app-cta-buttons .app-store-btn { flex: 1 1 100%; min-width: 0; max-width: 280px; margin-left: auto; margin-right: auto; }
    .screenshot-phones-row { justify-content: center; }
    .app-division-block { text-align: center; }
    .app-division-title { justify-content: center; }
    .app-division-subtitle { margin-left: auto; margin-right: auto; }
    .report-preview-card { margin-left: auto; margin-right: auto; }
    .reportes-intro { margin-left: auto; margin-right: auto; }
    .reportes-features-list { justify-items: center; padding-left: 0; }
    .footer-content { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-brand { margin-left: auto; margin-right: auto; }
    .footer-links { text-align: center; }
    .footer-links ul { display: inline-block; text-align: left; }
    .social-links { justify-content: center; }
    .final-cta { text-align: center; }
    .final-cta h2 { font-size: 36px; }
    .sticky-cta-bar { justify-content: center; padding: 12px 16px; gap: 12px; }
    .sticky-cta-bar a { flex: 1 1 auto; min-width: 0; justify-content: center; }
}
@media (max-width: 480px) {
    .container { padding-left: 14px; padding-right: 14px; }
    .hero-text h1 { font-size: 34px; }
    .hero-subtitle, .hero-text p { font-size: 17px; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .cta-button, .hero-buttons .app-store-btn { width: 100%; max-width: 100%; justify-content: center; }
    .section-header h2 { font-size: 30px; }
    .app-cta-buttons { flex-direction: column; align-items: center; }
    .app-cta-buttons .cta-button, .app-cta-buttons .play-store-btn, .app-cta-buttons .app-store-btn { max-width: 100%; width: 100%; }
    .download-cta-buttons { flex-direction: column; align-items: center; width: 100%; }
    #download-cta .cta-button, #download-cta .app-store-btn { width: 100%; max-width: 280px; justify-content: center; }
    #pricing .pricing-grid { grid-template-columns: 1fr !important; }
    #pricing .pricing-card .price-amount { font-size: 1.65rem !important; word-break: break-word; min-width: 0; }
}
.share-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.share-bar .share-label { font-size: 14px; color: var(--gray); font-weight: 600; margin-right: 4px; }
.share-bar .share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: var(--white);
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 18px;
}
.share-bar .share-btn:hover { background: var(--primary); color: var(--white); transform: scale(1.05); }
html.dark-mode .share-bar .share-btn { border-color: #86efac; color: #86efac; background: transparent; }
html.dark-mode .share-bar .share-btn:hover { background: #86efac; color: var(--dark); }
/* Sticky CTA bar for conversions */
.sticky-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 12px 20px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    display: none;
    align-items: center;
    justify-content: center;
    gap: 16px;
    /* Below header (10050) / drawer so bar never covers nav chrome */
    z-index: 10030;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.sticky-cta-bar.visible {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    row-gap: 10px;
    column-gap: 12px;
}
.sticky-cta-bar a {
    background: var(--secondary);
    color: var(--dark);
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    flex: 1 1 140px;
    min-width: 0;
    max-width: 100%;
    font-size: clamp(13px, 3.4vw, 15px);
    box-sizing: border-box;
}
.sticky-cta-bar a:hover { transform: scale(1.05); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.sticky-cta-text {
    font-size: clamp(13px, 3.5vw, 15px);
    font-weight: 600;
    flex: 1 1 220px;
    min-width: 0;
    text-align: center;
    line-height: 1.35;
    padding: 0 6px;
    box-sizing: border-box;
}
body.has-sticky-cta {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 520px) {
    body.has-sticky-cta {
        padding-bottom: calc(124px + env(safe-area-inset-bottom, 0px));
    }
    .sticky-cta-bar.visible {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 14px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }
    .sticky-cta-text { flex: none; max-width: none; }
    .sticky-cta-bar a { flex: none; width: 100%; }
}

/* Screen-reader only headings */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Trust KPI strip + security (responsive text, no clipped titles) */
.enterprise-trust {
    background: var(--surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 48px 0 40px;
}
.trust-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 148px), 1fr));
    gap: 14px 18px;
    text-align: center;
    margin-bottom: 16px;
}
.trust-kpi {
    min-width: 0;
    padding: 18px 12px;
    border-radius: var(--radius);
    background: var(--surface-muted);
    border: 1px solid var(--border-subtle);
    box-sizing: border-box;
}
.trust-kpi-value {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.05rem, 4.2vw, 1.75rem);
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: 8px;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.trust-kpi-label {
    font-size: clamp(12px, 3.1vw, 14px);
    color: var(--gray);
    font-weight: 600;
    line-height: 1.5;
}
.trust-kpi-note {
    text-align: center;
    font-size: 13px;
    color: var(--gray);
    max-width: 640px;
    margin: 0 auto 20px;
    line-height: 1.55;
    padding: 0 8px;
    overflow-wrap: break-word;
}
.trust-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 14px;
    padding: 0 4px;
}
.trust-logo-pill {
    font-size: clamp(12px, 3vw, 13px);
    font-weight: 600;
    color: var(--dark);
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: var(--white);
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    line-height: 1.3;
}

.enterprise-security {
    background: var(--surface-muted);
    padding: 44px 0;
    border-bottom: 1px solid var(--border-subtle);
}
.enterprise-security-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 clamp(10px, 4vw, 24px);
    box-sizing: border-box;
}
.enterprise-security h2 {
    font-size: clamp(1.25rem, 3.5vw, 1.65rem);
    margin-bottom: 12px;
    color: var(--dark);
    line-height: 1.25;
    overflow-wrap: break-word;
}
.enterprise-security p {
    color: var(--gray);
    font-size: clamp(15px, 3.5vw, 17px);
    line-height: 1.65;
    margin: 0 auto 22px;
    max-width: 65ch;
    overflow-wrap: break-word;
    word-break: break-word;
}
.security-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 0 4px;
}
.security-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--border-subtle);
    font-size: clamp(12px, 3vw, 14px);
    font-weight: 600;
    color: var(--dark);
    max-width: 100%;
    box-sizing: border-box;
    line-height: 1.35;
}
.security-pill i { color: var(--primary); flex-shrink: 0; }
.security-pill a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(22, 163, 74, 0.35);
}
.security-pill a:hover { border-bottom-color: var(--primary); }

html.dark-mode .enterprise-trust {
    background: #111111;
    border-bottom-color: rgba(255, 255, 255, 0.06);
}
html.dark-mode .trust-kpi {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
}
html.dark-mode .trust-kpi-value { color: #86efac; }
html.dark-mode .trust-kpi-label { color: #cbd5e1; }
html.dark-mode .trust-kpi-note { color: #94a3b8; }
html.dark-mode .trust-logo-pill {
    background: #1e293b;
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.1);
}
html.dark-mode .enterprise-security {
    background: #111827;
    border-bottom-color: rgba(255, 255, 255, 0.06);
}
html.dark-mode .enterprise-security h2 { color: #f8fafc; }
html.dark-mode .enterprise-security p { color: #94a3b8; }
html.dark-mode .security-pill {
    background: #1e293b;
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.1);
}

.download-cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Theme toggle button */
.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: var(--white);
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
    flex-shrink: 0;
}
.theme-toggle:hover { background: var(--primary-light); transform: scale(1.05); }
html.dark-mode .theme-toggle { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); color: #86efac; }
html.dark-mode .theme-toggle:hover { background: rgba(255,255,255,0.15); }

/* Full page dark mode */
html.dark-mode {
    background: #111111;
    color-scheme: dark;
}
html.dark-mode body {
    background: #111111;
    color: #e2e8f0;
}
html.dark-mode #problema-solucion {
    background: #111111 !important;
}
html.dark-mode .gallery-section {
    background: #111111 !important;
}
html.dark-mode #download-cta {
    background: linear-gradient(135deg, #0f172a 0%, #111111 55%, #111111 100%) !important;
}
html.dark-mode #download-cta h2 {
    color: #f8fafc;
}
html.dark-mode #download-cta > .container > p {
    color: #94a3b8 !important;
}
html.dark-mode #pricing {
    background: #111111;
}
html.dark-mode .faq-section {
    background: #111111 !important;
}
html.dark-mode .header {
    background: rgba(17, 17, 17, 0.96);
    border-bottom-color: rgba(255,255,255,0.08);
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}
html.dark-mode .logo-text { color: #86efac; }
html.dark-mode .logo-text span { color: var(--secondary); }
html.dark-mode .logo-tagline { color: rgba(255, 255, 255, 0.78); }
html.dark-mode .nav-link { color: #e2e8f0; }
html.dark-mode .nav-link:hover { color: #86efac; }
html.dark-mode .nav-link::after { background: #86efac; }
html:not(.dark-mode) .hamburger {
    background: transparent;
}
html.dark-mode .hamburger {
    background: rgba(255, 255, 255, 0.08);
}
html.dark-mode .hamburger span { background: #e2e8f0; }
html.dark-mode .hero { background: linear-gradient(165deg, #111111 0%, #0c0c0c 100%); }
html.dark-mode .hero-text h1 { color: #f8fafc; }
/* Gradient clipped text is invisible in many webviews; use solid high-contrast accent */
html.dark-mode .hero-text h1 span,
html.dark-mode .hero-text .highlight {
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: #fbbf24 !important;
    color: #fbbf24 !important;
}
html.dark-mode .hero-text h1 span::after { opacity: 0.25; }
html.dark-mode .hero-subtitle { color: #cbd5e1; }
html.dark-mode .hero-text ul li { color: #cbd5e1; }
html.dark-mode .section-header h2 { color: #f8fafc; }
html.dark-mode .section-header p { color: #94a3b8; }
html.dark-mode .app-showcase { background: #111111; }
html.dark-mode .app-feature { background: #1e293b; border-color: rgba(255,255,255,0.06); color: #e2e8f0; }
html.dark-mode .app-feature h3 { color: #f8fafc; }
html.dark-mode .app-feature p { color: #94a3b8; }
html.dark-mode .app-divisions { background: #111111; }
html.dark-mode .app-division-title { color: #f8fafc; }
html.dark-mode .app-division-subtitle { color: #94a3b8; }
html.dark-mode .reportes-section { background: #111111; border-top-color: rgba(255,255,255,0.06); }
html.dark-mode .report-preview-card { background: #111111; border-color: rgba(255,255,255,0.1); }
html.dark-mode .report-preview-card .report-body { color: #e2e8f0; }
html.dark-mode .reportes-features-list li { color: #cbd5e1; }
html.dark-mode .reportes-intro { color: #94a3b8; }
html.dark-mode .testimonials { background: #111111; }
html.dark-mode .testimonial-card { background: #1e293b; border-color: rgba(255,255,255,0.06); color: #e2e8f0; }
html.dark-mode .testimonial-card h4 { color: #f8fafc; }
html.dark-mode .testimonial-quote { color: #cbd5e1; }
html.dark-mode .comparison-section { background: #111111; }
html.dark-mode .comparison-before, html.dark-mode .comparison-after { background: #111111; border-color: rgba(255,255,255,0.1); color: #e2e8f0; }
html.dark-mode .email-capture { background: linear-gradient(135deg, #111111 0%, #0a0a0a 100%); }
html.dark-mode .faq-item { background: #1e293b; border-color: rgba(255,255,255,0.08); color: #e2e8f0; }
html.dark-mode .faq-question { color: #f8fafc; }
html.dark-mode .revenue-section { background: linear-gradient(165deg, #111111 0%, #0a0a0a 100%); }
html.dark-mode .revenue-model { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.08); }
html.dark-mode .revenue-model h3 { color: #ffffff; }
html.dark-mode .revenue-model p { color: #ffffff; }
html.dark-mode .revenue-section .section-header p { color: #ffffff; opacity: 0.95; }
html.dark-mode .revenue-section .revenue-cta-note { color: #ffffff; }
html.dark-mode .revenue-section .revenue-cta-note a { color: #ffffff; }
html.dark-mode .team-section { background: #111111; }
html.dark-mode .team-member { background: #1e293b; border-color: rgba(255,255,255,0.06); color: #e2e8f0; }
html.dark-mode .final-cta { background: #111111; }
html.dark-mode .final-cta h2 { color: #f8fafc; }
html.dark-mode .final-cta p { color: #94a3b8; }
html.dark-mode .footer { background: #111111; border-top-color: rgba(255,255,255,0.06); }
html.dark-mode .footer-links a { color: #94a3b8; }
html.dark-mode .footer-links a:hover { color: #f8fafc; }
html.dark-mode .footer-bottom p { color: #cbd5e1; }
html.dark-mode .pastoral-section { background: #111111; }
html.dark-mode .roi-calculator { background: #111111; border-color: rgba(255,255,255,0.1); color: #e2e8f0; }
html.dark-mode .calculator-title h2 { color: #f8fafc; }
html.dark-mode .calculator-result { color: #cbd5e1; }
html.dark-mode .reportes-ai-badge { background: rgba(45,138,75,0.2); color: #86efac; border-color: rgba(45,138,75,0.4); }
html.dark-mode .reportes-cta-note { color: #94a3b8; }
html.dark-mode .darkmode-section { background: linear-gradient(165deg, #111111 0%, #0c0c0c 100%); }
html.dark-mode .calculator-inputs label { color: #94a3b8; }
html.dark-mode .input-group input { background: #111111; border-color: rgba(255,255,255,0.15); color: #f8fafc; }
html.dark-mode .capture-content h2 { color: #f8fafc; }
html.dark-mode .capture-content p { color: #cbd5e1; }
html.dark-mode .capture-form input { background: #1e293b; border: 1px solid rgba(255,255,255,0.2); color: #f8fafc; }
html.dark-mode .breakdown-title { color: #cbd5e1; }
html.dark-mode .breakdown-category { color: #94a3b8; }
html.dark-mode .breakdown-amount { color: #f8fafc; }
html.dark-mode .breakdown-note { color: #64748b; }
html.dark-mode .result-amount #estimated-saving { color: var(--secondary); }
/* Extra dark-mode: any remaining black/dark text -> light */
html.dark-mode .proof-text { color: #94a3b8; }
html.dark-mode .proof-text strong { color: #f8fafc; }
html.dark-mode .screen-label h4 { color: #f8fafc; }
html.dark-mode .screen-label p { color: #94a3b8; }
html.dark-mode .report-preview-card td { color: #e2e8f0; }
html.dark-mode .report-preview-card th { color: #f8fafc; }
html.dark-mode .report-preview-card .report-resumen ul { color: #e2e8f0; }
html.dark-mode .report-preview-card .report-milk { color: #e2e8f0; background: #1e293b; border-color: rgba(255,255,255,0.1); }
html.dark-mode .report-preview-card .report-milk strong { color: #86efac; }
html.dark-mode .reportes-features-list li { color: #cbd5e1; }
html.dark-mode .reportes-features-list li i { color: #86efac; }
html.dark-mode .testimonial-text { color: #cbd5e1; }
html.dark-mode .testimonial-quote { color: #cbd5e1; }
html.dark-mode .faq-question h3 { color: #f8fafc; }
html.dark-mode .faq-answer p { color: #cbd5e1; }
html.dark-mode .capture-note { color: #94a3b8; }
html.dark-mode .capture-note small { color: #94a3b8; }
html.dark-mode .footer-description { color: rgba(255,255,255,0.75); }
html.dark-mode .footer-links h4 { color: #f8fafc; }
html.dark-mode .revenue-amount { color: #ffffff; }
html.dark-mode .revenue-amount span { color: rgba(255, 255, 255, 0.9); }
html.dark-mode .comparison-list li { color: #e2e8f0; }
html.dark-mode .comparison-item h3 { color: #f8fafc; }
html.dark-mode .sticky-cta-text { color: #f8fafc; }
html.dark-mode .app-screen-card .screen-label { border-top-color: rgba(255,255,255,0.08); }
html.dark-mode .social-proof { background: #111111; border-color: rgba(255,255,255,0.08); }
html.dark-mode .pastoral-caption { color: #94a3b8; }
html.dark-mode .gallery-section .section-header h2 { color: #f8fafc; }
html.dark-mode .gallery-section .section-header p { color: #94a3b8; }

/* Pricing */
#pricing {
    background: var(--surface);
}
#pricing .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}
#pricing .pricing-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 28px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    box-shadow: var(--shadow);
    transition: var(--transition);
    min-width: 0;
}
#pricing .pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
#pricing .pricing-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
    color: var(--dark);
}
#pricing .pricing-card .price-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
    font-family: var(--font-display);
}
#pricing .pricing-card .price-amount span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray);
}
#pricing .pricing-card-featured {
    border: 2px solid var(--primary);
    background: linear-gradient(180deg, var(--white) 0%, var(--primary-light) 100%);
}
#pricing .pricing-footnote {
    margin-top: 28px;
    font-size: 14px;
    color: var(--gray);
}
#pricing .pricing-card .cta-button {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}
#pricing .pricing-card p {
    margin-bottom: 16px;
    color: var(--gray);
}
#pricing .pricing-card .plan-detail {
    font-size: 14px;
    color: var(--dark);
    margin-bottom: 24px;
    flex-grow: 1;
}
#pricing .pricing-card {
    display: flex;
    flex-direction: column;
}

.hero-legal {
    font-size: 13px;
    color: var(--gray);
    margin-top: 12px;
}

html.dark-mode .hero-eyebrow {
    color: #86efac;
    background: rgba(22, 163, 74, 0.25);
    border-color: rgba(134, 239, 172, 0.35);
}
html.dark-mode #pricing .pricing-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
}
html.dark-mode #pricing .pricing-card h3,
html.dark-mode #pricing .pricing-card p,
html.dark-mode #pricing .pricing-card .plan-detail {
    color: #e2e8f0;
}
html.dark-mode #pricing .pricing-card-featured {
    background: linear-gradient(180deg, #1e293b 0%, rgba(22, 163, 74, 0.15) 100%);
    border-color: #86efac;
}
html.dark-mode #pricing .pricing-footnote {
    color: #94a3b8;
}
html.dark-mode #pricing .pricing-card .price-amount span {
    color: #cbd5e1;
}
html.dark-mode .hero-legal {
    color: #94a3b8;
}
