        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Crimson Text', serif;
            background: #f8f9fa;
            color: #495057;
            overflow-x: hidden;
            line-height: 1.8;
            min-height: 100vh;
            font-weight: 400;
        }

        /* Fondo de constelaciones sutiles en escala de grises */
        .ancient-background {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            background-image: 
                radial-gradient(circle at 20% 20%, rgba(108, 117, 125, 0.02) 0%, transparent 50%),
                radial-gradient(circle at 80% 30%, rgba(134, 142, 150, 0.015) 0%, transparent 50%),
                radial-gradient(circle at 40% 70%, rgba(108, 117, 125, 0.01) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(134, 142, 150, 0.02) 0%, transparent 50%);
            background-size: 600px 600px, 800px 800px, 700px 700px, 900px 900px;
            animation: celestialDrift 200s linear infinite;
        }

        @keyframes celestialDrift {
            0% { background-position: 0% 0%, 100% 0%, 0% 100%, 100% 100%; }
            25% { background-position: 100% 0%, 0% 100%, 100% 0%, 0% 0%; }
            50% { background-position: 100% 100%, 0% 0%, 100% 100%, 0% 100%; }
            75% { background-position: 0% 100%, 100% 0%, 0% 0%, 100% 0%; }
            100% { background-position: 0% 0%, 100% 0%, 0% 100%, 100% 100%; }
        }

        /* Estrellas en escala de grises */
        .constellation-map {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            overflow: hidden;
        }

        .ancient-star {
            position: absolute;
            width: 2px;
            height: 2px;
            background: #868e96;
            border-radius: 50%;
            animation: starTwinkle 5s ease-in-out infinite alternate;
        }

        .ancient-star.bright {
            width: 3px;
            height: 3px;
            background: #868e96;
            box-shadow: 0 0 4px rgba(134, 142, 150, 0.3);
        }

        .ancient-star.white {
            background: #ffffff;
            box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
        }

        @keyframes starTwinkle {
            0% { opacity: 0.4; transform: scale(1); }
            100% { opacity: 1; transform: scale(1.2); }
        }

        /* Layout principal */
        .parchment-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 40px 20px;
            position: relative;
            z-index: 1;
        }
        @media print {
            #cartaNatalContent {
                display: flex !important;
                flex-direction: column !important;
            }
        }

        /* Header minimalista en escala de grises */
        .ancient-header {
            text-align: center;
            margin-bottom: 60px;
            position: relative;
            background: rgba(248, 249, 250, 0.8);
            border: 1px solid rgba(222, 226, 230, 0.8);
            border-radius: 12px;
            padding: 50px 40px;
            box-shadow: 0 2px 15px rgba(108, 117, 125, 0.05);
        }

        .ancient-title {
            font-family: 'Cinzel', serif;
            font-size: 3.2rem;
            font-weight: 400;
            color: #495057;
            margin-bottom: 15px;
            letter-spacing: 6px;
            text-transform: uppercase;
        }

        .ancient-subtitle {
            font-family: 'Crimson Text', serif;
            font-size: 1.1rem;
            color: #868e96;
            font-weight: 400;
            letter-spacing: 2px;
            font-style: italic;
        }

        /* === GRÁFICO INTEGRADO === */
        .carta-natal-grafico-container {
            margin: 50px 0;
            background: rgba(255, 255, 255, 0.9);
            border: 2px solid rgba(222, 226, 230, 0.8);
            border-radius: 15px;
            padding: 40px;
            box-shadow: 0 8px 30px rgba(108, 117, 125, 0.1);
            position: relative;
            overflow: hidden;
        }

        .carta-natal-grafico-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, transparent 0%, rgba(248, 249, 250, 0.3) 50%, transparent 100%);
            pointer-events: none;
        }

        .grafico-title { 
            font-family: 'Cinzel', serif;
            font-size: 1.4rem;
            color: #495057;
            text-align: center;
            margin-bottom: 10px;
            letter-spacing: 2px;
        }

        .grafico-subtitle {
            font-size: 1rem;
            color: #868e96;
            text-align: center;
            margin-bottom: 10px;
            font-style: italic;
        }

        /* Contenedor del gráfico */
        .grafico-container {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 20px 0;
            min-height: 600px;
            flex-wrap: wrap;
            gap: 10px;
        }

        .carta-natal-svg {
            width: 400px;
            height: 400px;
            background: radial-gradient(circle, #ffffff, #f8f9fa, #e9ecef);
            border-radius: 50%;
            box-shadow: 0 15px 35px rgba(0,0,0,0.1);
            position: relative;
            z-index: 2;
        }

        /* Leyendas del gráfico */
        .leyenda-box {
            background: rgba(255,255,255,0.95);
            backdrop-filter: blur(10px);
            border-radius: 12px;
            padding: 15px;
            box-shadow: 0 8px 20px rgba(0,0,0,0.1);
            border: 2px solid #ddd;
            font-size: 0.9rem;
            max-width: 200px;
            position: relative;
            z-index: 3;
        }

        .leyenda-box h4 {
            margin: 0 0 10px 0;
            color: #2c3e50;
            font-size: 1rem;
            border-bottom: 2px solid #3498db;
            padding-bottom: 5px;
        }

        .leyenda-item {
            display: flex;
            align-items: center;
            margin: 8px 0;
            font-size: 0.85rem;
        }

        .simbolo {
            font-size: 1.2rem;
            margin-right: 8px;
            font-weight: bold;
        }

        /* Distribución responsive de leyendas */
        .leyendas-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-top: 30px;
        }

        /* Elementos SVG mejorados */
        .signo-text { font-size: 18px; font-weight: bold; fill: #2c3e50; }
        .casa-number { font-size: 14px; font-weight: bold; fill: #e74c3c; }
        .planeta-symbol { font-size: 16px; font-weight: bold; }
        .grado-text { font-size: 10px; fill: #34495e; font-weight: bold; }
        .aspecto-line { stroke-width: 2; opacity: 0.7; }
        
        .centro-tierra {
            fill: url(#gradientTierra);
            stroke: #34495e;
            stroke-width: 2;
        }

        /* === FIN GRÁFICO === */

        /* Información de nacimiento estilo pergamino */
        .birth-scroll {
            background: linear-gradient(135deg, rgba(173, 181, 189, 0.5), rgba(134, 142, 150, 0.4));
            border: 2px solid #adb5bd;
            border-radius: 15px;
            padding: 30px;
            margin: 0 auto 50px;
            max-width: 800px;
            position: relative;
            box-shadow: 
                inset 0 0 20px rgba(173, 181, 189, 0.1),
                0 10px 30px rgba(0, 0, 0, 0.2);
        }

        .birth-scroll::before {
            content: '';
            position: absolute;
            top: 10px;
            left: 10px;
            right: 10px;
            bottom: 10px;
            border: 1px solid rgba(206, 212, 218, 0.4);
            border-radius: 10px;
            pointer-events: none;
        }

        .birth-scroll h2 {
            font-family: 'Cinzel', serif;
            font-size: 1.4rem;
            color: #495057;
            margin-bottom: 20px;
            text-align: center;
            letter-spacing: 1px;
        }

        .birth-details {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            text-align: center;
        }

        .birth-detail {
            padding: 15px;
            border: 1px solid rgba(173, 181, 189, 0.4);
            border-radius: 8px;
            background: rgba(134, 142, 150, 0.3);
        }

        .birth-detail .label {
            font-size: 0.9rem;
            color: #6c757d;
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .birth-detail .value {
            font-size: 1.2rem;
            font-weight: 600;
            color: #495057;
            text-shadow: 0 0 10px rgba(73, 80, 87, 0.2);
        }

        /* Navegación estilo mapa en grises */
        .ancient-navigation {
            display: flex;
            justify-content: center;
            margin-bottom: 50px;
            flex-wrap: wrap;
            gap: 15px;
        }

        .nav-compass {
            padding: 15px 25px;
            background: linear-gradient(135deg, rgba(108, 117, 125, 0.8), rgba(73, 80, 87, 0.9));
            border: 2px solid #6c757d;
            border-radius: 30px;
            color: #ced4da;
            text-decoration: none;
            font-family: 'Cinzel', serif;
            font-weight: 500;
            font-size: 0.95rem;
            letter-spacing: 1px;
            transition: all 0.4s ease;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .nav-compass::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, 
                transparent, 
                rgba(248, 249, 250, 0.2), 
                transparent);
            transition: left 0.6s ease;
        }

        .nav-compass:hover {
            background: linear-gradient(135deg, rgba(108, 117, 125, 0.3), rgba(108, 117, 125, 0.9));
            border-color: #f8f9fa;
            color: #f8f9fa;
            transform: translateY(-3px);
            box-shadow: 
                0 8px 25px rgba(108, 117, 125, 0.3),
                inset 0 0 20px rgba(248, 249, 250, 0.1);
        }

        .nav-compass:hover::before {
            left: 100%;
        }

        .nav-compass.active {
            background: linear-gradient(135deg, #6c757d, #adb5bd);
            border-color: #f8f9fa;
            color: #212529;
            box-shadow: 
                0 0 20px rgba(108, 117, 125, 0.6),
                inset 0 0 15px rgba(248, 249, 250, 0.2);
        }

        /* Secciones minimalistas */
        .ancient-section {
            background: rgba(248, 249, 250, 0.7);
            border: 1px solid rgba(222, 226, 230, 0.6);
            border-radius: 10px;
            padding: 45px;
            margin-bottom: 35px;
            position: relative;
            box-shadow: 0 2px 15px rgba(108, 117, 125, 0.03);
        }

        .section-title {
            font-family: 'Cinzel', serif;
            font-size: 1.8rem;
            font-weight: 400;
            color: #495057;
            margin-bottom: 35px;
            text-align: center;
            letter-spacing: 2px;
            position: relative;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -12px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 1px;
            background: #adb5bd;
        }

        .section-title .icon {
            font-size: 1.6rem;
            margin-right: 12px;
            color: #868e96;
        }

        .section-text {
            font-size: 1rem;
            line-height: 1.9;
            color: #6c757d;
            text-align: justify;
            margin-bottom: 25px;
            font-weight: 400;
        }

        .section-subtitle {
            font-family: 'Cinzel', serif;
            font-size: 1.1rem;
            color: #6c757d;
            font-weight: 500;
            margin: 25px 0 15px;
            text-align: center;
            letter-spacing: 1px;
        }

        /* Cards de planetas en escala de grises */
        .planet-scroll {
            background: linear-gradient(135deg, rgba(173, 181, 189, 0.4), rgba(134, 142, 150, 0.5));
            border: 2px solid rgba(173, 181, 189, 0.6);
            border-radius: 15px;
            padding: 30px;
            margin-bottom: 25px;
            position: relative;
            transition: all 0.3s ease;
        }

        .planet-scroll:hover {
            border-color: #ced4da;
            box-shadow: 
                0 0 20px rgba(206, 212, 218, 0.3),
                inset 0 0 15px rgba(248, 249, 250, 0.1);
        }

        .planet-scroll h4 {
            font-family: 'Cinzel', serif;
            color: #495057;
            font-size: 1.2rem;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .planet-sign {
            background: linear-gradient(135deg, #adb5bd, #ced4da);
            color: #495057;
            padding: 6px 15px;
            border-radius: 20px;
            font-weight: 700;
            font-size: 0.9rem;
            text-shadow: none;
            box-shadow: 0 2px 8px rgba(173, 181, 189, 0.3);
        }

        /* Grillas */
        .ancient-grid-2 {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
        }

        .ancient-grid-3 {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 25px;
        }

        /* Listas minimalistas */
        .manuscript-list {
            list-style: none;
            padding: 0;
        }

        .manuscript-list li {
            background: rgba(255, 255, 255, 0.6);
            border-left: 3px solid #adb5bd;
            padding: 15px 20px;
            margin-bottom: 8px;
            border-radius: 0 6px 6px 0;
            transition: all 0.3s ease;
            position: relative;
            font-weight: 400;
        }

        .manuscript-list li:hover {
            background: rgba(248, 249, 250, 0.9);
            border-left-color: #868e96;
            transform: translateX(4px);
            box-shadow: 0 2px 8px rgba(134, 142, 150, 0.05);
        }

        /* Mensaje final elegante */
        .golden-scroll {
            background: rgba(248, 249, 250, 0.9);
            border: 1px solid rgba(222, 226, 230, 0.8);
            border-radius: 10px;
            padding: 40px;
            text-align: center;
            font-size: 1.1rem;
            line-height: 2;
            margin-top: 40px;
            position: relative;
            box-shadow: 0 4px 20px rgba(108, 117, 125, 0.04);
        }

        .golden-scroll h3 {
            font-family: 'Cinzel', serif;
            font-size: 1.4rem;
            color: #495057;
            margin-bottom: 25px;
            font-weight: 500;
            letter-spacing: 1px;
        }

        /* Botones minimalistas */
        .ancient-actions {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 50px;
            flex-wrap: wrap;
        }

        .ancient-btn {
            padding: 12px 28px;
            border: 1px solid #adb5bd;
            border-radius: 6px;
            font-family: 'Crimson Text', serif;
            font-size: 0.95rem;
            font-weight: 400;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            letter-spacing: 0.5px;
        }

        .ancient-btn-primary {
            background: #495057;
            color: #ffffff;
            border-color: #495057;
        }

        .ancient-btn-secondary {
            background: rgba(255, 255, 255, 0.8);
            color: #6c757d;
            border-color: #ced4da;
        }

        .ancient-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(108, 117, 125, 0.1);
        }

        .ancient-btn-primary:hover {
            background: #6c757d;
            border-color: #6c757d;
        }

        .ancient-btn-secondary:hover {
            background: rgba(248, 249, 250, 0.9);
            border-color: #adb5bd;
        }

        /* Estados de carga y error minimalistas */
        .ancient-loading {
            text-align: center;
            padding: 80px 20px;
        }

        .ancient-spinner {
            width: 50px;
            height: 50px;
            border: 2px solid rgba(222, 226, 230, 0.3);
            border-top: 2px solid #868e96;
            border-radius: 50%;
            animation: ancientSpin 1.5s linear infinite;
            margin: 0 auto 30px;
        }

        @keyframes ancientSpin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .ancient-error {
            background: rgba(248, 215, 218, 0.2);
            border: 1px solid rgba(220, 53, 69, 0.2);
            border-radius: 8px;
            padding: 40px;
            text-align: center;
            color: #721c24;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .parchment-container {
                padding: 20px 15px;
            }

            .ancient-title {
                font-size: 2.5rem;
            }

            .ancient-section {
                padding: 30px 25px;
            }

            .ancient-grid-2, .ancient-grid-3 {
                grid-template-columns: 1fr;
            }

            .birth-details {
                grid-template-columns: 1fr;
            }

            .ancient-navigation {
                flex-direction: column;
                align-items: center;
            }

            .ancient-actions {
                flex-direction: column;
                align-items: center;
            }

            .nav-compass, .ancient-btn {
                width: 100%;
                max-width: 300px;
                text-align: center;
                justify-content: center;
            }

            .carta-natal-svg {
                width: 350px;
                height: 350px;
            }

            .grafico-container {
                background: white !important;
                flex-direction: column;
                min-height: auto;

            }

            .leyenda-box {
                position: static;
                margin: 10px;
                max-width: none;
            }

            .leyendas-grid {
                grid-template-columns: 1fr;
            }
        }

        /* Animaciones de entrada */
        .fade-in {
            animation: ancientFadeIn 1s ease;
        }

        @keyframes ancientFadeIn {
            0% {
                opacity: 0;
                transform: translateY(30px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }
        /* CSS de impresión completo para carta-natal-resultados.html */
    /* CSS OPTIMIZADO PARA PDF PROFESIONAL - Colores Celestiales Suaves */
/* Reemplazar el CSS @media print existente por este */

@media print {

    /* ===== CONFIGURACIÓN GENERAL ESENCIAL - SERVIDOR COMPATIBLE ===== */
    * {
        -webkit-print-color-adjust: exact !important;  /* ✅ CHANGED: exact en lugar de economy */
        color-adjust: exact !important;                 /* ✅ CHANGED: exact en lugar de economy */
        print-color-adjust: exact !important;          /* ✅ ADDED: para mejor compatibilidad */
        box-sizing: border-box !important;
    }
    
    /* ✅ ADDED: Forzar carga de recursos del servidor */
    html, body {
        background: white !important;
        font-family: Arial, 'Times New Roman', serif !important; /* ✅ FALLBACK fonts */
    }
   
    /* ===== CONFIGURACIÓN DE PÁGINA ===== */
    @page {
        size: A4;
        margin: 16mm 12mm 20mm 12mm;
        
        @top-center {
            content: "🌟 CARTA NATAL - DREAMWISE 🌟";
            font-family: Arial, serif !important;  /* ✅ CHANGED: Arial en lugar de Cinzel */
            font-size: 11pt;
            font-weight: 600;
            color: #4a5c7a;
            letter-spacing: 2pt;
            border-bottom: 1pt solid #8e9cc7;
            padding-bottom: 5pt;
            margin-bottom: 10pt;
            background: white;
        }
        
        @bottom-left { 
            content: "DreamWise.pro"; 
            font-size: 9pt; 
            color: #4a5c7a; 
            font-family: Arial, serif !important;  /* ✅ ADDED */
        }
        @bottom-center { 
            content: "Tu Mapa Celestial Personalizado"; 
            font-size: 9pt; 
            color: #4a5c7a;
            font-family: Arial, serif !important;  /* ✅ ADDED */ 
        }
        @bottom-right { 
            content: "Página " counter(page) " de " counter(pages); 
            font-size: 9pt; 
            color: #4a5c7a;
            font-family: Arial, serif !important;  /* ✅ ADDED */
        }
    }
    
    
    
  #ancient-header{
    margin-top: 25 !important;
    padding-top: 25pt !important;
}
  #birth-scroll {
    margin-top: 35 !important;
    padding-top: 35pt !important;
  }

  #section-resumen {
    margin-top: 35 !important;
    padding-top: 35pt !important;
    page-break-after: always !important;
  }
 
  /* Forzar saltos donde necesitamos */
  #section-planetas {
    page-break-before: always !important;
  }
  #section-areas {
    page-break-before: always !important;
  }
  #section-consejos {
    page-break-before: always !important;
  }
  /* ===== CONFIGURACIÓN GENERAL ===== */
  
  
  /* ===== OCULTAR ELEMENTOS INNECESARIOS ===== */
  .ancient-background,
  .constellation-map,
  .ancient-navigation,
  .ancient-actions,
  .nav-compass,
  .ancient-btn {
    display: none !important;
  }
  /* ===== CONTAINER PRINCIPAL CON FLEXBOX PARA REORDENAMIENTO ===== */
  .parchment-container {
    display: flex !important;
    flex-direction: column !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  /* ===== NUEVO ORDEN OPTIMIZADO ===== */
  #ancient-header { order: 1 !important; }
  #birth-scroll { order: 2 !important; }
  #section-resumen { order: 3 !important; } /* Esencia astrológica - misma página 1 */
  #section-planetas { order: 4 !important; } /* Página 2: Luminarias completa */
  #section-elementos { order: 5 !important; } /* Página 3: Elementos + Planetas menores */
  #section-areas { order: 6 !important; } /* Página 4: Esferas manifestación */
  #section-consejos { order: 7 !important; } /* Página 5: Sabiduría (4 recuadros) */
  .golden-scroll {
    order: 8 !important;
    page-break-before: always!important;
    clear: both !important;  /* AGREGAR */
  }
  .carta-natal-grafico-container {
    background: rgba(255, 255, 255, 1) !important;  /* ✅ CHANGED: opacidad 1 */
    border: 2pt solid #8e9cc7 !important;           /* ✅ CHANGED: color visible */
    border-radius: 12pt !important;
    padding: 5pt !important;
    margin: 0 !important;
    page-break-inside: avoid !important;
    page-break-before: always !important;
    text-align: center !important;
    min-height: auto !important;
    box-shadow: 0 6pt 20pt rgba(142, 156, 199, 0.3) !important;  /* ✅ CHANGED: sombra visible */
    order: 9 !important;
    clear: both !important;
  }
#parrafo-carta-natal { order: 10 !important; }

  /* ===== SEPARADORES ORNAMENTALES ADICIONALES ===== */
  .ancient-section::after,
  .birth-scroll::after {
    content: "" !important;
    display: block !important;
    width: 100% !important;
    height: 18pt !important;
    margin: 18pt 0 !important;
    background:
      radial-gradient(circle at 25% 50%, rgba(139, 156, 199, 0.3) 2pt, transparent 3pt),
      radial-gradient(circle at 75% 50%, rgba(139, 156, 199, 0.596) 2pt, transparent 3pt),
      linear-gradient(90deg, transparent 0%, rgba(139, 156, 199, 0.603) 20%, rgba(107, 123, 167, 0.753) 50%, rgba(139, 156, 199, 0.2) 80%, transparent 100%) !important;
    background-size:
      50pt 8pt,
      50pt 8pt,
      100% 1pt !important;
    background-position:
      left center,
      right center,
      center center !important;
    background-repeat: repeat-x, repeat-x, no-repeat !important;
    page-break-after: avoid !important;
  }
  /* Separador especial entre coordenadas y esencia */
  .birth-scroll::after {
    background:
      linear-gradient(90deg, transparent 0%, rgba(107, 123, 167, 0.5) 30%, rgba(90, 107, 150, 0.7) 50%, rgba(107, 123, 167, 0.5) 70%, transparent 100%),  /* ✅ CHANGED: opacidades visibles */
      radial-gradient(ellipse at center, rgba(139, 156, 199, 0.3) 1pt, transparent 2pt) !important;
    background-size:
      100% 2pt,
      20pt 8pt !important;
    height: 15pt !important;
    margin: 20pt 0 !important;
  }
  /* ===== HEADER ELEGANTE Y LIMPIO ===== */
  .ancient-header {
    background: white !important;
    border: 2pt solid #8e9cc7 !important;
    border-radius: 15pt !important;
    padding: 20pt !important;
    margin-bottom: 15pt !important;
    text-align: center !important;
    page-break-after: avoid !important;
    page-break-inside: avoid !important;
    box-shadow: 0 4pt 15pt rgba(107, 123, 167, 0.1) !important;
  }
  .ancient-header::before {
    display: none !important;
  }
  .ancient-title {
    font-family: 'Book Antiqua', 'Palatino Linotype', 'Times New Roman', serif !important;
    font-size: 30pt !important;
    font-weight: 600 !important;
    color: #4a5c7a !important;
    letter-spacing: 4pt !important;
    margin-bottom: 10pt !important;
    text-shadow: 2pt 2pt 4pt rgba(74, 92, 122, 0.3) !important;
    position: relative !important;
    z-index: 1 !important;
  }
  .ancient-subtitle {
    font-size: 13pt !important;
    color: #6b7ba7 !important;
    font-style: italic !important;
    letter-spacing: 1pt !important;
    position: relative !important;
    z-index: 1 !important;
    font-family: Arial, serif !important;  /* ✅ ADDED */
  }
  /* ===== DATOS DE NACIMIENTO COMPACTOS ===== */
  .birth-scroll {
    background: white !important;
    border: 2pt solid #a8b4d4 !important;
    border-radius: 12pt !important;
    padding: 18pt !important;
    margin-bottom: 15pt !important;
    page-break-after: avoid !important;
    page-break-inside: avoid !important;
    box-shadow: 0 4pt 15pt rgba(168, 180, 212, 0.2) !important;
  }
  .birth-scroll h2 {
    font-family: Arial, 'Times New Roman', serif !important;  /* ✅ CHANGED */
    font-size: 15pt !important;
    color: #4a5c7a !important;
    text-align: center !important;
    margin-bottom: 18pt !important;
    letter-spacing: 1.5pt !important;
    border-bottom: 2pt solid #b5c2e0 !important;
    padding-bottom: 10pt !important;
    text-shadow: 1pt 1pt 2pt rgba(74, 92, 122, 0.2) !important;
  }
  .birth-details {
    display: flex !important;
    justify-content: space-around !important;
    flex-wrap: wrap !important;
    gap: 18pt !important;
  }
  .birth-detail {
    background: white !important;
    border: 1pt solid #c2cee8 !important;
    border-radius: 10pt !important;
    padding: 15pt !important;
    text-align: center !important;
    flex: 1 !important;
    min-width: 130pt !important;
    box-shadow: 0 3pt 10pt rgba(194, 206, 232, 0.2) !important;
  }
  .birth-detail .label {
    font-size: 11pt !important;
    color: #6b7ba7 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8pt !important;
    margin-bottom: 6pt !important;
    font-weight: 600 !important;
    font-family: Arial, serif !important;  /* ✅ ADDED */
  }
  .birth-detail .value {
    font-size: 11pt !important;
    color: #4a5c7a !important;
    font-weight: 600 !important;
    font-family: Arial, serif !important;  /* ✅ ADDED */
  }
  .grafico-title {
    font-family: Arial, 'Times New Roman', serif !important;  /* ✅ CHANGED */
    font-size: 12pt !important;
    color: #4a5c7a !important;
    margin-bottom: 5pt !important;
    letter-spacing: 1pt !important;
    text-shadow: 1pt 1pt 3pt rgba(74, 92, 122, 0.3) !important;
  }
  .carta-natal-svg {
    width: 400pt !important;
    height: 400pt !important;
    margin: 0 auto 20pt auto !important;
    display: block !important;
    border: 2pt solid #b5c2e0 !important;
    border-radius: 50% !important;
    box-shadow:
      0 6pt 20pt rgba(181, 194, 224, 0.3),      /* ✅ CHANGED: sombra visible */
      inset 0 2pt 8pt rgba(181, 194, 224, 0.2) !important;  /* ✅ CHANGED: sombra visible */
  }
  /* ===== LEYENDAS CELESTIALES ===== */
  .leyendas-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 13pt !important;
    margin-top: 220pt !important;
    background: grey !important;
  }
  .leyenda-box {
    background: white !important;
    border: 1pt solid #c2cee8 !important;
    border-radius: 10pt !important;
    padding: 10pt !important;
    font-size: 11pt !important;
    line-height: 1.5 !important;
    box-shadow: 0 2pt 8pt rgba(194, 206, 232, 0.15) !important;  /* ✅ CHANGED: sombra visible */
    font-family: Arial, serif !important;  /* ✅ ADDED */
  }
  .leyenda-box h4 {
    font-family: Arial, 'Times New Roman', serif !important;  /* ✅ CHANGED */
    font-size: 11pt !important;
    color: #4a5c7a !important;
    margin-bottom: 5pt !important;
    border-bottom: 1pt solid #b5c2e0 !important;
    padding-bottom: 2pt !important;
  }
  .leyenda-item {
    display: flex !important;
    align-items: center !important;
    margin: 5pt 0 !important;
    font-size: 12pt !important;
    font-family: Arial, serif !important;  /* ✅ ADDED */
  }
  .simbolo {
    font-size: 13pt !important;
    margin-right: 8pt !important;
    font-weight: bold !important;
    width: 20pt !important;
    color: #4a5c7a !important;  /* ✅ CHANGED: color visible en lugar de blanco */
  }
  /* ===== SECCIONES PRINCIPALES LIMPIAS ===== */
  .ancient-section {
    display: block !important;
    background: white !important;
    border: 1pt solid #b5c2e0 !important;
    border-radius: 12pt !important;
    padding: 20pt !important;
    margin-bottom: 15pt !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    box-shadow: 0 4pt 15pt rgba(181, 194, 224, 0.15) !important;
    min-height: 130pt !important;
  }
  /* Control específico para secciones largas */
  #section-planetas,
  #section-manifestacion {
    page-break-before: auto !important;
    margin-top: 20pt !important;
  }
  /* ===== TÍTULOS DE SECCIÓN CELESTIALES ===== */
  .section-title {
    font-family: Arial, 'Times New Roman', serif !important;  /* ✅ CHANGED */
    font-size: 15pt !important;
    font-weight: 600 !important;
    color: #4a5c7a !important;
    text-align: center !important;
    margin-bottom: 18pt !important;
    padding-bottom: 10pt !important;
    border-bottom: 3pt solid #8e9cc7 !important;
    letter-spacing: 1.5pt !important;
    text-shadow: 2pt 2pt 4pt rgba(74, 92, 122, 0.2) !important;
    page-break-after: avoid !important;
    background: linear-gradient(90deg, transparent 0%, rgba(240, 242, 247, 0.5) 25%, rgba(238, 241, 247, 0.7) 50%, rgba(240, 242, 247, 0.5) 75%, transparent 100%) !important;
    padding-top: 8pt !important;
    border-radius: 8pt !important;
  }
  .section-title .icon {
    font-size: 13pt !important;
    margin-right: 10pt !important;
    color: #6b7ba7 !important;
  }
  /* ===== SUBTÍTULOS ELEGANTES ===== */
  .section-subtitle {
    font-family: Arial, 'Times New Roman', serif !important;  /* ✅ CHANGED */
    font-size: 13pt !important;
    color: #5a6b89 !important;
    font-weight: 600 !important;
    margin: 18pt 0 12pt 0 !important;
    text-align: center !important;
    letter-spacing: 0.8pt !important;
    page-break-after: avoid !important;
  }
  /* ===== TEXTO PRINCIPAL MEJORADO ===== */
  .section-text {
    font-size: 11pt !important;
    color: #2c3e50 !important;
    line-height: 1.7 !important;
    margin-bottom: 15pt !important;
    text-align: justify !important;
    text-indent: 18pt !important;
    orphans: 3 !important;
    widows: 3 !important;
    font-family: Arial, serif !important;  /* ✅ ADDED */
  }
  /* ===== CARDS DE PLANETAS LIMPIAS ===== */
  .planet-scroll {
    background: white !important;
    border: 1pt solid #c2cee8 !important;
    border-left: 5pt solid #8e9cc7 !important;
    border-radius: 10pt !important;
    padding: 18pt !important;
    margin-bottom: 15pt !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    box-shadow: 0 3pt 12pt rgba(194, 206, 232, 0.2) !important;
    min-height: 90pt !important;
  }
  .planet-scroll h4 {
    font-family: Arial, 'Times New Roman', serif !important;  /* ✅ CHANGED */
    font-size: 12pt !important;
    color: #4a5c7a !important;
    margin-bottom: 12pt !important;
    display: flex !important;
    align-items: center !important;
    gap: 10pt !important;
    page-break-after: avoid !important;
  }
  .planet-sign {
    background: linear-gradient(135deg, #8e9cc7 0%, #a8b4d4 100%) !important;
    color: white !important;
    padding: 5pt 12pt !important;
    border-radius: 15pt !important;
    font-size: 11pt !important;
    font-weight: 600 !important;
    text-shadow: 1pt 1pt 2pt rgba(0,0,0,0.3) !important;
    box-shadow: 0 2pt 6pt rgba(142, 156, 199, 0.3) !important;
    font-family: Arial, serif !important;  /* ✅ ADDED */
  }
  /* ===== GRILLAS MEJORADAS ===== */
  .ancient-grid-2 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 15pt !important;
    margin: 15pt 0 !important;
    page-break-inside: avoid !important;
  }
  .ancient-grid-3 {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 12pt !important;
    margin: 15pt 0 !important;
    page-break-inside: avoid !important;
  }
  /* ===== LISTAS CELESTIALES ===== */
  .manuscript-list {
    margin: 15pt 0 !important;
    padding: 0 !important;
    list-style: none !important;
    page-break-inside: avoid !important;
  }
  .manuscript-list li {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 254, 0.9) 100%) !important;
    border-left: 4pt solid #a8b4d4 !important;
    padding: 10pt 15pt !important;
    margin-bottom: 8pt !important;
    border-radius: 0 8pt 8pt 0 !important;
    font-size: 11pt !important;
    line-height: 1.6 !important;
    box-shadow: 0 2pt 8pt rgba(168, 180, 212, 0.15) !important;  /* ✅ COMPLETED: añadida sombra visible */
    font-family: Arial, serif !important;  /* ✅ ADDED */
  }

  /* ✅ ADDED: Estilos adicionales para máxima compatibilidad */
  .ancient-element,
  .ancient-card,
  .wisdom-scroll {
    font-family: Arial, serif !important;
    background: white !important;
    border: 1pt solid #c2cee8 !important;
  }

  /* ✅ ADDED: Forzar visibilidad de todos los elementos */
  .ancient-section *,
  .birth-scroll *,
  .ancient-header * {
    visibility: visible !important;
    opacity: 1 !important;
  }
}

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Crimson Text', serif;
            background: #f8f9fa;
            color: #495057;
            overflow-x: hidden;
            line-height: 1.8;
            min-height: 100vh;
            font-weight: 400;
        }

        /* Fondo de constelaciones sutiles */
        .ancient-background {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            background-image: 
                radial-gradient(circle at 20% 20%, rgba(108, 117, 125, 0.02) 0%, transparent 50%),
                radial-gradient(circle at 80% 30%, rgba(134, 142, 150, 0.015) 0%, transparent 50%),
                radial-gradient(circle at 40% 70%, rgba(108, 117, 125, 0.01) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(134, 142, 150, 0.02) 0%, transparent 50%);
            background-size: 600px 600px, 800px 800px, 700px 700px, 900px 900px;
            animation: celestialDrift 200s linear infinite;
        }

        @keyframes celestialDrift {
            0% { background-position: 0% 0%, 100% 0%, 0% 100%, 100% 100%; }
            25% { background-position: 100% 0%, 0% 100%, 100% 0%, 0% 0%; }
            50% { background-position: 100% 100%, 0% 0%, 100% 100%, 0% 100%; }
            75% { background-position: 0% 100%, 100% 0%, 0% 0%, 100% 0%; }
            100% { background-position: 0% 0%, 100% 0%, 0% 100%, 100% 100%; }
        }

        /* Estrellas en escala de grises */
        .constellation-map {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            overflow: hidden;
        }

        .ancient-star {
            position: absolute;
            width: 2px;
            height: 2px;
            background: #868e96;
            border-radius: 50%;
            animation: starTwinkle 5s ease-in-out infinite alternate;
        }

        .ancient-star.bright {
            width: 3px;
            height: 3px;
            background: #868e96;
            box-shadow: 0 0 4px rgba(134, 142, 150, 0.3);
        }

        @keyframes starTwinkle {
            0% { opacity: 0.4; transform: scale(1); }
            100% { opacity: 1; transform: scale(1.2); }
        }

        /* Layout principal */
        .parchment-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 40px 20px;
            position: relative;
            z-index: 1;
        }

        /* Header mejorado con badges profesionales */
        .ancient-header {
            text-align: center;
            margin-bottom: 60px;
            position: relative;
            background: rgba(248, 249, 250, 0.9);
            border: 2px solid rgba(222, 226, 230, 0.8);
            border-radius: 15px;
            padding: 50px 40px;
            box-shadow: 0 8px 30px rgba(108, 117, 125, 0.1);
        }

        .ancient-title {
            font-family: 'Cinzel', serif;
            font-size: 3.5rem;
            font-weight: 600;
            color: #495057;
            margin-bottom: 15px;
            letter-spacing: 6px;
            text-transform: uppercase;
            text-shadow: 2px 2px 4px rgba(73, 80, 87, 0.1);
        }

        .ancient-subtitle {
            font-family: 'Crimson Text', serif;
            font-size: 1.2rem;
            color: #868e96;
            font-weight: 400;
            letter-spacing: 2px;
            font-style: italic;
            margin-bottom: 25px;
        }

        /* 🏆 NUEVO: Badges profesionales TOP 1 MUNDIAL */
        .professional-badges {
            display: flex;
            justify-content: center;
            gap: 15px;
            flex-wrap: wrap;
            margin-top: 20px;
        }

        .world-class-badge {
            background: linear-gradient(135deg, #f39c12, #e67e22);
            color: white;
            padding: 8px 16px;
            border-radius: 25px;
            font-size: 0.85rem;
            font-weight: 600;
            box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            animation: pulseGlow 3s ease-in-out infinite;
        }

        .precision-badge {
            background: linear-gradient(135deg, #27ae60, #2ecc71);
            color: white;
            padding: 8px 16px;
            border-radius: 25px;
            font-size: 0.85rem;
            font-weight: 600;
            box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
        }

        .reliability-badge {
            background: linear-gradient(135deg, #3498db, #5dade2);
            color: white;
            padding: 8px 16px;
            border-radius: 25px;
            font-size: 0.85rem;
            font-weight: 600;
            box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
        }

        @keyframes pulseGlow {
            0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3); }
            50% { transform: scale(1.05); box-shadow: 0 6px 25px rgba(243, 156, 18, 0.5); }
        }

        /* Información de nacimiento mejorada */
        .birth-scroll {
            background: linear-gradient(135deg, rgba(173, 181, 189, 0.5), rgba(134, 142, 150, 0.4));
            border: 2px solid #adb5bd;
            border-radius: 15px;
            padding: 35px;
            margin: 0 auto 50px;
            max-width: 900px;
            position: relative;
            box-shadow: 
                inset 0 0 20px rgba(173, 181, 189, 0.1),
                0 10px 30px rgba(0, 0, 0, 0.2);
        }

        .birth-scroll h2 {
            font-family: 'Cinzel', serif;
            font-size: 1.6rem;
            color: #495057;
            margin-bottom: 25px;
            text-align: center;
            letter-spacing: 1px;
        }

        .birth-details {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 25px;
            text-align: center;
        }

        .birth-detail {
            padding: 20px;
            border: 1px solid rgba(173, 181, 189, 0.4);
            border-radius: 12px;
            background: rgba(248, 249, 250, 0.8);
            box-shadow: 0 4px 15px rgba(173, 181, 189, 0.2);
        }

        .birth-detail .label {
            font-size: 0.95rem;
            color: #6c757d;
            margin-bottom: 10px;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: 600;
        }

        .birth-detail .value {
            font-size: 1.3rem;
            font-weight: 700;
            color: #495057;
            text-shadow: 0 0 10px rgba(73, 80, 87, 0.1);
        }

        /* === GRÁFICO MEJORADO === */
        .carta-natal-grafico-container {
            margin: 50px 0;
            background: rgba(255, 255, 255, 0.95);
            border: 2px solid rgba(222, 226, 230, 0.8);
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 12px 40px rgba(108, 117, 125, 0.15);
            position: relative;
            overflow: hidden;
        }

        .grafico-title { 
            font-family: 'Cinzel', serif;
            font-size: 1.6rem;
            color: #495057;
            text-align: center;
            margin-bottom: 15px;
            letter-spacing: 2px;
            text-shadow: 1px 1px 3px rgba(73, 80, 87, 0.1);
        }

        .grafico-container {
            display: flex;
            justify-content: center;
            margin: 30px 0;
        }

        .carta-natal-svg {
            width: 450px;
            height: 450px;
            background: radial-gradient(circle, #ffffff, #f8f9fa, #e9ecef);
            border-radius: 50%;
            box-shadow: 0 20px 40px rgba(0,0,0,0.15);
            position: relative;
            z-index: 2;
        }

        /* Leyendas del gráfico */
        .leyendas-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-top: 30px;
        }

        .leyenda-box {
            background: rgba(248, 249, 250, 0.8);
            border: 1px solid rgba(222, 226, 230, 0.6);
            border-radius: 10px;
            padding: 20px;
            text-align: center;
        }

        .leyenda-box h4 {
            font-family: 'Cinzel', serif;
            color: #495057;
            font-size: 1rem;
            margin-bottom: 15px;
            font-weight: 600;
        }

        .leyenda-item {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin: 8px 0;
            font-size: 0.9rem;
            color: #6c757d;
        }

        .simbolo {
            font-weight: bold;
            font-size: 1.1rem;
        }

        /* Navegación mejorada */
        .ancient-navigation {
            display: flex;
            justify-content: center;
            margin-bottom: 50px;
            flex-wrap: wrap;
            gap: 12px;
        }

        .nav-compass {
            padding: 12px 20px;
            background: linear-gradient(135deg, rgba(108, 117, 125, 0.8), rgba(73, 80, 87, 0.9));
            border: 2px solid #6c757d;
            border-radius: 25px;
            color: #ced4da;
            text-decoration: none;
            font-family: 'Cinzel', serif;
            font-weight: 500;
            font-size: 0.9rem;
            letter-spacing: 1px;
            transition: all 0.4s ease;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .nav-compass:hover {
            background: linear-gradient(135deg, rgba(108, 117, 125, 0.3), rgba(108, 117, 125, 0.9));
            border-color: #f8f9fa;
            color: #f8f9fa;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
        }

        .nav-compass.active {
            background: linear-gradient(135deg, #6c757d, #adb5bd);
            border-color: #f8f9fa;
            color: #212529;
            box-shadow: 0 0 20px rgba(108, 117, 125, 0.6);
        }

        /* Secciones minimalistas mejoradas */
        .ancient-section {
            background: rgba(248, 249, 250, 0.8);
            border: 1px solid rgba(222, 226, 230, 0.6);
            border-radius: 15px;
            padding: 50px;
            margin-bottom: 40px;
            position: relative;
            box-shadow: 0 6px 25px rgba(108, 117, 125, 0.08);
        }

        .section-title {
            font-family: 'Cinzel', serif;
            font-size: 2rem;
            font-weight: 500;
            color: #495057;
            margin-bottom: 40px;
            text-align: center;
            letter-spacing: 2px;
            position: relative;
            text-shadow: 1px 1px 3px rgba(73, 80, 87, 0.1);
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 2px;
            background: linear-gradient(90deg, transparent, #adb5bd, transparent);
        }

        .section-title .icon {
            font-size: 1.8rem;
            margin-right: 15px;
            color: #868e96;
        }

        .section-text {
            font-size: 1.05rem;
            line-height: 1.9;
            color: #6c757d;
            text-align: justify;
            margin-bottom: 25px;
            font-weight: 400;
        }

        .section-subtitle {
            font-family: 'Cinzel', serif;
            font-size: 1.2rem;
            color: #6c757d;
            font-weight: 600;
            margin: 30px 0 20px;
            text-align: center;
            letter-spacing: 1px;
        }

        /* 🌟 NUEVO: Cards de planetas profesionales */
        .planet-scroll {
            background: linear-gradient(135deg, rgba(248, 249, 250, 0.9), rgba(240, 242, 245, 0.8));
            border: 2px solid rgba(173, 181, 189, 0.6);
            border-left: 5px solid #868e96;
            border-radius: 15px;
            padding: 35px;
            margin-bottom: 30px;
            position: relative;
            transition: all 0.4s ease;
            box-shadow: 0 4px 20px rgba(173, 181, 189, 0.15);
        }

        .planet-scroll:hover {
            border-color: #ced4da;
            border-left-color: #495057;
            transform: translateY(-3px);
            box-shadow: 0 8px 30px rgba(206, 212, 218, 0.25);
        }

        .planet-scroll h4 {
            font-family: 'Cinzel', serif;
            color: #495057;
            font-size: 1.3rem;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 15px;
            text-shadow: 1px 1px 2px rgba(73, 80, 87, 0.1);
        }

        .planet-sign {
            background: linear-gradient(135deg, #adb5bd, #ced4da);
            color: #495057;
            padding: 8px 18px;
            border-radius: 25px;
            font-weight: 700;
            font-size: 0.95rem;
            text-shadow: none;
            box-shadow: 0 3px 12px rgba(173, 181, 189, 0.3);
            border: 1px solid rgba(206, 212, 218, 0.5);
        }

        /* 🌟 NUEVO: Sección de planetas expandida */
        .planets-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
            gap: 25px;
            margin: 30px 0;
        }

        .planet-category {
            background: rgba(255, 255, 255, 0.7);
            border: 1px solid rgba(222, 226, 230, 0.8);
            border-radius: 12px;
            padding: 25px;
            box-shadow: 0 4px 15px rgba(108, 117, 125, 0.05);
        }

        .planet-category h3 {
            font-family: 'Cinzel', serif;
            font-size: 1.3rem;
            color: #495057;
            margin-bottom: 20px;
            text-align: center;
            letter-spacing: 1px;
            border-bottom: 2px solid rgba(173, 181, 189, 0.3);
            padding-bottom: 10px;
        }

        /* 🔥 NUEVO: Análisis elemental avanzado */
        .elemental-analysis {
            background: rgba(255, 255, 255, 0.8);
            border: 2px solid rgba(222, 226, 230, 0.8);
            border-radius: 15px;
            padding: 30px;
            margin: 30px 0;
            box-shadow: 0 6px 20px rgba(108, 117, 125, 0.1);
        }

        .element-bar-container {
            margin: 15px 0;
        }

        .element-label {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
            font-weight: 600;
            color: #495057;
        }

        .element-bar {
            height: 12px;
            background: rgba(222, 226, 230, 0.3);
            border-radius: 6px;
            overflow: hidden;
            position: relative;
        }

        .element-fill {
            height: 100%;
            border-radius: 6px;
            transition: width 0.8s ease;
            position: relative;
        }

        .element-fill.fuego { background: linear-gradient(90deg, #e74c3c, #c0392b); }
        .element-fill.tierra { background: linear-gradient(90deg, #27ae60, #229954); }
        .element-fill.aire { background: linear-gradient(90deg, #3498db, #2980b9); }
        .element-fill.agua { background: linear-gradient(90deg, #9b59b6, #8e44ad); }

        /* ✨ NUEVO: Puntos sensibles profesionales */
        .sensitive-points-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin: 30px 0;
        }

        .sensitive-point-card {
            background: linear-gradient(135deg, rgba(240, 242, 245, 0.9), rgba(233, 236, 239, 0.8));
            border: 2px solid rgba(173, 181, 189, 0.5);
            border-radius: 12px;
            padding: 25px;
            text-align: center;
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(173, 181, 189, 0.1);
        }

        .sensitive-point-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(173, 181, 189, 0.2);
            border-color: #868e96;
        }

        .sensitive-point-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #f39c12, #e67e22);
        }

        .point-symbol {
            font-size: 2.5rem;
            margin-bottom: 15px;
            color: #495057;
            text-shadow: 1px 1px 3px rgba(73, 80, 87, 0.2);
        }

        .point-name {
            font-family: 'Cinzel', serif;
            font-size: 1.1rem;
            font-weight: 600;
            color: #495057;
            margin-bottom: 10px;
        }

        .point-position {
            background: rgba(173, 181, 189, 0.3);
            padding: 5px 12px;
            border-radius: 15px;
            font-size: 0.9rem;
            color: #6c757d;
            font-weight: 600;
        }

        /* 🔗 NUEVO: Aspectos expandidos */
        .aspects-container {
            background: rgba(255, 255, 255, 0.8);
            border: 2px solid rgba(222, 226, 230, 0.8);
            border-radius: 15px;
            padding: 30px;
            margin: 30px 0;
        }

        .aspects-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 25px;
            margin-top: 20px;
        }

        .aspect-category {
            background: rgba(248, 249, 250, 0.8);
            border: 1px solid rgba(222, 226, 230, 0.6);
            border-radius: 10px;
            padding: 20px;
        }

        .aspect-category h4 {
            font-family: 'Cinzel', serif;
            color: #495057;
            margin-bottom: 15px;
            text-align: center;
            font-size: 1.1rem;
        }

        .aspect-item {
            display: flex;
            align-items: center;
            padding: 8px 12px;
            margin: 5px 0;
            background: rgba(255, 255, 255, 0.6);
            border-radius: 8px;
            font-size: 0.9rem;
            border-left: 3px solid #adb5bd;
            transition: all 0.2s ease;
        }

        .aspect-item:hover {
            background: rgba(248, 249, 250, 0.9);
            border-left-color: #495057;
        }

        .aspect-line {
            width: 20px;
            height: 2px;
            margin-right: 10px;
            border-radius: 1px;
        }

        /* 🏠 NUEVO: Sistema de casas profesional */
        .house-system-info {
            background: linear-gradient(135deg, rgba(240, 242, 245, 0.8), rgba(233, 236, 239, 0.6));
            border: 2px solid rgba(173, 181, 189, 0.6);
            border-radius: 12px;
            padding: 25px;
            margin: 25px 0;
            text-align: center;
        }

        .house-system-badge {
            display: inline-block;
            background: linear-gradient(135deg, #3498db, #2980b9);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-weight: 600;
            font-size: 0.9rem;
            margin-bottom: 15px;
            box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
        }

        /* Grillas mejoradas */
        .ancient-grid-2 {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
        }

        .ancient-grid-3 {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 25px;
        }

        /* Listas manuscritas mejoradas */
        .manuscript-list {
            list-style: none;
            padding: 0;
        }

        .manuscript-list li {
            background: rgba(255, 255, 255, 0.7);
            border-left: 4px solid #adb5bd;
            padding: 18px 22px;
            margin-bottom: 10px;
            border-radius: 0 8px 8px 0;
            transition: all 0.3s ease;
            position: relative;
            font-weight: 400;
            box-shadow: 0 2px 8px rgba(173, 181, 189, 0.1);
        }

        .manuscript-list li:hover {
            background: rgba(248, 249, 250, 0.9);
            border-left-color: #495057;
            transform: translateX(5px);
            box-shadow: 0 4px 15px rgba(134, 142, 150, 0.15);
        }

        /* Mensaje final elegante */
        .golden-scroll {
            background: rgba(248, 249, 250, 0.95);
            border: 2px solid rgba(222, 226, 230, 0.8);
            border-radius: 15px;
            padding: 45px;
            text-align: center;
            font-size: 1.1rem;
            line-height: 2;
            margin-top: 40px;
            position: relative;
            box-shadow: 0 8px 30px rgba(108, 117, 125, 0.1);
        }

        .golden-scroll h3 {
            font-family: 'Cinzel', serif;
            font-size: 1.6rem;
            color: #495057;
            margin-bottom: 30px;
            font-weight: 600;
            letter-spacing: 1px;
            text-shadow: 1px 1px 3px rgba(73, 80, 87, 0.1);
        }

        /* Botones mejorados */
        .ancient-actions {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 50px;
            flex-wrap: wrap;
        }

        .ancient-btn {
            padding: 15px 30px;
            border: 2px solid #adb5bd;
            border-radius: 8px;
            font-family: 'Crimson Text', serif;
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            letter-spacing: 0.5px;
        }

        .ancient-btn-primary {
            background: #495057;
            color: #ffffff;
            border-color: #495057;
        }

        .ancient-btn-secondary {
            background: rgba(255, 255, 255, 0.8);
            color: #6c757d;
            border-color: #ced4da;
        }

        .ancient-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(108, 117, 125, 0.2);
        }

        .ancient-btn-primary:hover {
            background: #6c757d;
            border-color: #6c757d;
        }

        .ancient-btn-secondary:hover {
            background: rgba(248, 249, 250, 0.95);
            border-color: #adb5bd;
        }

        /* Estados de carga y error */
        .ancient-loading {
            text-align: center;
            padding: 100px 20px;
        }

        .ancient-spinner {
            width: 60px;
            height: 60px;
            border: 3px solid rgba(222, 226, 230, 0.3);
            border-top: 3px solid #868e96;
            border-radius: 50%;
            animation: ancientSpin 1.5s linear infinite;
            margin: 0 auto 40px;
        }

        @keyframes ancientSpin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .ancient-error {
            background: rgba(248, 215, 218, 0.2);
            border: 1px solid rgba(220, 53, 69, 0.2);
            border-radius: 12px;
            padding: 50px;
            text-align: center;
            color: #721c24;
        }

        /* Fade in animation */
        .fade-in {
            opacity: 0;
            animation: fadeIn 1s ease forwards;
        }

        @keyframes fadeIn {
            to { opacity: 1; }
        }

        /* SVG Chart styles */
        .grado-text {
            font-family: 'Cinzel', serif;
            font-size: 10px;
            font-weight: 600;
        }

        .signo-text {
            font-family: 'Cinzel', serif;
            font-size: 18px;
            font-weight: bold;
        }

        .casa-number {
            font-family: 'Cinzel', serif;
            font-size: 12px;
            font-weight: bold;
            fill: #e74c3c;
        }

        .planeta-symbol {
            font-family: serif;
            font-size: 12px;
            font-weight: bold;
        }

        .aspecto-line {
            stroke-width: 1.5;
            opacity: 0.7;
        }

        .centro-tierra {
            fill: url(#gradientTierra);
            stroke: #34495e;
            stroke-width: 2;
        }

        /* Responsive mejorado */
        @media (max-width: 768px) {
            .parchment-container {
                padding: 20px 15px;
            }

            .ancient-title {
                font-size: 2.8rem;
                letter-spacing: 3px;
            }

            .ancient-section {
                padding: 35px 25px;
            }

            .ancient-grid-2, .ancient-grid-3 {
                grid-template-columns: 1fr;
            }

            .birth-details {
                grid-template-columns: 1fr;
            }

            .ancient-navigation {
                flex-direction: column;
                align-items: center;
            }

            .ancient-actions {
                flex-direction: column;
                align-items: center;
            }

            .nav-compass, .ancient-btn {
                width: 100%;
                max-width: 300px;
                text-align: center;
            }

            .professional-badges {
                flex-direction: column;
                align-items: center;
                gap: 10px;
            }

            .carta-natal-svg {
                width: 350px;
                height: 350px;
            }

            .planets-grid {
                grid-template-columns: 1fr;
            }

            .sensitive-points-grid {
                grid-template-columns: 1fr;
            }

            .aspects-grid {
                grid-template-columns: 1fr;
            }

            .leyendas-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 480px) {
            .ancient-title {
                font-size: 2.2rem;
                letter-spacing: 2px;
            }

            .section-title {
                font-size: 1.6rem;
            }

            .planet-scroll h4 {
                font-size: 1.1rem;
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }

            .carta-natal-svg {
                width: 300px;
                height: 300px;
            }
        }
   
