/* Variables y reset */
:root {
    --primary-color: #2e7d32;
    --secondary-color: #388e3c;
    --accent-color: #8bc34a;
    --dark-green: #1b5e20;
    --light-green: #c8e6c9;
    --text-color: #333;
    --light-text: #f5f5f5;
    --bg-color: #f9f9f9;
    --card-bg: #ffffff;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--dark-green);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Header */
.main-header {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    height: 50px;
    width: auto;
}

.brand-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.anniversary-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.anniversary-logo {
    height: 40px;
    width: auto;
}

.anniversary-text {
    display: flex;
    flex-direction: column;
}

.anniversary-title {
    font-size: 0.8rem;
    font-weight: 400;
}

.school-name {
    font-size: 1rem;
    font-weight: 600;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    padding: 0;
}

.menu-line {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--light-text);
    border-radius: 3px;
    transition: var(--transition);
}

/* Navegación */
.main-nav {
    background-color: var(--secondary-color);
    padding: 10px 0;
}

.menu-list {
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.menu-link {
    color: var(--light-text);
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-link:hover, .menu-link.active {
    background-color: var(--accent-color);
    color: var(--text-color);
}

/* Tarjetas */
.card {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 30px;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.section-header i {
    font-size: 1.8rem;
}

.section-header h2 {
    margin: 0;
    font-size: 1.8rem;
}

.section-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--light-green);
    font-style: italic;
}
/* Estilos para la tabla */
.ishikawa-table {
    border-collapse: collapse;
    margin: 0 auto;
    width: 100%;
    max-width: 800px;
    table-layout: fixed;
}

.ishikawa-table td {
    padding: 10px;
    position: relative;
    height: 120px;
    vertical-align: middle;
}

/* Celdas vacías */
.empty-cell {
    border: none;
}

/* Cabeza del pez */
.fish-head-cell {
    width: 20%;
}

.fish-head {
    width: 100%;
    height: 80px;
    background: #4CAF50;
    border-radius: 50% 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.problem-text {
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 10px;
}

/* Línea central (espina) */
.spine-cell {
    width: 80%;
}

.fish-spine-horizontal {
    width: 100%;
    height: 3px;
    background: #2E7D32;
    margin: 0 auto;
}

/* Bloques de categoría */
.category-cell {
    width: 30%;
}

.category-box {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-box h3 {
    color: #2E7D32;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.category-box ul {
    margin: 0;
    padding-left: 20px;
}

.category-box li {
    margin-bottom: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .ishikawa-table td {
        height: 100px;
        padding: 5px;
    }
    
    .fish-head {
        height: 60px;
    }
    
    .category-box {
        padding: 10px;
    }
}

@media (max-width: 576px) {
    .ishikawa-table {
        width: 95%;
    }
    
    .fish-head-cell {
        width: 25%;
    }
    
    .spine-cell {
        width: 75%;
    }
    
    .category-cell {
        width: 35%;
    }
}

/* Footer */
.main-footer {
    background-color: var(--dark-green);
    color: var(--light-text);
    padding: 30px 0 15px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.team-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
}

.footer-logo {
    height: 60px;
    width: auto;
}

.social-container {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--accent-color);
    color: var(--text-color);
    transform: translateY(-3px);
}

.footer-actions {
    display: flex;
    gap: 15px;
}

.footer-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    background-color: var(--accent-color);
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-btn:hover {
    background-color: var(--light-text);
    transform: translateY(-2px);
}

.copyright {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 992px) {
    .menu-list {
        gap: 15px;
    }
    
    .ishikawa-container {
        height: 500px;
    }
    
    .category-box {
        width: 180px;
    }
}

@media (max-width: 768px) {
    .menu-btn {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 90px);
        transition: var(--transition);
        z-index: 90;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .menu-list {
        flex-direction: column;
        padding: 20px;
        align-items: flex-start;
        gap: 10px;
    }
    
    .menu-link {
        width: 100%;
        padding: 12px 15px;
    }
    
    .header-container, .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-brand {
        flex-direction: column;
    }
    
    .footer-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .footer-btn {
        justify-content: center;
    }
    
    .ishikawa-container {
        height: 600px;
    }
    
    .fish-head {
        left: 20px;
    }
    
    .fish-spine {
        left: 140px;
        width: calc(100% - 160px);
    }
    
    .category-line {
        left: 140px;
    }
    
    .category-box {
        width: 160px;
        padding: 10px;
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .ishikawa-container {
        height: 700px;
    }
    
    .category-box {
        width: 140px;
        font-size: 0.9rem;
    }
}