:root {
    /* Brand Colors */
    --primary-color: #114C5D;
    /* Deep Teal */
    --accent-color: #38B29B;
    /* Vibrant Aqua */
    --accent-dark: #2A8C78;
    /* Darker Aqua */
    --neutral-dark: #44494B;
    /* Charcoal Grey */
    --text-secondary: #5F6769;
    /* Softer Grey for body */
    --bg-white: #FFFFFF;
    --bg-light: #F4F7F8;
    --bg-card: rgba(255, 255, 255, 0.7);
    /* More transparent for glass */

    /* Shadows & Effects */
    --shadow-soft: 0 10px 30px -10px rgba(17, 76, 93, 0.15);
    --shadow-hover: 0 20px 40px -10px rgba(56, 178, 155, 0.25);
    /* Colored shadow */
    --glass-border: 1px solid rgba(255, 255, 255, 0.6);
    --glass-blur: blur(12px);

    /* Gradients */
    --gradient-accent: linear-gradient(135deg, #38B29B 0%, #114C5D 100%);
    --gradient-hero: radial-gradient(circle at 50% 0%, #F0FDFA 0%, #FFFFFF 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-white);
    /* Subtle noise texture */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    color: var(--neutral-dark);
    line-height: 1.7;
    /* Increased line-height */
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
    /* Tighten for modern feel */
    line-height: 1.2;
}

.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-weight: 800;
    /* Bolder for gradient text */
}

.highlight {
    color: var(--accent-color);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-dark);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.container {
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

.narrow-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Card Styles */
/* refined Card Styles */
/* refined Card Styles */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    /* Solid enough to skip blur */
    border: var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    /* backdrop-filter removed: major scroll performance gain */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
    contain: content;
    /* Paint isolation */
    will-change: transform;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(56, 178, 155, 0.3);
}

/* Fix for Flip Cards: Disable standard glass-card hover to prevent jitter */
.value-flip-card .glass-card:hover {
    transform: none;
    box-shadow: var(--shadow-soft);
    border-color: var(--glass-border);
}

/* Typography Enhancements */
p {
    margin-bottom: 20px;
    /* Global spacing improvement */
}

/* Text Gradient for Dark Backgrounds */
.text-gradient {
    background: linear-gradient(135deg, #38B29B 0%, #A0EACD 100%);
    /* Lighter end color */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-weight: 800;
}

/* Sections General */
.section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
    scroll-margin-top: 180px;
    /* Account for large header when scrolling to IDs */
}

/* Why Conclusion Box */
.why-conclusion {
    margin-top: 60px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.5);
    /* Semi-transparent white */
    border: 1px solid rgba(17, 76, 93, 0.1);
    border-radius: 20px;
    position: relative;
    box-shadow: var(--shadow-soft);
}

.why-conclusion::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 4px;
    height: 60%;
    background: var(--accent-color);
    transform: translateY(-50%);
    border-radius: 0 4px 4px 0;
}

.large-text {
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 600;
    line-height: 1.5;
}

.btn {
    padding: 15px 35px;
    /* Added base padding for larger buttons */
    font-size: 1.1rem;
    /* Increased font size */
    border-radius: 50px;
    /* Rounded corners */
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(56, 178, 155, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(56, 178, 155, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: #FFFFFF;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 40px 0;
    /* Further increased from 30px */
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.98);
    /* Almost solid */
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    /* Slightly more visible */
}

.navbar.scrolled {
    padding: 25px 0;
    /* Increased from 20px */
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 100px;
    width: auto;
    transition: height 0.3s ease;
}

@media (max-width: 900px) {
    .logo-img {
        height: 70px;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    /* Bolder for more presence */
    font-size: 1.3rem;
    /* Increased from 1.1rem */
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
/* Hero Section */
/* Ambient Background Orbs */
.blob {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    opacity: 0.8;
    /* Adjusted for gradient */
    /* Removed expensive blur(80px) and continuous moveBlob animation */
    /* filter: blur(80px); */
    /* animation: moveBlob 20s infinite alternate; */
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(56, 178, 155, 0.25) 0%, rgba(56, 178, 155, 0) 70%);
    top: -200px;
    left: -200px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(17, 76, 93, 0.2) 0%, rgba(17, 76, 93, 0) 70%);
    bottom: -150px;
    right: -150px;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(56, 178, 155, 0.2) 0%, rgba(56, 178, 155, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 220px;
    /* Increased from 800px to avoid header overlap */
    background: var(--gradient-hero);
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0.6;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 650px;
}

.hero-label {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(56, 178, 155, 0.1);
    border: 1px solid rgba(56, 178, 155, 0.2);
    border-radius: 30px;
    color: var(--accent-dark);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    /* Fluid size */
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.35rem;
    /* Slightly larger */
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 400;
    max-width: 550px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--neutral-dark);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.hero-actions .btn {
    min-width: 200px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-radius: 30px;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: inset(0 30px 30px 0);
    /* Surgical crop of bottom-right logo */
}

/* Floating Animation */
.sphere-container {
    width: 550px;
    height: 550px;
    animation: float 8s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(17, 76, 93, 0.2));
    display: flex;
    justify-content: center;
    align-items: center;
    will-change: transform;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 4px 15px rgba(56, 178, 155, 0.3);
    }

    50% {
        box-shadow: 0 8px 25px rgba(56, 178, 155, 0.6);
    }

    100% {
        box-shadow: 0 4px 15px rgba(56, 178, 155, 0.3);
    }
}

