:root {
    --nav-width: 220px;
    --nav-bg: blue;
    --nav-text: #f8e9e6;
    --nav-accent: #000000;
    --content-bg: #CEE1F2;
}

/* Reset & layout */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
    background: var(--content-bg);
    color: #0b1220;
    min-height: 100vh
}

/* Left vertical nav */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--nav-width);
    background: linear-gradient(180deg, var(--nav-bg), rgb(0, 0, 124) 80%);
    color: var(--nav-text);
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 2px 0 8px rgba(0, 210, 247, 0.35);
    z-index: 1000;
}

.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: 0 1rem 1rem 1rem;
    border-bottom: 1px solid rgba(243, 1, 1, 0.04)
}

.brand .logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-block
}

.brand .title {
    font-weight: 600;
    font-size: 1rem
}

nav ul {
    list-style: none;
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--nav-text);
    text-decoration: none;
    padding: .65rem 1rem;
    border-left: 4px solid transparent;
    transition: background .12s, border-color .12s, padding-left .12s;
    font-weight: 500;
}

nav a:hover,
nav a:focus {
    background: rgba(255, 255, 255, 0.03);
    outline: none;
    padding-left: 1.1rem;
}

nav a[aria-current="page"],
nav a.active {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.08), rgba(0, 114, 219, 0.205));
    border-left-color: var(--nav-accent);
    color: #eaf3ff;
}

/* Main content area */
.main {
    margin-left: var(--nav-width);
    padding: 2rem;
}

/* Responsive: collapse to top bar on small screens */
.mobile-toggle {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 56px;
    background: var(--nav-bg);
    color: var(--nav-text);
    align-items: center;
    padding: 0 .75rem;
    z-index: 1100;
}

.mobile-toggle button {
    background: transparent;
    border: 0;
    color: var(--nav-text);
    font-size: 1.1rem;
    padding: .5rem;
    cursor: pointer;
}

@media (max-width:720px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform .22s
    }

    .sidebar.open {
        transform: translateX(0)
    }

    .main {
        margin-left: 0;
        padding-top: 70px
    }

    .mobile-toggle {
        display: flex
    }
}

/* Small accessibility helpers */
a:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    border-radius: 6px
}

section h2{
    color: red;
    border-top: 2px solid blue;
}

section p{
    font-size: 17px;
    font-weight: 500;
    color: rgb(27, 27, 27);
}

.fundamentos2_1{
  display: flex;
  flex-wrap: wrap;  
  gap: 16px;     
  justify-content: center; 
  align-items: flex-start;
}
.fundamentos2_1 div{
    padding: 10px;
    border-radius: 10px; 
    max-width: 300px; 
    min-height: 300px; 
    text-align: center; 
    gap: 20px;
    font-size: 20px;
}
.fundamentos2_1 p{
    font-size: 60px;
    font-weight: 700; 
    margin-bottom: 20px;
}



table {
    width: 100%;
    border-collapse: collapse;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    margin: 1rem 0;
    text-align: center;
}

thead th {
    padding: 0.6rem;
    border-bottom: 2px solid #000000;
    text-align: center;
}

tbody td {
    padding: 0.6rem;
    vertical-align: top;

}

tbody th,
.characteristic {
    font-weight: 600;
    width: 30%;
}

@media (max-width: 640px) {

    table,thead,tbody,th,td,tr {
        display: block;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 1rem;
        border: 2px solid #000000;
        padding: .5rem;
        border-radius: 6px;
    }

    td {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 0;
        border: none;
    }

    td::before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: 0.5rem;
    }
}