/* Variables CSS para consistencia - Estilo Marinero Quiz */
:root {
    --primary-gradient: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    --secondary-gradient: linear-gradient(135deg, #64b5f6 0%, #42a5f5 100%);
    --ai-gradient: linear-gradient(135deg, #1e3c72 0%, #4a90e2 100%);
    --future-gradient: linear-gradient(135deg, #2a5298 0%, #5ba3f5 100%);
    --dark-gradient: linear-gradient(135deg, #0f1c3a 0%, #1e3c72 100%);
    --ocean-blue: #1e3c72;
    --ocean-light: #2a5298;
    --accent-blue: #64b5f6;
    --accent-light: #42a5f5;
    --soft-white: #e3f2fd;
    --text-light: #bbdefb;
    --shadow-light: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-medium: 0 10px 30px rgba(0,0,0,0.15);
    --shadow-heavy: 0 20px 40px rgba(0,0,0,0.2);
    --border-radius: 15px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Animaciones globales */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes wave {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(5px) rotate(1deg); }
    75% { transform: translateX(-5px) rotate(-1deg); }
}
/* Fondo marino con efectos - IDÉNTICO AL LEADERBOARD */
body {
background: linear-gradient(135deg, #0a0e1a 0%, #1e3c72 100%);
min-height: 100vh;
position: relative;
overflow-x: hidden;
padding-top: 0;
}
/* Efectos de fondo animados - IDÉNTICO AL LEADERBOARD */
body::before {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background:
radial-gradient(circle at 20% 80%, rgba(100, 181, 246, 0.05) 0%, transparent 50%),
radial-gradient(circle at 80% 20%, rgba(74, 144, 226, 0.05) 0%, transparent 50%),
radial-gradient(circle at 40% 40%, rgba(66, 165, 245, 0.03) 0%, transparent 50%);
animation: backgroundShift 20s ease-in-out infinite;
z-index: -1;
}
@keyframes backgroundShift {
0%, 100% {
transform: translate(0, 0) scale(1);
opacity: 0.6;
}
25% {
transform: translate(-15px, -15px) scale(1.1);
opacity: 0.8;
}
50% {
transform: translate(15px, 10px) scale(0.9);
opacity: 0.4;
}
75% {
transform: translate(-10px, 15px) scale(1.05);
opacity: 0.7;
}
}
/* Hero Section */
.hero-section {
    background: var(--ai-gradient);
    color: white;
    padding: 6rem 0 4rem 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-heavy);
    animation: fadeInUp 0.8s ease-out;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="anchor" width="30" height="30" patternUnits="userSpaceOnUse"><path d="M15 5 L15 25 M10 10 L20 10 M8 15 L22 15" stroke="white" stroke-width="1" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23anchor)"/></svg>');
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 3s infinite;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}
.hero-title {
    color: var(--soft-white);
    font-weight: 900;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.hero-title i {
    animation: float 3s ease-in-out infinite;
    margin-right: 0.5rem;
}
.gradient-text {
background: linear-gradient(45deg, var(--soft-white), var(--text-light));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.subtitle {
font-size: clamp(1.5rem, 4vw, 2.5rem);
opacity: 0.9;
color: var(--text-light);
}
.hero-description {
color: var(--text-light);
font-size: 1.2rem;
margin-bottom: 2rem;
text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}
.hero-stats {
display: flex;
gap: 2rem;
margin-top: 2rem;
flex-wrap: wrap;
}
.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="anchor" width="30" height="30" patternUnits="userSpaceOnUse"><path d="M15 5 L15 25 M10 10 L20 10 M8 15 L22 15" stroke="white" stroke-width="1" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23anchor)"/></svg>');
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

.stat-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-heavy);
    border-color: var(--accent-blue);
}

.stat-item:hover::after {
    left: 100%;
}

.stat-item * {
    position: relative;
    z-index: 2;
}
.stat-number {
font-size: 2.5rem;
font-weight: 700;
color: var(--soft-white);
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.stat-label {
font-size: 1rem;
opacity: 0.9;
color: var(--text-light);
text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
/* Floating Cards Animation */
.floating-cards {
position: relative;
height: 400px;
}
.floating-card {
position: absolute;
width: 100px;
height: 100px;
background: rgba(255,255,255,0.15);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 2.5rem;
color: white;
animation: float 6s ease-in-out infinite;
backdrop-filter: blur(10px);
border: 2px solid rgba(255,255,255,0.3);
box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.card-1 {
top: 20%;
left: 20%;
animation-delay: 0s;
}
.card-2 {
top: 60%;
right: 30%;
animation-delay: 2s;
}
.card-3 {
bottom: 20%;
left: 40%;
animation-delay: 4s;
}
/* Welcome Banner */
.welcome-banner {
margin-bottom: 3rem;
}
.welcome-banner .alert {
background: rgba(40, 167, 69, 0.9);
border: none;
border-radius: var(--border-radius);
color: white;
box-shadow: var(--shadow-medium);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
}
/* Library Section */
.library-section {
padding: 4rem 0;
}
.section-header {
text-align: center;
margin-bottom: 4rem;
}
.section-title {
    color: var(--soft-white);
    font-weight: 900;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.section-title i {
    animation: float 3s ease-in-out infinite;
    margin-right: 0.5rem;
}
.section-subtitle {
color: var(--text-light);
font-size: 1.2rem;
max-width: 700px;
margin: 0 auto;
text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
/* User Stats Card */
.user-stats-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-medium);
    margin-bottom: 4rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.user-stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="anchor" width="30" height="30" patternUnits="userSpaceOnUse"><path d="M15 5 L15 25 M10 10 L20 10 M8 15 L22 15" stroke="white" stroke-width="1" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23anchor)"/></svg>');
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

.user-stats-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.user-stats-card:hover::after {
    left: 100%;
}

.user-stats-card * {
    position: relative;
    z-index: 2;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--ai-gradient);
    border-radius: var(--border-radius);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    color: white;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="anchor" width="30" height="30" patternUnits="userSpaceOnUse"><path d="M15 5 L15 25 M10 10 L20 10 M8 15 L22 15" stroke="white" stroke-width="1" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23anchor)"/></svg>');
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-heavy);
    border-color: rgba(255, 255, 255, 0.28);
}

.stat-card:hover::after {
    left: 100%;
}

.stat-card * {
    position: relative;
    z-index: 2;
}
.stat-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-heavy);
}
.stat-number {
font-size: 2.5rem;
font-weight: 900;
color: var(--soft-white);
margin-bottom: 0.5rem;
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.stat-label {
font-size: 1rem;
color: var(--text-light);
font-weight: 600;
text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
/* Category Section */
.category-section {
    margin-bottom: 4rem;
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--ai-gradient);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    backdrop-filter: saturate(120%) blur(2px);
    -webkit-backdrop-filter: saturate(120%) blur(2px);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    color: white;
}

.category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="anchor" width="30" height="30" patternUnits="userSpaceOnUse"><path d="M15 5 L15 25 M10 10 L20 10 M8 15 L22 15" stroke="white" stroke-width="1" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23anchor)"/></svg>');
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