.glow-effect {
    animation: pulse-glow 3s infinite;
}

/* Scroll Reveal Class (to be toggled by JS) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Sections General */
.section {
    padding: 100px 0;
    position: relative;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin-bottom: 16px;
    color: var(--primary-color);
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--neutral-dark);
    margin-bottom: 60px;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

/* Reality Section Refined */
.systems-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 70px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.system-item {
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(17, 76, 93, 0.1);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    cursor: default;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

/* Make some system items look different for variety */
.system-item:nth-child(even) {
    background: rgba(56, 178, 155, 0.1);
    border-color: rgba(56, 178, 155, 0.2);
    color: var(--primary-color);
}

.system-item:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(56, 178, 155, 0.2);
    background: #FFFFFF;
    z-index: 2;
}

.problem-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Force 3 columns on large screens */
    gap: 30px;
    margin: 50px 0;
}

@media (max-width: 768px) {
    .problem-list {
        grid-template-columns: 1fr;
    }
}

.problem-card {
    text-align: center;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.8);
    /* Glass effect base */
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.5);
    /* Subtle border */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    transition: background 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    background: #FFFFFF;
}

.problem-card:hover::before {
    background: var(--accent-color);
}

.problem-icon {
    font-size: 3rem;
    /* Larger icons */
    margin-bottom: 25px;
    display: inline-block;
    padding: 15px;
    background: rgba(56, 178, 155, 0.1);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    line-height: 50px;
    border: 1px dashed rgba(56, 178, 155, 0.3);
}

/* What is NODUS */
.content-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.content-split .text-content {
    transform: translateY(40px);
    /* Push text down to align with the visual core of the image */
}

.content-split .section-title {
    margin-top: 0;
}





.lead-text {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-weight: 600;
}

.mb-large {
    margin-bottom: 50px !important;
}

.check-icon {
    color: var(--accent-color);
    margin-right: 10px;
}

.manifesto-item {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--neutral-dark);
}

.visual-content img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    clip-path: inset(0 30px 30px 0);
    /* Hide watermark */
}

.feature-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
}

/* Purpose Section */
.purpose-section {
    background-color: var(--primary-color);
    color: #FFFFFF;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Add subtle pattern overlay to purpose section */
.purpose-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 50%, rgba(56, 178, 155, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.purpose-quote {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #FFFFFF;
    position: relative;
    z-index: 1;
}

.purpose-text {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
    color: #E0F2F1;
    position: relative;
    z-index: 1;
}

.purpose-section .section-title,
.purpose-section .section-subtitle {
    color: #FFFFFF;
}

/* Why Grid */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.why-card {
    padding: 40px;
    text-align: left;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.evaluation-card {
    background: #FFFFFF;
    padding: 60px;
    border-radius: 24px;
    box-shadow: var(--shadow-hover);
    width: 100%;
    /* Occupy full container width */
    margin: 0 auto;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(56, 178, 155, 0.1);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--accent-dark);
    margin-bottom: 24px;
}

/* New Convergence Layout - Nosotros */
.nosotros-convergence-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 60px;
}

.founder-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.founder-card-modern {
    position: relative;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.4);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

.founder-card-modern:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.6);
}

.silver-glow {
    box-shadow: 0 10px 40px rgba(100, 116, 139, 0.1), inset 0 0 20px rgba(100, 116, 139, 0.05);
}

.aqua-glow {
    box-shadow: 0 10px 40px rgba(56, 178, 155, 0.1), inset 0 0 20px rgba(56, 178, 155, 0.05);
}

.silver-glow:hover {
    box-shadow: 0 20px 60px rgba(100, 116, 139, 0.2);
    border-color: rgba(100, 116, 139, 0.4);
}

