/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    background: linear-gradient(135deg, #0c2340 0%, #1e3a8a 15%, #1e40af 30%, #2563eb 45%, #1e40af 60%, #1e3a8a 75%, #0c2340 90%, #0a1929 100%);
    color: #f8fafc;
    min-height: 100vh;
    line-height: 1.6;
}

/* Header y navegación */
header {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.menu {
    position: relative;
}

.menu a {
    color: #f1f5f9;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
}

.menu a:hover {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    border-color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.menu a:active {
    transform: translateY(0);
}

/* Contenido principal */
main {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
}

/* Hero section */
.hero {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 215, 0, 0.3);
    position: relative;
}

.sparkle {
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.hero h1 {
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.main-motto {
    margin-top: 1.5rem;
}

.latin {
    font-size: 1.8rem;
    color: #ffd700;
    font-style: italic;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.spanish {
    font-size: 1.4rem;
    color: #f1f5f9;
    font-style: italic;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

/* Secciones de contenido */
.content-section {
    margin: 3rem 0;
}

.content-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

/* Grid de significados */
.meaning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.meaning-card {
    background: rgba(0, 0, 0, 0.35);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    text-align: center;
}

.meaning-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    border-color: #ffd700;
    background: rgba(0, 0, 0, 0.45);
}

.meaning-card h3 {
    font-size: 1.5rem;
    color: #ffd700;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.meaning-card p {
    color: #f1f5f9;
    line-height: 1.8;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

/* Lemas complementarios */
.complementary-mottos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.motto-card {
    background: rgba(0, 0, 0, 0.4);
    padding: 2.5rem;
    border-radius: 12px;
    border: 2px solid rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
}

.motto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
    border-color: #ffd700;
    background: rgba(0, 0, 0, 0.5);
}

.motto-title {
    font-size: 1.8rem;
    color: #ffd700;
    font-style: italic;
    margin-bottom: 0.5rem;
    text-align: center;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.motto-subtitle {
    font-size: 1.2rem;
    color: #fbbf24;
    font-style: italic;
    text-align: center;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.motto-description {
    color: #f1f5f9;
    line-height: 1.8;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

/* Divisor */
.divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    margin: 3rem 0;
    border: none;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4);
    color: #cbd5e1;
    margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-list {
        flex-direction: column;
        align-items: stretch;
    }

    .menu a {
        text-align: center;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .latin {
        font-size: 1.4rem;
    }

    .spanish {
        font-size: 1.1rem;
    }

    .content-section h2 {
        font-size: 1.6rem;
    }

    .meaning-grid,
    .complementary-mottos {
        grid-template-columns: 1fr;
    }

    main {
        padding: 1rem;
    }
}