.category-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.category-header:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-heavy);
    border-color: rgba(255, 255, 255, 0.28);
}

.category-header:hover::after {
    left: 100%;
}

.category-header * {
    position: relative;
    z-index: 2;
}

.category-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 2rem;
    color: white;
    font-size: 2.5rem;
    box-shadow: var(--shadow-medium);
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}
.category-title {
font-size: 2rem;
font-weight: 800;
color: var(--soft-white);
margin-bottom: 0.5rem;
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.category-description {
color: var(--text-light);
margin: 0;
font-size: 1.1rem;
text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
/* Books Grid */
.books-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 2rem;
}
.book-card {
    background: var(--ai-gradient);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: saturate(120%) blur(2px);
    -webkit-backdrop-filter: saturate(120%) blur(2px);
    position: relative;
    overflow: hidden;
    color: white;
}

.book-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="anchor" width="30" height="30" patternUnits="userSpaceOnUse"><path d="M15 5 L15 25 M10 10 L20 10 M8 15 L22 15" stroke="white" stroke-width="1" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23anchor)"/></svg>');
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

.book-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.book-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-heavy);
    border-color: rgba(255, 255, 255, 0.28);
}

.book-card:hover::after {
    left: 100%;
}

.book-card * {
    position: relative;
    z-index: 2;
}
.book-header {
display: flex;
align-items: center;
margin-bottom: 2rem;
}
.book-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    color: white;
    font-size: 2rem;
    box-shadow: var(--shadow-medium);
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}
.book-title {
font-size: 1.4rem;
font-weight: 700;
color: var(--soft-white);
margin-bottom: 0.5rem;
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.book-stats {
display: flex;
gap: 1rem;
flex-wrap: wrap;
}
.stat {
font-size: 0.9rem;
color: var(--text-light);
display: flex;
align-items: center;
gap: 0.5rem;
text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
.book-actions {
display: flex;
flex-direction: column;
gap: 1rem;
}
/* Buttons */
.btn-quick-quiz {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-light));
    color: white;
    border: 2px solid rgba(100, 181, 246, 0.3);
    padding: 1.2rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    transition: var(--transition);
    box-shadow: var(--shadow-medium);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-quick-quiz::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-quick-quiz:hover::before {
    left: 100%;
}

.btn-quick-quiz:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-hover);
    color: white;
    border-color: var(--accent-blue);
    text-decoration: none;
}
.btn-full-quiz {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    border: 2px solid rgba(76, 175, 80, 0.3);
    padding: 1.2rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    transition: var(--transition);
    box-shadow: var(--shadow-medium);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-full-quiz::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-full-quiz:hover::before {
    left: 100%;
}

.btn-full-quiz:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-hover);
    color: white;
    border-color: #4caf50;
    text-decoration: none;
}
.btn span {
font-weight: 700;
display: block;
font-size: 1.1rem;
}
.btn small {
font-size: 0.9rem;
opacity: 0.9;
font-weight: 500;
}
/* General Quiz Section */
.general-quiz-section {
    margin-bottom: 4rem;
}