.aqua-glow:hover {
    box-shadow: 0 20px 60px rgba(56, 178, 155, 0.3);
    border-color: rgba(56, 178, 155, 0.5);
}

.specialty-badge {
    position: absolute;
    top: -15px;
    left: 30px;
    background: var(--gradient-accent);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(56, 178, 155, 0.3);
}

.silver-glow .specialty-badge {
    background: linear-gradient(135deg, #64748B, #94A3B8);
}

.founder-card-modern h3 {
    font-size: 2rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.founder-role {
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.founder-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #4A5568;
    margin-bottom: 25px;
}

.founder-signature {
    font-family: 'Montserrat', sans-serif;
    font-style: italic;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
    opacity: 0.6;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 15px;
}

/* Convergence Visual Column */
.convergence-visual-column {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.visual-wrap {
    position: relative;
    width: 100%;
    max-width: 450px;
    overflow: hidden;
    /* For watermark cropping */
    border-radius: 40px;
}

.img-convergence {
    width: 100%;
    height: auto;
    clip-path: inset(0 30px 30px 0);
    filter: drop-shadow(0 0 30px rgba(56, 178, 155, 0.2));
    animation: float 6s ease-in-out infinite;
    will-change: transform;
}

@keyframes float {

    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -18px, 0);
    }
}

/* Synthesis Modern */
.about-synthesis-modern {
    background: rgba(248, 250, 251, 0.5);
    padding: 60px 40px;
    border-radius: 40px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.synthesis-features {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 40px 0;
}

.synthesis-item {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
    max-width: 380px;
}

.synthesis-item p {
    margin: 0;
    line-height: 1.5;
}

.brand-accent-node {
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 0 15px var(--accent-color);
}

.brand-accent-node::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse-node 2s infinite;
}

@keyframes pulse-node {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.lead-text {
    font-size: 1.3rem;
    color: var(--primary-color);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}

.final-statement {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.impact-message {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-style: italic;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}


/* Mission & Vision */
.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.mv-card {
    padding: 50px;
    text-align: center;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border-top: 4px solid var(--primary-color);
}

/* Values Flip Cards */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.value-flip-card {
    background-color: transparent;
    height: 320px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.value-flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    /* Solid background replaces blur for better scroll performance */
    background: rgba(255, 255, 255, 0.97);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.flip-card-front {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #E5E7EB;
    z-index: 2;
    transform: rotateY(0deg);
    /* Explicitly set base transform */
}

.flip-card-back {
    background-color: var(--primary-color);
    /* Deep Teal */
    color: #FFFFFF;
    transform: rotateY(180deg);
    z-index: 1;
    /* Should be lower than front initially */
    border-color: rgba(255, 255, 255, 0.1);
}

.flip-card-back h3 {
    color: #FFFFFF;
}

.flip-card-back p {
    color: #E0F2F1;
}

/* Process Section (Cómo Funciona) */
.process-section {
    background: radial-gradient(circle at 10% 50%, rgba(56, 178, 155, 0.05), transparent),
        radial-gradient(circle at 90% 50%, rgba(17, 76, 93, 0.05), transparent);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.process-step {
    padding: 50px 40px;
    text-align: center;
    position: relative;
    border-top: 4px solid var(--accent-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.process-step.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.process-step.active {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    color: rgba(56, 178, 155, 0.15);
    /* Light watermark style */
    position: absolute;
    top: 20px;
    right: 30px;
    line-height: 1;
    z-index: 0;
}

.process-step h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    margin-top: 10px;
    z-index: 1;
    position: relative;
    min-height: 40px;
    /* Aligns multiline text better */
}

.process-step p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    z-index: 1;
    position: relative;
    margin-bottom: 0;
}

/* Add subtle arrow pointing to next step on desktop */
@media (min-width: 1024px) {
    .process-step:not(:last-child)::after {
        content: '→';
        position: absolute;
        right: -30px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 2rem;
        color: var(--accent-color);
        opacity: 0.5;
        z-index: 2;
    }
}

/* Evaluation Section Refined - Focus Mode */
.evaluation-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, rgba(56, 178, 155, 0.05), transparent),
        radial-gradient(circle at bottom left, rgba(17, 76, 93, 0.05), transparent);
}

.narrow-container {
    max-width: 1100px;
    /* Increased from 1000px */
}

.focus-progress-container {
    width: 100%;
    height: 6px;
    background: rgba(17, 76, 93, 0.1);
    border-radius: 10px;
    margin-bottom: 40px;
    overflow: hidden;
}

.focus-progress-bar {
    height: 100%;
    background: var(--gradient-accent);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(56, 178, 155, 0.5);
}

.focus-mode-form {
    position: relative;
    min-height: 400px;
}

.focus-step-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 40px;
    /* Increased horizontal and vertical gap */
    margin-bottom: 30px;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    background: #F8FAFB;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    font-family: inherit;
    /* Matches Roboto */
    font-size: 1rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    background: #FFFFFF;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(56, 178, 155, 0.1);
}

.form-group input::placeholder {
    color: #A0AEC0;
}

.focus-question-wrap {
    text-align: center;
    padding: 40px 0;
    /* Increased padding */
}

.step-counter {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(56, 178, 155, 0.1);
    color: var(--accent-dark);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.focus-question {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.focus-subquestion {
    color: var(--neutral-dark);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.focus-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.focus-option-card {
    flex: 1;
    max-width: 200px;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.manifesto-item {
    padding: 24px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.4s ease;
    /* Removed opacity:0 and transform to prevent it from getting stuck hidden */
}

.manifesto-item:hover {
    transform: translateY(-8px);
    background: #FFFFFF;
    box-shadow: var(--shadow-soft);
    border-color: var(--accent-color);
}

.focus-option-card:hover {
    transform: translateY(-10px);
    background: #FFFFFF;
    border-color: var(--accent-color);
    box-shadow: 0 15px 35px rgba(56, 178, 155, 0.15);
}


.focus-option-card .option-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.focus-option-card.selected {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.focus-option-card.selected .option-text,
.focus-option-card.selected .option-icon {
    color: #FFFFFF;
}

.btn-link {
    background: none;
    border: none;
    color: var(--neutral-dark);
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: var(--primary-color);
}

.btn-xl {
    padding: 20px 50px;
    font-size: 1.3rem;
    border-radius: 100px;
}

/* Form Transitions */
.form-step {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.form-step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}



/* Footer Enhanced */
.site-footer {
    background-color: #0D3B48;
    /* Darker Brand Color */
    color: #FFFFFF;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-accent);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    height: 80px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    /* Make logo white */
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links h4 {
    color: #FFFFFF;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .hero-container {
        gap: 30px;
    }

    .sphere-container {
        width: 450px;
        height: 450px;
    }
}

@media (max-width: 900px) {
    .section {
        padding: 60px 0;
    }

    .hero-section {
        padding-top: 160px;
        min-height: 0;
        padding-bottom: 60px;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
    }

    .hero-subtitle {
        margin: 0 auto 24px;
    }

    .hero-actions {
        justify-content: center;
    }

    .sphere-container {
        width: 320px;
        height: 320px;
    }

    .content-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .content-split .text-content {
        transform: none;
        text-align: center;
    }

    .nodus-manifesto {
        text-align: left;
        max-width: 500px;
        margin: 0 auto;
    }

    .mv-grid {
        grid-template-columns: 1fr;
    }

    .nosotros-convergence-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .convergence-visual-column {
        order: -1;
    }

    .synthesis-features {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .synthesis-item {
        max-width: 100%;
    }

    .logo-img {
        height: 80px;
    }

    .navbar {
        padding: 20px 0;
    }

    .navbar.scrolled {
        padding: 15px 0;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #FFFFFF;
        padding: 30px 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        gap: 20px;
        z-index: 1000;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-link {
        font-size: 1.1rem;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    .nav-cta {
        width: 100%;
        text-align: center;
    }

    .problem-list {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .focus-question {
        font-size: 1.8rem;
    }

    .focus-options {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .focus-option-card {
        width: 100%;
        max-width: 100%;
        padding: 25px 20px;
    }

    .evaluation-card {
        padding: 40px 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-brand {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .sphere-container {
        width: 260px;
        height: 260px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .purpose-quote {
        font-size: 1.8rem;
    }
}

/* ═══════════════════════════════════════
   TEASER / APERTURA SECTION
═══════════════════════════════════════ */
.teaser-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(160deg, #060e12 0%, #0b2130 45%, #0f3347 100%);
    overflow: hidden;
    padding: 140px 40px 80px;
}

/* Subtle dot-grid background */
.teaser-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(56, 178, 155, 0.18) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: 0.4;
    pointer-events: none;
    animation: gridDrift 40s linear infinite;
}

@keyframes gridDrift {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 42px 42px;
    }
}

/* Ambient light orb */
.teaser-section::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 178, 155, 0.12) 0%, transparent 70%);
    pointer-events: none;
    animation: orbPulse 8s ease-in-out infinite alternate;
}

@keyframes orbPulse {
    from {
        opacity: 0.6;
        transform: translateX(-50%) scale(1);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) scale(1.15);
    }
}

.teaser-container {
    position: relative;
    z-index: 2;
    max-width: 820px;
    width: 100%;
    text-align: center;
}

/* Staggered entrance for each line */
.teaser-line {
    opacity: 0;
    transform: translateY(28px);
    animation: teaserReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.teaser-line-1 {
    animation-delay: 0.3s;
}

.teaser-line-2 {
    animation-delay: 0.9s;
}

.teaser-line-3 {
    animation-delay: 1.5s;
}

.teaser-line-4 {
    animation-delay: 2.1s;
}

@keyframes teaserReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main prose lines */
.teaser-line:not(.teaser-question):not(.teaser-cta-wrap) {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(1.1rem, 2.2vw, 1.45rem);
    font-weight: 300;
    color: rgba(224, 242, 241, 0.85);
    line-height: 1.75;
    margin-bottom: 0;
}

.teaser-emphasis {
    color: #38B29B;
    font-weight: 500;
}

/* Thin animated divider */
.teaser-divider {
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 178, 155, 0.5), transparent);
    margin: 32px auto;
    animation: dividerGrow 0.7s ease forwards;
    animation-play-state: paused;
}

/* Trigger divider once teaser section enters viewport */
.teaser-section .teaser-divider:nth-of-type(1) {
    animation-delay: 0.65s;
    animation-play-state: running;
}

.teaser-section .teaser-divider:nth-of-type(2) {
    animation-delay: 1.25s;
    animation-play-state: running;
}

@keyframes dividerGrow {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 260px;
        opacity: 1;
    }
}

/* Big rhetorical question */
.teaser-question {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 0;
    text-shadow: 0 0 60px rgba(56, 178, 155, 0.3);
}

/* CTA block */
.teaser-cta-wrap {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.teaser-brand {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 600;
    color: #38B29B;
    letter-spacing: 0.04em;
    margin: 0;
}

.teaser-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 38px;
    background: linear-gradient(135deg, #38B29B 0%, #114C5D 100%);
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 30px rgba(56, 178, 155, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.teaser-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(56, 178, 155, 0.55);
}

.teaser-arrow {
    display: inline-block;
    animation: arrowBounce 1.4s ease-in-out infinite;
}

@keyframes arrowBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(5px);
    }
}

/* Scroll hint dot */
.teaser-scroll-hint {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0;
    animation: teaserReveal 0.8s ease 2.8s forwards;
}

.teaser-scroll-hint span {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(56, 178, 155, 0.7);
    box-shadow: 0 0 0 0 rgba(56, 178, 155, 0.4);
    animation: scrollPing 2s ease-in-out infinite;
}

@keyframes scrollPing {
    0% {
        box-shadow: 0 0 0 0 rgba(56, 178, 155, 0.5);
    }

    70% {
        box-shadow: 0 0 0 14px rgba(56, 178, 155, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(56, 178, 155, 0);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .teaser-section {
        padding: 130px 28px 70px;
        min-height: 100svh;
    }

    .teaser-question {
        font-size: 1.5rem;
    }

    .teaser-line:not(.teaser-question):not(.teaser-cta-wrap) {
        font-size: 1rem;
    }

    .teaser-btn {
        padding: 12px 28px;
        font-size: 0.9rem;
    }
}

/* ═══════════════════════════════════════
   PROBLEM NODES VISUAL
═══════════════════════════════════════ */
.problem-visual {
    margin: 40px auto 20px;
    max-width: 460px;
    text-align: center;
}

.problem-nodes-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(17, 76, 93, 0.18);
    display: block;
}

@media (max-width: 768px) {
    .problem-nodes-img {
        border-radius: 12px;
    }
}

/* Reality Insight Quote */
.reality-insight {
    max-width: 780px;
    margin: 48px auto 0;
    padding: 32px 40px 32px 48px;
    background: linear-gradient(135deg, rgba(56, 178, 155, 0.06) 0%, rgba(17, 76, 93, 0.04) 100%);
    border-left: 4px solid var(--accent-color);
    border-radius: 0 16px 16px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.5;
    text-align: left;
    position: relative;
}

.reality-insight::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    left: 36px;
    font-size: 5rem;
    line-height: 1;
    color: var(--accent-color);
    opacity: 0.25;
    font-family: Georgia, serif;
}

@media (max-width: 768px) {
    .reality-insight {
        padding: 24px 24px 24px 32px;
        font-size: 1rem;
        margin-top: 36px;
    }
}

/* ============================================
   PERFORMANCE: Respect user motion preference
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}