/* ========================================
   MODERN STYLES - MANEASTROLOGI
   Priority CSS to override Bootstrap
   ======================================== */

/* Importar Google Fonts primero */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Montserrat:wght@700;800;900&display=swap');

/* ========================================
   VARIABLES CSS & DESIGN TOKENS
   ======================================== */
:root {
    /* Colores principales - Paleta esotérica moderna */
    --color-primary: #7b2cbf;
    --color-primary-dark: #5a1e99;
    --color-primary-light: #9d4edd;
    --color-secondary: #c77dff;
    --color-accent: #e0aaff;

    /* Gradientes místicos */
    --gradient-cosmic: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-aurora: linear-gradient(135deg, #7b2cbf 0%, #c77dff 50%, #e0aaff 100%);
    --gradient-twilight: linear-gradient(to right, #5a1e99, #7b2cbf, #9d4edd);
    --gradient-overlay: linear-gradient(180deg, rgba(123, 44, 191, 0.05) 0%, rgba(123, 44, 191, 0) 100%);

    /* Colores de texto */
    --color-text-primary: #1a1a2e;
    --color-text-secondary: #4a5568;
    --color-text-light: #718096;
    --color-text-white: #ffffff;

    /* Backgrounds */
    --bg-body: #f8f7ff;
    --bg-card: #ffffff;
    --bg-card-hover: #fefefe;
    --bg-dark: #1a1a2e;

    /* Sombras - Para dar profundidad */
    --shadow-sm: 0 2px 8px rgba(123, 44, 191, 0.08);
    --shadow-md: 0 4px 16px rgba(123, 44, 191, 0.12);
    --shadow-lg: 0 12px 32px rgba(123, 44, 191, 0.18);
    --shadow-xl: 0 20px 60px rgba(123, 44, 191, 0.25);
    --shadow-glow: 0 0 20px rgba(199, 125, 255, 0.4);

    /* Espaciado consistente */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Tipografía */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Montserrat', var(--font-primary);

    /* Tamaños de fuente */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transiciones */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 400ms ease-in-out;

    /* Header height */
    --header-height: 80px;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
    font-family: var(--font-primary) !important;
    background-color: var(--bg-body) !important;
    color: var(--color-text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ========================================
   HEADER MODERNO & NAVEGACIÓN
   ======================================== */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all var(--transition-base);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: var(--spacing-md);
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

.site-logo:hover {
    transform: translateY(-2px);
}

.logo-icon {
    font-size: 1.75rem;
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 800;
    background: var(--gradient-twilight);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    white-space: nowrap;
    line-height: 1;
}

/* Navegación principal */
.main-nav {
    display: flex;
    gap: 4px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-link {
    position: relative;
    padding: 8px 12px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    overflow: hidden;
    white-space: nowrap;
    line-height: 1;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: -1;
}

.nav-link:hover {
    color: var(--color-primary);
    transform: translateY(-1px);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link.active {
    color: var(--color-primary);
    font-weight: 600;
}

/* CTA Button en header */
.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--gradient-cosmic);
    color: var(--color-text-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1;
}

.header-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--color-text-white);
    text-decoration: none;
}

.header-cta i {
    transition: transform var(--transition-base);
    font-size: 0.85rem;
}

.header-cta:hover i {
    transform: rotate(90deg);
}

/* Menú móvil toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 3px;
    transition: all var(--transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

/* ========================================
   FOOTER MODERNO
   ======================================== */
.site-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 100%);
    color: var(--color-text-white);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h3 {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    margin-bottom: var(--spacing-md);
    background: var(--gradient-aurora);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--color-secondary);
    transform: translateX(5px);
}

.footer-links a i {
    font-size: var(--text-sm);
}

/* Social Icons */
.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--color-text-white);
    text-decoration: none;
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--gradient-cosmic);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* Profile Card en Footer */
.footer-profile {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 100%;
}

.footer-profile-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-secondary);
    flex-shrink: 0;
}

.footer-profile-info {
    flex: 1;
    min-width: 0;
    /* Permite que el texto se ajuste correctamente */
}

.footer-profile-info h4 {
    font-size: var(--text-lg);
    margin-bottom: 4px;
    color: var(--color-text-white);
}

.footer-profile-info p {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.5;
}

/* Creator Profile - Full Width Below Links */
.footer-creator {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.footer-profile-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--color-secondary);
}

.footer-profile-info {
    flex: 1;
}

.footer-profile-info h4 {
    color: var(--color-text-white);
    margin: 0 0 var(--spacing-xs) 0;
    font-size: var(--text-lg);
    font-family: var(--font-heading);
}

.footer-profile-info p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.6;
}

