html {
    font-size: 14px;
    text-align: justify;
}

body {
    background-color: #0A0A0B;
    color: #F9FAFB;
    font-family: 'Inter', sans-serif;
    margin: 0;
}

strong {
    font-weight: 500; /* Énfasis */
}

header {
    text-align: center;
    padding: 2rem 0;
}

    .header-logo {
    max-width: 100px; /* Asegura que no sea más grande que 100px */
    width: 50%; /* Permite que se ajuste a la mitad del ancho del contenedor en pantallas pequeñas */
    height: auto;
    margin-bottom: 1rem;
}
header h1 {
    font-size: 5rem;
    margin: 0;
    background: linear-gradient(135deg, #00F0FF 0%, #B76FFF 50%, #FF4FA8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800; /* Título Principal */
}

header h2 {
    font-size: 1.5rem;
    margin: 0;
    color: #D1D5DB;
    font-weight: 300; /* Texto Secundario */
}

main {
    padding: 0 10rem;
}

section {
    padding: 2rem 0;
}

section h1 {
    font-size: 2rem;
    color: #00F0FF;
    border-bottom: 2px solid #3A3A42;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 800; /* Título Principal */
}

#color_palette h2 {
    font-size: 1.8rem;
    color: #00F0FF;
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-weight: 700; /* Subtítulo */
}

section p {
    font-size: 1.2rem;
    color: #D1D5DB;
    line-height: 1.6;
    font-weight: 400; /* Texto General */
}

section ul {
    list-style: none;
    padding: 0;
    padding-left: 1rem;
}

section li {
    font-size: 1.2rem;
    color: #D1D5DB;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
    font-weight: 400; /* Texto General */
}

section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 0.5em;
    height: 0.5em;
    background-color: #00F0FF;
    border-radius: 2px;
}

section li strong {
    color: #00F0FF;
}

/* Color Palette Section */
#color_palette {
    padding-top: 2rem;
}

#color_palette h3 {
    font-size: 1.5rem;
    color: #F9FAFB;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-left: 3px solid #00F0FF;
    padding-left: 0.75rem;
    font-weight: 600; /* Encabezado Menor */
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.color-card {
    background-color: #1A1A1D;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #3A3A42;
    transition: transform 0.2s ease-in-out;
}

.color-card:hover {
    transform: translateY(-5px);
}

.color-swatch {
    height: 120px;
}

.color-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.color-info strong {
    font-size: 1.1rem;
    color: #F9FAFB;
    margin-bottom: 0.25rem;
}

.color-info span {
    font-size: 0.9rem;
    color: #9CA3AF;
    line-height: 1.4;
    font-family: 'Courier New', Courier, monospace;
}

/* Gradient Section */
.gradient-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.gradient-card {
    background-color: #1A1A1D;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #3A3A42;
}

.gradient-card h3 {
    font-size: 1.2rem;
    color: #F9FAFB;
    padding: 1rem 1rem 0.5rem 1rem;
    margin: 0;
    font-weight: 600; /* Encabezado Menor */
}

.gradient-swatch {
    height: 100px;
    border-top: 1px solid #3A3A42;
    border-bottom: 1px solid #3A3A42;
    margin-top: 0.5rem;
}

.gradient-info {
    padding: 1rem;
    background-color: #0A0A0B;
}

.gradient-info code {
    font-family: 'Courier New', Courier, monospace;
    color: #D1D5DB;
    font-size: 0.9rem;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.table-container {
    margin-top: 2rem;
    overflow-x: auto; /* Para tablas grandes en pantallas pequeñas */
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    background-color: #1A1A1D; /* Gris Oscuro */
    border: 1px solid #3A3A42; /* Gris Borde */
    border-radius: 8px;
    overflow: hidden; /* Para que los bordes redondeados se apliquen a la tabla */
}

table th,
table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #3A3A42; /* Gris Borde */
    color: #D1D5DB; /* Texto Secundario */
    font-size: 1.1rem;
}

table th {
    background-color: #2A2A2F; /* Gris Elevado */
    color: #F9FAFB; /* Texto Principal */
    font-weight: 600; /* Semi Bold */
    text-transform: uppercase;
    font-size: 1rem;
}

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

table tbody tr:hover {
    background-color: #2A2A2F; /* Gris Elevado */
}

/* --- Media Queries --- */

/* Para pantallas pequeñas (móviles) */
@media (max-width: 768px) {
    html {
        font-size: 12px;
    }

    main {
        padding: 0 1rem;
    }

    header h1 {
        font-size: 2.5rem;
    }

    header h2 {
        font-size: 1rem;
    }

    header {
        padding: 1rem 0;
    }

    section {
        padding: 1.5rem 0;
    }

    .color-info,
    .gradient-info {
        padding: 0.75rem;
    }

    section h1 {
        font-size: 1.5rem;
    }

    section p,
    section li {
        font-size: 1rem;
    }

    #color_palette h2 {
        font-size: 1.5rem;
    }

    #color_palette h3 {
        font-size: 1.2rem;
    }

    .color-swatch {
        height: 80px;
    }

    .gradient-swatch {
        height: 70px;
    }

    table th,
    table td {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
}

/* Para tabletas (entre 768px y 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    html {
        font-size: 13px;
    }

    main {
        padding: 0 2rem;
    }

    header h1 {
        font-size: 3.5rem;
    }

    header h2 {
        font-size: 1.2rem;
    }

    section h1 {
        font-size: 1.8rem;
    }

    section p,
    section li {
        font-size: 1.1rem;
    }

    #color_palette h2 {
        font-size: 1.6rem;
    }

    #color_palette h3 {
        font-size: 1.3rem;
    }

    .color-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    table th,
    table td {
        padding: 0.8rem;
        font-size: 1rem;
    }
}
