/* 
 * Plugin: Tecnicatura en Informática - EEST N°1
 * Estilos principales
 */

/* Variables CSS */
:root {
    --color-primary: #1e5631;
    --color-primary-light: #2d7a47;
    --color-secondary: #667eea;
    --color-accent: #764ba2;
    --color-bg-light: #f5f7fa;
    --color-text: #333;
    --color-text-light: #666;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.2);
    --border-radius: 15px;
    --transition: all 0.3s ease;
}

/* Reset y base */
.tecnicatura-wrapper {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
}

.tecnicatura-wrapper * {
    box-sizing: border-box;
}

.tecnicatura-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.tecnicatura-hero {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
    margin-bottom: 4rem;
}

.tecnicatura-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    animation: fadeInDown 1s ease;
}

.tecnicatura-hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: white;
    color: var(--color-secondary);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--color-secondary);
}

/* Sections */
.tecnicatura-section {
    padding: 4rem 0;
}

.tecnicatura-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--color-primary);
    position: relative;
    padding-bottom: 1rem;
    font-weight: 700;
}

.tecnicatura-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
    border-radius: 2px;
}

/* Profile Summary */
.profile-summary {
    background: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 3rem;
    border-left: 5px solid var(--color-secondary);
}

.profile-summary p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-light);
    text-align: justify;
}

.profile-summary strong {
    color: var(--color-primary);
    font-size: 1.2rem;
}

/* Profile Grid */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.profile-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
}

.profile-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.profile-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.profile-card h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.profile-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text-light);
}

.profile-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: bold;
}

/* Objectives Grid */
.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.objective-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.objective-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.objective-item .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.objective-item h4 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.objective-item p {
    color: var(--color-text-light);
}

/* Plan Image */
.plan-image {
    text-align: center;
    margin: 3rem 0;
}

.plan-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

/* Year Blocks */
.year-block {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border-left: 5px solid var(--color-secondary);
    transition: var(--transition);
}

.year-block.collapsed {
    opacity: 0.85;
}

.year-block.active {
    opacity: 1;
}

.year-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.year-header:hover {
    opacity: 0.8;
}

.toggle-icon {
    font-size: 1.5rem;
    color: var(--color-secondary);
    transition: transform 0.3s ease;
}

.year-block.active .toggle-icon {
    transform: rotate(0deg);
}

.year-block.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.year-block:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.year-block h3 {
    color: var(--color-primary);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.year-subtitle {
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
    font-size: 1.1rem;
}

.formation-axes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.axis-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--color-accent);
}

.axis-section h4 {
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.axis-section .icon-small {
    font-size: 1.5rem;
}

.subjects-list {
    display: grid;
    gap: 0.8rem;
}

.subject-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--color-secondary);
    transition: var(--transition);
}

.subject-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.subject-item strong {
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.subject-item p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.4;
    margin: 0.3rem 0 0 0;
}

.subject-item .hours {
    display: inline-block;
    background: var(--color-secondary);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

/* Priority Table */
.priority-table {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    overflow-x: auto;
}

.priority-table table {
    width: 100%;
    border-collapse: collapse;
}

.priority-table th,
.priority-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.priority-table th {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    font-weight: bold;
    position: sticky;
    top: 0;
}

.priority-table tr:hover {
    background: var(--color-bg-light);
}

.priority-table td strong {
    color: var(--color-primary);
}

/* QR Section */
.qr-section {
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.qr-section h2 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.qr-section > p {
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.qr-placeholder {
    width: 250px;
    height: 250px;
    margin: 2rem auto;
    padding: 20px;
    background: white;
    border: 3px solid var(--color-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.url-text {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.qr-note {
    color: #999;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .tecnicatura-hero h1 {
        font-size: 2rem;
    }
    
    .tecnicatura-hero p {
        font-size: 1rem;
    }
    
    .tecnicatura-section h2 {
        font-size: 1.8rem;
    }
    
    .formation-axes {
        grid-template-columns: 1fr;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .objectives-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-summary p {
        font-size: 1rem;
    }
    
    .priority-table {
        font-size: 0.9rem;
    }
    
    .priority-table th,
    .priority-table td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .tecnicatura-hero {
        padding: 3rem 0;
    }
    
    .tecnicatura-hero h1 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .profile-card,
    .year-block {
        padding: 1.5rem;
    }
}