.general-quiz-card {
    background: var(--ai-gradient);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-medium);
    backdrop-filter: saturate(120%) blur(2px);
    -webkit-backdrop-filter: saturate(120%) blur(2px);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
}

.general-quiz-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="anchor" width="30" height="30" patternUnits="userSpaceOnUse"><path d="M15 5 L15 25 M10 10 L20 10 M8 15 L22 15" stroke="white" stroke-width="1" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23anchor)"/></svg>');
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

.general-quiz-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.general-quiz-card:hover::after {
    left: 100%;
}

.general-quiz-card * {
    position: relative;
    z-index: 2;
}
.quiz-header {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 2rem;
gap: 1.5rem;
}
.quiz-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    box-shadow: var(--shadow-medium);
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}
.quiz-info h3 {
font-size: 2.5rem;
font-weight: 800;
color: var(--soft-white);
margin-bottom: 0.5rem;
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.quiz-info p {
color: var(--text-light);
margin: 0;
font-size: 1.2rem;
text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
.quiz-actions {
display: flex;
gap: 2rem;
justify-content: center;
flex-wrap: wrap;
}
/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: var(--dark-gradient);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="anchor" width="30" height="30" patternUnits="userSpaceOnUse"><path d="M15 5 L15 25 M10 10 L20 10 M8 15 L22 15" stroke="white" stroke-width="1" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23anchor)"/></svg>');
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 3s infinite;
    z-index: 1;
}
.cta-card {
text-align: center;
position: relative;
z-index: 2;
}
.cta-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
    position: relative;
    z-index: 2;
}

.cta-title i {
    animation: float 3s ease-in-out infinite;
    margin-right: 0.5rem;
}
.cta-description {
font-size: 1.3rem;
margin-bottom: 4rem;
opacity: 0.9;
text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 2rem;
margin-bottom: 4rem;
}
.feature-item {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 2rem;
    background: var(--ai-gradient);
    border-radius: var(--border-radius);
    backdrop-filter: saturate(120%) blur(2px);
    -webkit-backdrop-filter: saturate(120%) blur(2px);
    border: 1.5px solid rgba(255,255,255,0.18);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    color: white;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="anchor" width="30" height="30" patternUnits="userSpaceOnUse"><path d="M15 5 L15 25 M10 10 L20 10 M8 15 L22 15" stroke="white" stroke-width="1" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23anchor)"/></svg>');
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