/* Footer Bottom */
.footer-bottom {
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-sm);
}

.footer-bottom-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: var(--color-secondary);
}

/* ========================================
   COMPONENTES REUTILIZABLES
   ======================================== */

/* Container */
.container-custom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Sección con espaciado */
.section {
    padding: var(--spacing-2xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
    background: var(--gradient-twilight);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Cards mejorados */
.card-modern {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    overflow: hidden;
    border: 1px solid rgba(123, 44, 191, 0.05);
}

.card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(123, 44, 191, 0.15);
}

.card-modern img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

.card-modern:hover img {
    transform: scale(1.05);
}

.card-body-modern {
    padding: var(--spacing-lg);
}

.card-title-modern {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

/* Botones modernos */
.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: var(--text-base);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    font-family: var(--font-primary);
}

.btn-primary {
    background: var(--gradient-cosmic);
    color: var(--color-text-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--color-text-white);
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-text-white);
    text-decoration: none;
}

/* Grid responsivo para signos */
.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

/* Hero Section */
.hero-section {
    padding: var(--spacing-2xl) 0;
    background: var(--gradient-overlay);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    background: var(--gradient-twilight);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: var(--text-xl);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
}

/* ========================================
   ANIMACIONES
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* Efecto de brillo sutil */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(to right,
            transparent 0%,
            rgba(199, 125, 255, 0.2) 50%,
            transparent 100%);
    background-size: 1000px 100%;
    animation: shimmer 3s infinite;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 992px) {
    :root {
        --header-height: 70px;
        --text-5xl: 2.5rem;
        --text-4xl: 2rem;
        --text-3xl: 1.75rem;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-lg);
        gap: var(--spacing-sm);
    }

    .main-nav.mobile-active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-cta {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-2xl: 3rem;
        --spacing-xl: 2rem;
    }

    .zodiac-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: var(--spacing-md);
    }

    .hero-title {
        font-size: var(--text-4xl);
    }

    .hero-description {
        font-size: var(--text-lg);
    }

    .section-title {
        font-size: var(--text-3xl);
    }

    .footer-profile-card {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-md);
    }

    .footer-profile-img {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
    }

    .logo-text {
        font-size: var(--text-xl);
    }

    .zodiac-grid {
        grid-template-columns: 1fr;
    }

    .btn-modern {
        width: 100%;
        padding: 12px 24px;
    }
}

/* ========================================
   UTILITIES
   ======================================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: var(--spacing-xs);
}

.mt-2 {
    margin-top: var(--spacing-sm);
}

.mt-3 {
    margin-top: var(--spacing-md);
}

.mt-4 {
    margin-top: var(--spacing-lg);
}

.mt-5 {
    margin-top: var(--spacing-xl);
}

.mb-1 {
    margin-bottom: var(--spacing-xs);
}

.mb-2 {
    margin-bottom: var(--spacing-sm);
}

.mb-3 {
    margin-bottom: var(--spacing-md);
}

.mb-4 {
    margin-bottom: var(--spacing-lg);
}

.mb-5 {
    margin-bottom: var(--spacing-xl);
}

.hidden {
    display: none;
}

.block {
    display: block;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}
/* ========================================
   BLOG CONTENT STYLES (Moved from post.php)
   ======================================== */
.blog-content {
    line-height: 1.8;
}

.blog-content h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.blog-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-content h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-family: var(--font-heading);
    color: var(--color-text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.blog-content p {
    margin-bottom: 1.25rem;
    color: var(--color-text-primary);
    font-size: 1.05rem;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

.blog-content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    overflow-x: auto;
    display: block;
}

.blog-content table thead {
    background: var(--gradient-cosmic);
    color: white;
}

.blog-content table th,
.blog-content table td {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(123, 44, 191, 0.2);
    text-align: left;
}

.blog-content table tbody tr:nth-child(even) {
    background: rgba(123, 44, 191, 0.05);
}

.blog-content table tbody tr:hover {
    background: rgba(123, 44, 191, 0.1);
}

.blog-content img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.blog-content img[style*="max-height"] {
    width: auto !important;
}

.blog-content img.img-fluid {
    max-width: 100%;
    height: auto;
}

.blog-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--color-text-secondary);
}

.blog-content code {
    background: rgba(123, 44, 191, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

.blog-content pre {
    background: var(--bg-dark);
    color: white;
    padding: 1rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-content pre code {
    background: none;
    padding: 0;
}

@media (max-width: 768px) {
    .blog-content table {
        font-size: 0.9rem;
    }

    .blog-content table th,
    .blog-content table td {
        padding: 0.5rem 0.75rem;
    }
}
