/* ========================================
   METODOLOGIA PAGE STYLES
   Following FStech Design System
   ======================================== */

/* Ontology Grid - 3 Pillars Section */
.ontology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Ontology Cards */
.ontology-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ontology-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tech-accent, #00f2fe), #4facfe);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.ontology-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 242, 254, 0.3);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(0, 242, 254, 0.1);
}

.ontology-card:hover::before {
    transform: scaleX(1);
}

/* Ontology Icon */
.ontology-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        rgba(0, 242, 254, 0.15),
        rgba(79, 172, 254, 0.1)
    );
    border-radius: 50%;
    border: 1px solid rgba(0, 242, 254, 0.2);
    transition: all 0.4s ease;
}

.ontology-icon i {
    font-size: 2rem;
    color: var(--tech-accent, #00f2fe);
    transition: transform 0.4s ease;
}

.ontology-card:hover .ontology-icon {
    background: linear-gradient(
        135deg,
        rgba(0, 242, 254, 0.25),
        rgba(79, 172, 254, 0.2)
    );
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.3);
}

.ontology-card:hover .ontology-icon i {
    transform: scale(1.1);
}

/* Ontology Card Typography */
.ontology-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.ontology-card > p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.ontology-card .tech-line {
    margin: 1.5rem 0;
    opacity: 0.5;
}

.ontology-question {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    line-height: 1.6;
}

.ontology-question em {
    color: var(--tech-accent, #00f2fe);
    font-style: normal;
    font-weight: 600;
}

/* Comparison Table Wrapper */
.comparison-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table th,
.comparison-table td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.comparison-table th {
    background: rgba(0, 242, 254, 0.08);
    color: var(--tech-accent, #00f2fe);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-table th:first-child {
    border-radius: 12px 0 0 0;
}

.comparison-table th:last-child {
    border-radius: 0 12px 0 0;
}

.comparison-table td {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}

.comparison-table td:first-child {
    color: rgba(255, 255, 255, 0.5);
    position: relative;
}

.comparison-table td:first-child::before {
    content: "✕";
    margin-right: 0.75rem;
    color: rgba(255, 100, 100, 0.6);
}

.comparison-table td:last-child::before {
    content: "✓";
    margin-right: 0.75rem;
    color: var(--tech-accent, #00f2fe);
}

.comparison-table tbody tr {
    transition: background 0.3s ease;
}

.comparison-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table strong {
    color: var(--tech-accent, #00f2fe);
    font-weight: 600;
}

/* Framework Diagram - Process Section */
.framework-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 3rem;
}

/* Diagram Step */
.diagram-step {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    width: 200px;
    transition: all 0.4s ease;
}

.diagram-step:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 242, 254, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Step Icon */
.step-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        rgba(0, 242, 254, 0.15),
        rgba(79, 172, 254, 0.1)
    );
    border-radius: 50%;
    border: 1px solid rgba(0, 242, 254, 0.2);
    transition: all 0.4s ease;
}

.step-icon i {
    font-size: 1.5rem;
    color: var(--tech-accent, #00f2fe);
}

.diagram-step:hover .step-icon {
    background: linear-gradient(
        135deg,
        rgba(0, 242, 254, 0.25),
        rgba(79, 172, 254, 0.2)
    );
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

.diagram-step h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.diagram-step p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

/* Diagram Arrow */
.diagram-arrow {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.5rem;
    padding: 0 0.5rem;
}

.diagram-arrow i {
    transition: color 0.3s ease;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .ontology-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .framework-diagram {
        gap: 1rem;
    }

    .diagram-step {
        width: 180px;
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 768px) {
    .ontology-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }

    .ontology-card {
        padding: 2rem 1.5rem;
    }

    .framework-diagram {
        flex-direction: column;
        gap: 0.5rem;
    }

    .diagram-step {
        width: 100%;
        max-width: 300px;
    }

    .diagram-arrow {
        transform: rotate(90deg);
        padding: 0.5rem 0;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .ontology-icon {
        width: 70px;
        height: 70px;
    }

    .ontology-icon i {
        font-size: 1.75rem;
    }

    .ontology-card h3 {
        font-size: 1.3rem;
    }

    .step-icon {
        width: 50px;
        height: 50px;
    }

    .step-icon i {
        font-size: 1.25rem;
    }

    .diagram-step h3 {
        font-size: 1rem;
    }

    .diagram-step p {
        font-size: 0.8rem;
    }
}
