/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cosmic-black: #000000;
    --white-smoke: #EDEDED;
    --neon-purple: #A04EFF;
    --neon-purple-bright: #B74EFF;
    --neon-purple-light: #D17EFF;
    --neon-purple-text: #C966FF;
    --neon-purple-glow: rgba(160, 78, 255, 0.6);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--cosmic-black);
    background-image: 
        radial-gradient(ellipse at top, rgba(160, 78, 255, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at center, rgba(183, 78, 255, 0.02) 0%, transparent 70%);
    color: var(--white-smoke);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Canvas para estrellas */
#starsCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: transparent;
}

/* Contenedor principal - Simplificado */
.container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    gap: 6rem;
}

.hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--neon-purple-bright) 0%, var(--neon-purple-light) 50%, var(--neon-purple-text) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0;
    filter: drop-shadow(0 0 30px var(--neon-purple-glow));
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 400;
    color: rgba(237, 237, 237, 0.9);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.hero-description {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    font-weight: 300;
    color: rgba(237, 237, 237, 0.75);
    line-height: 1.7;
    max-width: 600px;
    margin-top: 1.5rem;
    letter-spacing: 0.01em;
}

.hero-description .highlight {
    color: var(--neon-purple-text);
    font-weight: 500;
    text-shadow: 0 0 10px var(--neon-purple-glow);
}

.context-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.tag {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(237, 237, 237, 0.75);
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tag:hover {
    color: var(--neon-purple-text);
    border-color: rgba(160, 78, 255, 0.3);
    background: rgba(160, 78, 255, 0.08);
    transform: translateY(-2px);
}

/* Botón CTA Principal */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem 4rem;
    background: #FFFFFF;
    color: var(--neon-purple);
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: 2px solid rgba(160, 78, 255, 0.5);
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.4s ease-in-out;
    box-shadow: 
        0 0 25px rgba(160, 78, 255, 0.4),
        0 0 50px rgba(160, 78, 255, 0.3),
        0 0 75px rgba(183, 78, 255, 0.2),
        0 6px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(160, 78, 255, 0.1), transparent);
    transition: left 0.6s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 0 35px rgba(160, 78, 255, 0.6),
        0 0 70px rgba(160, 78, 255, 0.5),
        0 0 100px rgba(183, 78, 255, 0.4),
        0 8px 25px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: var(--neon-purple);
    color: var(--neon-purple-bright);
}

.cta-button:active {
    transform: translateY(-1px) scale(1.02);
}

.cta-button svg {
    transition: transform 0.4s ease-in-out;
}

.cta-button:hover svg {
    transform: translateX(4px);
}

.cta-button span {
    position: relative;
    z-index: 1;
}

/* Sección de Disciplinas */
.disciplines-section {
    width: 100%;
    max-width: 1400px;
    padding: 0;
}

.disciplines-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    width: 100%;
    align-items: stretch;
}

/* Cajas de Disciplinas - Glassmorphism Premium */
.discipline-card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 1.5rem; /* rounded-2xl */
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 3.5rem 2.5rem;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease-in-out;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out;
    animation-fill-mode: both;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 420px;
}

.discipline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(216, 198, 142, 0.03) 0%, 
        transparent 50%, 
        rgba(160, 78, 255, 0.03) 100%);
    border-radius: inherit;
    opacity: 0.5;
    pointer-events: none;
}

.discipline-card:nth-child(1) {
    animation-delay: 0.2s;
}

.discipline-card:nth-child(2) {
    animation-delay: 0.4s;
}

.discipline-card:nth-child(3) {
    animation-delay: 0.6s;
}

.discipline-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 30px 60px -12px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(160, 78, 255, 0.1);
}

/* Símbolo Tradicional */
.discipline-symbol {
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 15px rgba(216, 198, 142, 0.4));
    transition: transform 0.4s ease-in-out;
    display: inline-block;
    flex-shrink: 0;
}

