@import 'variables.css';
@import 'common.css';

/* ===== ¿CÓMO OPERAR FUNDAMENTALES? ===== */

.adn-fundamentals {
    background: transparent;
    position: relative;
    padding: var(--spacing-xxl) var(--spacing-md);
}

/* Glow sutil de fondo */
.adn-fundamentals::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 85%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 85% 15%, rgba(147, 51, 234, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.adn-f-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.adn-f-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 42px;
    font-weight: var(--font-weight-bold);
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,.25);
    margin-bottom: var(--spacing-md);
    text-align: center;
}


/* === GRID - Blog moderno en 3 columnas === */
.fund-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    row-gap: 75px;
}

@media (max-width: 1024px) {
    .fund-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px 40px;
        row-gap: 50px;
    }
}

@media (max-width: 768px) {
    .fund-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        row-gap: 40px;
    }
}

/* === CARD: Blog moderno === */
.fund-card {
    position: relative;
    overflow: hidden;
    padding: var(--spacing-lg);
    border-radius: 16px;
    isolation: isolate;
    transform-style: preserve-3d;
    height: 100%;
    min-height: 320px;

    /* Layout de blog moderno */
    display: flex;
    flex-direction: column;
    text-align: left;

    /* Fondo moderno */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

/* Efecto hover moderno */
.fund-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.1) 0%, 
        rgba(147, 51, 234, 0.05) 50%, 
        rgba(192, 132, 252, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.fund-card:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.fund-card:hover::before {
    opacity: 1;
}

/* Icono - Blog moderno */
.fund-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.fund-card:hover .fund-icon {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
    color: #7c3aed;
    transform: scale(1.05);
}

/* Títulos y textos - Blog moderno */
.fund-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
    font-weight: 600;
    color: white;
    line-height: 1.4;
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 2;
}

.fund-code {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85em;
    border: 1px solid rgba(139, 92, 246, 0.3);
    z-index: 3;
    display: flex;
    align-items: center;
    height: 48px;
}

.fund-subtitle {
    font-family: 'Poppins', sans-serif;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 2;
    flex-grow: 1;
}

/* Link Leer más - Blog moderno */
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: white;
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    margin-top: auto;
    align-self: flex-start;
}

.read-more::after {
    content: '→';
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.read-more:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateX(2px);
}

.read-more:hover::after {
    transform: translateX(2px);
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {

    .fund-card,
    .read-more,
    .fund-icon {
        transition: none;
    }

    .fund-card:hover {
        transform: none;
    }

    .read-more:hover {
        transform: none;
    }
}