/* =========================================================================
   FUNDACIÓN SOLVENTA LAB CHILE - STYLES
   Premium, futuristic, corporate identity.
========================================================================= */

#view-foundation-chile {
    font-family: 'Inter', system-ui, sans-serif;
    color: #fff;
    background-color: transparent; /* Permite ver el fondo animado de la app principal */
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Typography & General */
#view-foundation-chile h1,
#view-foundation-chile h2,
#view-foundation-chile h3,
#view-foundation-chile h4 {
    font-family: 'Rajdhani', sans-serif;
    margin: 0;
    color: #fff;
}

#view-foundation-chile p {
    color: #A8B3C7; /* Gris texto */
    line-height: 1.6;
}

.foundation-section {
    padding: 100px 5%;
    position: relative;
}

.cyan-text {
    color: #00B8D9;
}

.glow-text {
    text-shadow: 0 0 10px rgba(0, 184, 217, 0.5);
}

/* Glassmorphism Cards */
.fnd-glass-card {
    background: rgba(11, 19, 36, 0.6); /* Fondo secundario translúcido */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 184, 217, 0.15);
    border-radius: 16px;
    padding: 40px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.fnd-glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(25, 211, 243, 0.5);
    box-shadow: 0 10px 30px rgba(0, 136, 163, 0.2);
}

.fnd-glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: skewX(-25deg);
    transition: all 0.6s ease;
}

.fnd-glass-card:hover::before {
    left: 150%;
}

/* Buttons */
.fnd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.fnd-btn-primary {
    background: linear-gradient(135deg, #00B8D9 0%, #0088A3 100%);
    color: #050A14;
    box-shadow: 0 0 20px rgba(0, 184, 217, 0.4);
}

.fnd-btn-primary:hover {
    background: linear-gradient(135deg, #19D3F3 0%, #00B8D9 100%);
    box-shadow: 0 0 30px rgba(25, 211, 243, 0.6);
    transform: scale(1.05);
}

.fnd-btn-secondary {
    background: transparent;
    color: #19D3F3;
    border: 1px solid #0088A3;
}

.fnd-btn-secondary:hover {
    background: rgba(0, 136, 163, 0.1);
    border-color: #19D3F3;
    box-shadow: 0 0 15px rgba(25, 211, 243, 0.2);
}

.fnd-btn-tertiary {
    background: transparent;
    color: #A8B3C7;
}

.fnd-btn-tertiary:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(255,255,255,0.5);
}

/* 1. Hero Principal */
.fnd-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 80% 20%, rgba(0, 136, 163, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 20% 80%, rgba(8, 17, 31, 0.6) 0%, transparent 60%);
    padding-top: 80px; /* Offset for nav */
}

.fnd-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
    position: relative;
    z-index: 2;
}

.fnd-hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #19D3F3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fnd-hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 90%;
}

.fnd-hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.fnd-hero-visual {
    position: relative;
    height: 500px;
}

.fnd-particle {
    position: absolute;
    background: #19D3F3;
    border-radius: 50%;
    box-shadow: 0 0 10px #19D3F3;
}

/* 2. Historia del Fundador */
.fnd-timeline-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin-top: 60px;
    padding-bottom: 40px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #0088A3 #050A14;
}

.fnd-timeline-line {
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(0, 184, 217, 0.2);
    z-index: 1;
}

.fnd-timeline-progress {
    position: absolute;
    top: 30px;
    left: 0;
    width: 0%;
    height: 2px;
    background: #19D3F3;
    box-shadow: 0 0 10px #19D3F3;
    z-index: 2;
    transition: width 0.5s ease;
}

.fnd-timeline-node {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 180px;
    flex-shrink: 0;
}

.fnd-node-icon {
    width: 60px;
    height: 60px;
    background: #08111F;
    border: 2px solid #0088A3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.fnd-node-icon svg {
    width: 24px;
    height: 24px;
    stroke: #19D3F3;
}

.fnd-timeline-node:hover .fnd-node-icon {
    background: #0088A3;
    box-shadow: 0 0 20px rgba(25, 211, 243, 0.6);
}

.fnd-timeline-node h4 {
    font-size: 1.1rem;
    color: #fff;
}

.fnd-story-message {
    text-align: center;
    font-size: 1.4rem;
    font-style: italic;
    color: #19D3F3;
    max-width: 800px;
    margin: 60px auto 0;
    border-left: 4px solid #00B8D9;
    padding: 20px;
    background: linear-gradient(90deg, rgba(0, 184, 217, 0.1), transparent);
}

/* 3. Cuatro Pilares */
.fnd-pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.fnd-pillar-card {
    text-align: center;
}

.fnd-pillar-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(0, 184, 217, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fnd-pillar-icon svg {
    width: 32px;
    height: 32px;
    stroke: #19D3F3;
}

/* 4. Camino del Innovador */
.fnd-path-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    position: relative;
}

