/* Variables para los Degradados */
:root {
    --gradient-bg: linear-gradient(135deg, #2a0845 0%, #680e6c 100%); /* Fondo Oscuro Morado/Violeta */
    --gradient-text: linear-gradient(90deg, #ffc72c, #ff6b6b); /* Texto Dorado/Rojo Cobre */
    --gradient-card: linear-gradient(145deg, #1f0535, #440c49); /* Tarjeta Oscura con borde sutil */
    --gradient-modal: linear-gradient(160deg, #1b0232 0%, #30084a 100%); /* Modal más profunda */
    --color-primary: #ffc72c; /* Dorado para botones/énfasis */
    --color-text-light: #e0e0e0;
}

/* Estilos Globales y Tipografía */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--color-text-light);
    background: var(--gradient-bg); /* APLICACIÓN DE DEGRADADO AL FONDO */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* DEGRADADO EN TEXTOS CLAVE */
.hero-title, .modal-title, .intro-section h2 {
    font-weight: 800;
    background: var(--gradient-text); /* APLICACIÓN DE DEGRADADO AL TEXTO */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent; /* Oculta el color de fondo del texto */
    padding: 0 10px; /* Para que el degradado se vea mejor */
    display: inline-block;
}

/* Hero Section */
.hero {
    padding: 80px 20px 40px;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

/* Contenido Principal */
.container {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.intro-section {
    text-align: center;
    margin-bottom: 50px;
}

.intro-section p {
    max-width: 800px;
    margin: 15px auto 0;
    font-size: 1.1rem;
}

/* Tarjetas (Cards) */
.card-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    background: var(--gradient-card); /* APLICACIÓN DE DEGRADADO A LA TARJETA */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.2); /* Sutil brillo al hacer hover */
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: #fff;
}

.btn {
    background: var(--gradient-text); /* Degradado al botón */
    border: none;
    color: #333;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: opacity 0.3s;
}

.btn:hover {
    opacity: 0.9;
}

/* Ventana Modal */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1000;
    max-width: 500px;
    width: 90%;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-content {
    background: var(--gradient-modal); /* APLICACIÓN DE DEGRADADO A LA VENTANA MODAL */
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-content ul {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.modal-content li {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-weight: 300;
}

.close-btn {
    float: right;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    color: var(--color-primary);
    line-height: 1;
}

/* Overlay para el fondo */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

#overlay.active {
    opacity: 1;
    visibility: visible;
}