/* Hexagon link styles */
.hex-link {
    text-decoration: none !important;
    color: inherit;
    transition: background 0.2s, color 0.2s;
}

.hex-link:hover,
.hex-link:focus {
    background: #F47B53;
    color: #fff;
    text-decoration: none !important;
}

/* Ikastolak corporate color palette 
   - Main orange: #F47B53
   - Secondary orange: #F9A785
   - Black: #222
   - Light gray: #F5F5F5
   - Table border: #E6CFC2
   - Hexagon background: #FFFDEB
*/

body {
    background: #fff;
    font-family: 'Arial', sans-serif;
}

.header-title {
    color: #F47B53;
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.ikastolak-logo {
    height: 68px;
    margin-right: 1em;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
}

.stats-table th,
.stats-table td {
    border: 1px solid #E6CFC2;
    padding: 0.7em 1.2em;
    text-align: center;
    font-size: 1.1em;
}

.stats-table th {
    background: #fff;
    color: #222;
    font-weight: 600;
}

.stats-table td {
    background: #fff;
    color: #4B6B6B;
    font-weight: 600;
}

.stats-table .main-stat {
    color: #3A7C6B;
    font-size: 1.3em;
}

.sidebar {
    background: #F5F5F5;
    padding: 2em 0.5em;
    min-height: 100vh;
    border-right: 2px solid #E6CFC2;
}

.sidebar-btn {
    display: block;
    width: 90%;
    margin: 1em auto;
    padding: 1em 0;
    background: #fff;
    border: 2px solid #E6CFC2;
    border-radius: 6px;
    color: #222;
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.sidebar-btn:hover {
    background: #F47B53;
    color: #fff;
}

.hexagon-container {
    background: #FFFDEB;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60vh;
}


/* Navigation Cards - Diseño Simple y Elegante */
.hex-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0.5em;
    gap: 2em;
}

.hex-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2em;
}

.main-row {
    /* 3 elementos arriba */
}

.secondary-row {
    /* 2 elementos abajo */
}

.hex {
    width: 350px;
    height: 220px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 2px solid rgba(244, 123, 83, 0.1);
    overflow: hidden;
}

.hex::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(244, 123, 83, 0.1), transparent);
    transition: left 0.5s;
}

.hex-link {
    text-decoration: none !important;
    color: #2d3748;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2em;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.hex:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #F47B53;
    background: linear-gradient(135deg, #F47B53 0%, #e06847 100%);
}

.hex:hover::before {
    left: 100%;
}

.hex:hover .hex-link {
    color: #fff !important;
    text-decoration: none !important;
}

/* Home page navigation buttons */
.home-nav-btn {
    display: inline-block;
    width: 350px;
    height: 150px;
    background: white;
    border: 3px solid #EB5A38;
    border-radius: 12px;
    text-align: center;
    line-height: 150px;
    margin: 0.5em;
    font-size: 1.5em;
    font-weight: bold;
    color: #222;
    text-decoration: none;
    transition: all 0.3s ease;
}

.home-nav-btn:hover {
    background: #EB5A38;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(235, 90, 56, 0.3);
}

.home-nav-btn-wide {
    display: inline-block;
    width: 500px;
    height: 150px;
    background: white;
    border: 3px solid #EB5A38;
    border-radius: 12px;
    text-align: center;
    line-height: 150px;
    margin: 0.5em;
    font-size: 1.5em;
    font-weight: bold;
    color: #222;
    text-decoration: none;
    transition: all 0.3s ease;
}

.home-nav-btn-wide:hover {
    background: #EB5A38;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(235, 90, 56, 0.3);
}

/* Efecto de ondas al hacer click */
.hex:active {
    transform: translateY(-4px) scale(0.98);
}

/* Responsive design */
@media (max-width: 1400px) {
    .hex {
        width: 240px;
        height: 150px;
        font-size: 1.1em;
    }

    .hex-row {
        gap: 1.5em;
    }
}

@media (max-width: 900px) {
    .hex {
        width: 200px;
        height: 120px;
        font-size: 1em;
    }

    .hex-row {
        gap: 1em;
    }

    .hex-grid {
        gap: 1.5em;
    }

    .header-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 600px) {
    .hex-row {
        flex-direction: column;
        gap: 1em;
    }

    .hex {
        width: 280px;
        height: 100px;
    }
}

/* Button hover and active styles */
button {
    transition: background-color 0.2s, color 0.2s !important;
    cursor: pointer;
}

/* All buttons hover state - orange background */
button:hover:not(:disabled) {
    background-color: #F47B53 !important;
    color: #fff !important;
}

button:focus {
    outline: none;
}

/* Specific styles for atal buttons and other interactive buttons */
button[id*="atal-btn"]:hover,
button[id*="korr"]:hover {
    background-color: #F47B53 !important;
    color: #fff !important;
}

/* Active/selected button state */
button[n_clicks]:hover {
    background-color: #F47B53 !important;
    color: #fff !important;
}