.fnd-path-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    position: relative;
}

.fnd-path-dot {
    width: 24px;
    height: 24px;
    background: #050A14;
    border: 3px solid #00B8D9;
    border-radius: 50%;
    margin-bottom: 15px;
    box-shadow: 0 0 10px rgba(0, 184, 217, 0.5);
    transition: all 0.3s ease;
}

.fnd-path-step.active .fnd-path-dot {
    background: #19D3F3;
    box-shadow: 0 0 20px #19D3F3;
    transform: scale(1.3);
}

.fnd-path-line {
    position: absolute;
    top: 10px;
    left: 0;
    height: 4px;
    width: 100%;
    background: rgba(0, 184, 217, 0.2);
    z-index: 1;
}

.fnd-path-line-fill {
    height: 100%;
    background: #19D3F3;
    width: 0%;
    box-shadow: 0 0 10px #19D3F3;
    transition: width 0.3s ease;
}

/* 5. Programas */
.fnd-programs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.fnd-program-card {
    display: flex;
    flex-direction: column;
}

.fnd-program-img {
    height: 200px;
    background: #0B1324;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 184, 217, 0.2);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fnd-program-img svg {
    width: 64px;
    height: 64px;
    stroke: rgba(25, 211, 243, 0.5);
}

/* 6. Impacto */
.fnd-impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.fnd-impact-number {
    font-size: 4rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    color: #19D3F3;
    text-shadow: 0 0 20px rgba(25, 211, 243, 0.4);
    margin-bottom: 10px;
}

.fnd-impact-label {
    font-size: 1.1rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 7. Ecosistema */
.fnd-eco-container {
    height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    background: radial-gradient(circle at center, rgba(0, 136, 163, 0.1) 0%, transparent 70%);
}

.fnd-eco-node {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(11, 19, 36, 0.8);
    border: 2px solid #00B8D9;
    box-shadow: 0 0 40px rgba(0, 136, 163, 0.3);
    z-index: 2;
    position: relative;
}

.fnd-eco-node h3 {
    font-size: 1.5rem;
    color: #19D3F3;
    margin-bottom: 5px;
}

.fnd-eco-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 1;
}

.fnd-eco-word {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 15px 0;
    letter-spacing: 2px;
}

/* 8. Visión */
.fnd-map-container {
    position: relative;
    height: 500px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600"><path d="M... (simplificado map SVG)..." fill="rgba(255,255,255,0.05)"/></svg>') no-repeat center center;
    background-size: contain;
    margin-top: 40px;
}

.fnd-map-point {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #19D3F3;
    border-radius: 50%;
    box-shadow: 0 0 15px #19D3F3;
}

.fnd-map-point::after {
    content: '';
    position: absolute;
    top: -6px; left: -6px;
    width: 24px; height: 24px;
    border: 1px solid #19D3F3;
    border-radius: 50%;
    animation: fndPing 2s infinite;
}

@keyframes fndPing {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

/* 9. CTA Final */
.fnd-cta-section {
    text-align: center;
    padding: 150px 5%;
    background: linear-gradient(180deg, transparent 0%, rgba(8, 17, 31, 0.7) 100%);
    position: relative;
    overflow: hidden;
}

.fnd-cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.fnd-cta-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Animaciones del SVG en Hero */
.fnd-hero-svg {
    animation: fndFloat 6s ease-in-out infinite;
}

.fnd-core-pulse {
    animation: fndPulse 3s ease-in-out infinite;
    transform-origin: 200px 200px;
}

.fnd-geo-rotator {
    transform-origin: 200px 200px;
    animation: fndRotate 45s linear infinite;
}

@keyframes fndFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes fndPulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

@keyframes fndRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 1024px) {
    .fnd-hero-content h1 { font-size: 3.5rem; }
    .fnd-pillars-grid { grid-template-columns: repeat(2, 1fr); }
    .fnd-programs-grid { grid-template-columns: 1fr; }
    .fnd-impact-grid { grid-template-columns: repeat(2, 1fr); gap: 50px;}
}

@media (max-width: 768px) {
    .fnd-hero-grid { grid-template-columns: 1fr; text-align: center; }
    .fnd-hero-content p { margin: 0 auto 40px; }
    .fnd-hero-buttons { justify-content: center; }
    .fnd-hero-visual { display: none; }
    
    .fnd-pillars-grid { grid-template-columns: 1fr; }
    .fnd-impact-grid { grid-template-columns: 1fr; }
    
    .fnd-eco-container { flex-direction: column; height: 800px; justify-content: space-around;}
    .fnd-eco-center { top: 50%; transform: translate(-50%, -50%); }
    
    .fnd-path-container { flex-direction: column; gap: 40px; align-items: flex-start; padding-left: 20px;}
    .fnd-path-line { width: 4px; height: 100%; top: 0; left: 30px; }
    .fnd-path-step { flex-direction: row; align-items: center; gap: 20px; }
    .fnd-path-dot { margin-bottom: 0; }
}
/* =========================================================================
   V2: ASYMMETRIC REDESIGN STYLES
========================================================================= */