.feature-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.feature-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-heavy);
    border-color: rgba(255, 255, 255, 0.28);
}

.feature-item:hover::after {
    left: 100%;
}

.feature-item * {
    position: relative;
    z-index: 2;
}
.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    font-size: 2rem;
    box-shadow: var(--shadow-medium);
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}
.feature-content h5 {
font-weight: 700;
margin-bottom: 0.5rem;
color: var(--soft-white);
text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
.feature-content p {
margin: 0;
opacity: 0.8;
font-size: 1rem;
color: var(--text-light);
text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
.cta-actions {
display: flex;
gap: 2rem;
justify-content: center;
flex-wrap: wrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-light));
    color: white;
    font-weight: 700;
    border: 2px solid rgba(100, 181, 246, 0.3);
    padding: 1.2rem 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-hover);
    color: white;
    border-color: var(--accent-blue);
    text-decoration: none;
}
.btn-outline-light {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    font-weight: 700;
    padding: 1.2rem 2.5rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-outline-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.btn-outline-light:hover::before {
    left: 100%;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.2);
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
}
/* Scroll Animations */
.animate-on-scroll {
opacity: 0;
transform: translateY(30px);
transition: all 0.6s ease-out;
}
.animate-on-scroll.animated {
opacity: 1;
transform: translateY(0);
}
/* Responsive Design - IDÉNTICO A INDEX.HTML */
@media (max-width: 768px) {
.hero-stats {
flex-direction: column;
gap: 1rem;
}
.category-header {
flex-direction: column;
text-align: center;
}
.category-icon {
margin-right: 0;
margin-bottom: 1.5rem;
}
.books-grid {
grid-template-columns: 1fr;
}
.features-grid {
grid-template-columns: 1fr;
}
.cta-actions {
flex-direction: column;
}
.quiz-actions {
flex-direction: column;
}
.quiz-header {
flex-direction: column;
gap: 1rem;
}
.hero-title {
font-size: clamp(1.6rem, 2.8vw, 2.3rem);
}
}
/* Media queries específicas para orientación - IDÉNTICO A INDEX.HTML */
@media (max-width: 768px) and (orientation: landscape) {
.hero-section {
padding: 2rem 1.5rem;
}
.hero-title {
font-size: clamp(1.4rem, 2.5vw, 2rem);
}
.hero-description {
font-size: 1rem;
}
.stat-item {
padding: 1.5rem;
}
.stat-number {
font-size: clamp(1.8rem, 5vw, 3rem);
}
}
@media (max-width: 768px) and (orientation: portrait) {
.hero-section {
padding: 3rem 1rem;
}
.hero-title {
font-size: clamp(1.8rem, 3vw, 2.5rem);
}
.stat-item {
padding: 2rem;
}
}
@media (max-width: 480px) and (orientation: landscape) {
.hero-section {
padding: 1.5rem 1rem;
}
.hero-title {
font-size: clamp(1.2rem, 2.2vw, 1.8rem);
}
.hero-description {
font-size: 0.9rem;
}
.stat-item {
padding: 1rem;
}
.stat-number {
font-size: clamp(1.5rem, 4vw, 2.5rem);
}
}
@media (max-width: 480px) and (orientation: portrait) {
.hero-section {
padding: 2rem 1rem;
}
.hero-title {
font-size: clamp(1.4rem, 2.7vw, 2.2rem);
}
.stat-item {
padding: 1.5rem;
}
}
/* Scrollbar personalizada */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: #0a0e1a;
}
::-webkit-scrollbar-thumb {
background: linear-gradient(135deg, var(--accent-blue), var(--accent-light));
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: linear-gradient(135deg, var(--accent-light), var(--accent-blue));
}
