:root {
    color-scheme: light;
    --violet-800: #3c2c63;
    --violet-600: #5e4b8a;
    --violet-500: #7c5dd4;
    --violet-200: #e7ddff;
    --neutral-50: #f7f5ff;
    --neutral-900: #1a1330;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--neutral-50);
    color: var(--neutral-900);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--violet-600);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.page {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3rem) 1.5rem 4rem;
}

.hero {
    text-align: center;
    margin-bottom: 2rem;
}

.hero a {
    display: block;
}

.hero img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: none;
    border: none;
}

.panel {
    background: white;
    border-radius: 1.25rem;
    padding: clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2vw, 1.5rem);
    margin-bottom: 1.25rem;
    box-shadow: 0 12px 30px rgba(60, 44, 99, 0.08);
    border: 1px solid rgba(92, 71, 119, 0.12);
}

.panel-title {
    font-size: clamp(1.3rem, 2vw, 1.5rem);
    margin: 0 0 0.5rem;
    color: var(--violet-800);
}

h1, h2, h3 {
    color: var(--violet-800);
}

h1 {
    font-size: clamp(1.6rem, 4vw, 2.25rem);
    margin: 1.5rem 0;
    text-align: center;
}

h2 {
    font-size: clamp(1.3rem, 2vw, 1.5rem);
    margin: 1rem 0;
}

/* Grid de carreras - copiado de carreras/css/styles.css */
.carreras-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
    justify-items: center;
}

.carrera-item {
    text-align: center;
    transition: transform 0.2s ease;
}

.carrera-item:hover {
    transform: translateY(-4px);
}

.carrera-item img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}

.carrera-item img:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Separadores */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(92, 71, 119, 0.3), transparent);
    margin: 2.5rem 0;
}

/* Lista de documentación */
ul {
    padding-left: 1.5rem;
}

ul li {
    margin-bottom: 0.75rem;
    color: var(--neutral-900);
}

ul li a {
    color: var(--violet-600);
    font-weight: 500;
}

ul li a:hover {
    text-decoration: underline;
}

/* Botones estilo MD3 */
.md3-button {
    background: var(--violet-600);
    color: #fff;
    border: none;
    border-radius: 0.9rem;
    padding: 0.95rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 30px rgba(92, 71, 119, 0.25);
    text-decoration: none;
}

.md3-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(92, 71, 119, 0.35);
    text-decoration: none;
}

.md3-button svg {
    width: 1.2rem;
    height: 1.2rem;
}

.main-button-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.main-button {
    min-width: 140px;
}

/* Textos responsivos */
.button-text-short {
    display: none;
}

@media (max-width: 1024px) {
    .carreras-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .page {
        padding: 1.25rem clamp(1rem, 4vw, 1.75rem) 3rem;
    }

    .main-button {
        min-width: 120px;
        padding: 0.75rem 1rem;
    }

    .button-text-long {
        display: none;
    }

    .button-text-short {
        display: inline;
    }

    .carreras-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
        margin-top: 1rem;
    }

    .carrera-item {
        width: 100%;
    }

    .carrera-item img {
        width: 100%;
        max-width: none;
        box-shadow: none;
        border-radius: 0;
    }

    .distribution-caption {
        display: none;
    }
}