/* Hero V2 */
.fnd-hero-v2 {
    position: relative;
    overflow: hidden;
    background: transparent;
}
.fnd-hero-bg {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 0.6;
    /* Mask to fade out the image towards the left and bottom */
    mask-image: radial-gradient(circle at 80% 30%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 80% 30%, black 20%, transparent 80%);
}
.fnd-hero-grid-v2 {
    display: block;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 5%;
}

/* History V2 */
.fnd-history-grid {
    display: grid;
    grid-template-columns: 35% 65%;
    gap: 50px;
    align-items: center;
}
.fnd-history-timeline {
    overflow-x: auto;
    padding-bottom: 20px;
}
.fnd-timeline-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    min-width: 700px;
}
.fnd-timeline-line {
    position: absolute;
    top: 30px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: rgba(0, 184, 217, 0.2);
    z-index: 1;
}
.fnd-timeline-node {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 120px;
}
.fnd-node-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(8, 17, 31, 0.6);
    border: 2px solid #00B8D9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    backdrop-filter: blur(5px);
}

/* Programs V2 */
.fnd-programs-grid-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.fnd-program-card-v2 {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.fnd-prog-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(0, 184, 217, 0.3);
}
.fnd-prog-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Path V2 */
.fnd-path-container-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 60px 0;
    position: relative;
}
.fnd-path-item {
    text-align: center;
    z-index: 2;
}
.fnd-path-icon-box {
    padding: 15px 25px;
    border: 1px solid rgba(0, 184, 217, 0.4);
    border-radius: 8px;
    background: rgba(8, 17, 31, 0.6);
    backdrop-filter: blur(5px);
    color: #A8B3C7;
    font-weight: 600;
}
.fnd-path-arrow {
    color: #00B8D9;
    font-size: 1.2rem;
}

/* Impact V2 */
.fnd-impact-grid-v2 {
    display: grid;
    grid-template-columns: 35% 65%;
    gap: 50px;
    align-items: center;
}
.fnd-impact-stats-v2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.fnd-impact-stat-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(8, 17, 31, 0.4);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 184, 217, 0.2);
    border-radius: 12px;
    padding: 25px;
}

/* Ecosystem V2 */
.fnd-eco-v2-grid {
    display: grid;
    grid-template-columns: 35% 65%;
    gap: 50px;
    align-items: center;
}
.fnd-eco-v2-visual {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.eco-orb {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}
.eco-solvix {
    background: radial-gradient(circle, rgba(0, 184, 217, 0.2) 0%, transparent 70%);
    border: 2px solid #00B8D9;
    box-shadow: 0 0 30px rgba(0, 184, 217, 0.3);
}
.eco-lab {
    background: radial-gradient(circle, rgba(25, 211, 243, 0.2) 0%, transparent 70%);
    border: 2px solid #19D3F3;
    box-shadow: 0 0 30px rgba(25, 211, 243, 0.3);
}
.eco-connections {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.eco-line {
    display: flex;
    align-items: center;
    position: relative;
    width: 200px;
}
.eco-line::before {
    content: '';
    position: absolute;
    left: -20px; right: -20px;
    height: 1px;
    background: linear-gradient(90deg, #00B8D9, #19D3F3);
    z-index: 1;
}
.eco-icon-mid {
    background: #050A14;
    border: 1px solid #00B8D9;
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 0.85rem;
    position: relative;
    z-index: 2;
    margin: 0 auto;
    color: #19D3F3;
}

/* CTA V2 */
.fnd-cta-v2 {
    position: relative;
    overflow: hidden;
    background: transparent !important;
}
.fnd-cta-bg {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 0.5;
    mask-image: linear-gradient(90deg, transparent 0%, black 50%, black 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 50%, black 100%);
}
.fnd-cta-v2 .fnd-cta-content {
    position: relative;
    z-index: 2;
}

/* Responsive V2 */
@media (max-width: 1024px) {
    .fnd-history-grid, .fnd-impact-grid-v2, .fnd-eco-v2-grid {
        grid-template-columns: 1fr;
    }
    .fnd-programs-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .fnd-programs-grid-v2 {
        grid-template-columns: 1fr;
    }
    .fnd-path-container-v2 {
        flex-direction: column;
        gap: 20px;
    }
    .fnd-path-arrow {
        transform: rotate(90deg);
    }
    .fnd-impact-stats-v2 {
        grid-template-columns: 1fr;
    }
    .fnd-eco-v2-visual {
        flex-direction: column;
        gap: 40px;
    }
    .eco-line::before {
        display: none;
    }
}