.discipline-card:hover .discipline-symbol {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 20px rgba(216, 198, 142, 0.6));
}

/* Título de Disciplina */
.discipline-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.875rem, 3.5vw, 2.5rem);
    font-weight: 600;
    color: var(--neon-purple-text);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
    text-shadow: 0 0 10px var(--neon-purple-glow);
    flex-shrink: 0;
}

/* Subtítulo */
.discipline-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(216, 198, 142, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    flex-shrink: 0;
}

/* Descripción */
.discipline-description {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: rgba(237, 237, 237, 0.8);
    line-height: 1.85;
    text-align: left;
    margin: 0;
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease-out;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(160, 78, 255, 0.03) 50%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 
        8px 8px 16px rgba(0, 0, 0, 0.5),
        -4px -4px 8px rgba(255, 255, 255, 0.05),
        inset 2px 2px 4px rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(160, 78, 255, 0.15),
        0 30px 60px -12px rgba(0, 0, 0, 0.6);
    position: relative;
    animation: slideUp 0.4s ease-out;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: rgba(237, 237, 237, 0.7);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white-smoke);
    transform: rotate(90deg);
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 600;
    background: linear-gradient(135deg, var(--neon-purple-bright) 0%, var(--neon-purple-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 0 15px var(--neon-purple-glow));
}

.modal-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: rgba(237, 237, 237, 0.8);
    margin-bottom: 2rem;
    font-weight: 300;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    width: 100%;
}

.form-input {
    width: 100%;
    padding: 1.125rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    color: var(--white-smoke);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.3s ease-in-out;
    backdrop-filter: blur(10px);
}

.form-input::placeholder {
    color: rgba(237, 237, 237, 0.5);
}

.form-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(160, 78, 255, 0.6);
    box-shadow: 
        0 0 20px rgba(160, 78, 255, 0.4),
        0 0 40px rgba(160, 78, 255, 0.2);
}

.form-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.125rem 2.5rem;
    background: #FFFFFF;
    color: var(--neon-purple);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: 2px solid rgba(160, 78, 255, 0.5);
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.4s ease-in-out;
    box-shadow: 
        0 0 20px rgba(160, 78, 255, 0.4),
        0 0 40px rgba(160, 78, 255, 0.3),
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

.form-button:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 
        0 0 30px rgba(160, 78, 255, 0.6),
        0 0 60px rgba(160, 78, 255, 0.4),
        0 6px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: var(--neon-purple);
    color: var(--neon-purple-bright);
}

.form-button:active:not(:disabled) {
    transform: translateY(0) scale(1);
}

.form-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    text-align: center;
    margin-top: 0.5rem;
}

.form-message.success {
    background: rgba(160, 78, 255, 0.15);
    border: 1px solid rgba(160, 78, 255, 0.3);
    color: var(--neon-purple-light);
}

.form-message.error {
    background: rgba(255, 0, 0, 0.15);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: rgba(255, 200, 200, 0.9);
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .disciplines-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 3rem 1.5rem;
        gap: 4rem;
    }

    .disciplines-section {
        width: 100%;
    }

    .disciplines-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 600px;
        margin: 0 auto;
    }

    .discipline-card {
        padding: 3rem 2.5rem;
        min-height: auto;
    }

    .modal-content {
        padding: 2.5rem 2rem;
    }

    .cta-button {
        padding: 1.25rem 3rem;
        width: 100%;
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.9375rem;
    }

    .context-tags {
        gap: 0.5rem;
    }

    .tag {
        font-size: 0.75rem;
        padding: 0.4rem 0.875rem;
    }

    .discipline-card {
        padding: 2.5rem 2rem;
        min-height: auto;
    }

    .discipline-symbol {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
    }

    .discipline-title {
        font-size: 1.75rem;
    }

    .discipline-subtitle {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }

    .discipline-description {
        font-size: 0.9375rem;
    }

    .modal-content {
        padding: 2rem 1.5rem;
    }
}
