* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    padding-top: 80px; /* Espacio para el menú fijo */
}

/* ========== MENÚ DE NAVEGACIÓN ========== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 70px;
}

.nav-logo {
    font-size: 1.5em;
    font-weight: bold;
}

.nav-logo a {
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-logo a:hover {
    color: #764ba2;
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 3px;
    align-items: center;
}
.nav-logo .logo{
    width: 90%;
}


.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 6px;
    text-decoration: none;
    color: #4a5568;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    min-width: 85px;
}

.nav-link:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateY(-2px);
}

.nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.nav-link.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.nav-icon {
    font-size: 1.2em;
    margin-bottom: 2px;
}

.nav-text {
    font-size: 0.85em;
    font-weight: 500;
}

/* ========== DROPDOWN BLOG ========== */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 0.7em;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
    margin-top: 8px;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #4a5568;
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 8px;
}

.dropdown-item:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateX(4px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #667eea;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* ========== MENÚ MÓVIL MEJORADO - CENTRADO VERTICALMENTE ========== */

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        
        /* CAMBIO PRINCIPAL: Centrado vertical */
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: repeat(4, auto) auto !important; /* 4 filas para nav + 1 para idiomas */
        grid-gap: 15px !important;
        padding: 20px !important;
        align-content: center !important; /* ← CAMBIO: de 'start' a 'center' */
        justify-items: center !important;
        justify-content: center !important; /* ← NUEVO: centra horizontalmente también */
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    /* Iconos arriba, texto debajo */
    .nav-menu > a.nav-link,
    .nav-menu > .nav-dropdown {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 100px !important;
        max-width: 140px !important;
        padding: 12px 8px !important;
        font-size: 0.9em !important;
        text-align: center !important;
        width: 100% !important;
        text-decoration: none !important;
        color: #4a5568 !important;
        border-radius: 12px !important;
        transition: all 0.3s ease !important;
    }

    /* Estilos hover y active */
    .nav-menu > a.nav-link:hover,
    .nav-menu > .nav-dropdown:hover {
        background: rgba(102, 126, 234, 0.1) !important;
        color: #667eea !important;
        transform: translateY(-2px) !important;
    }

    .nav-menu > a.nav-link.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        color: white !important;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
    }

    /* Iconos y texto */
    .nav-icon {
        font-size: 1.7em !important;
        margin-bottom: 4px !important;
        display: block !important;
    }

    .nav-text {
        font-size: 1em !important;
        line-height: 1.2 !important;
        display: block !important;
    }

    /* El selector de idiomas va en la última fila */
    .language-selector {
        grid-column: 1 / -1 !important; /* Ocupa ambas columnas */
        display: flex !important;
        justify-content: center !important;
        gap: 15px !important;
        margin-top: 15px !important; /* ← REDUCIDO: menos margen para centrado */
        padding: 15px 0 !important;
        border-top: 1px solid rgba(102, 126, 234, 0.1) !important;
        width: 100% !important;
        order: 10 !important;
    }

    /* Idiomas más pequeños y compactos */
    .language-selector .language-link {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        min-width: 60px !important;
        max-width: 70px !important;
        padding: 8px 12px !important;
        font-size: 0.85em !important;
        text-decoration: none !important;
        border-radius: 8px !important;
        transition: all 0.3s ease !important;
    }

    .language-selector .flag-icon {
        font-size: 1.6em !important;
        margin-bottom: 2px !important;
        display: block !important;
    }

    .language-selector .lang-text {
        font-size: 1em !important;
        display: block !important;
    }

    /* Ajustar el dropdown para que funcione en la grilla */
    .nav-dropdown {
        width: 100% !important;
        text-align: center !important;
    }

    .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        background: rgba(102, 126, 234, 0.05) !important;
        margin-top: 8px !important;
        width: 100% !important;
        border-radius: 8px !important;
    }

    .dropdown-item {
        text-align: center !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border-bottom: 1px solid rgba(102, 126, 234, 0.1) !important;
        padding: 8px 12px !important;
        font-size: 0.75em !important;
        display: block !important;
        text-decoration: none !important;
        color: #4a5568 !important;
    }

    .dropdown-item:last-child {
        border-bottom: none !important;
    }

    .dropdown-item:hover {
        background: rgba(102, 126, 234, 0.1) !important;
        color: #667eea !important;
    }

    /* Para pantallas muy pequeñas */
    @media (max-width: 480px) {
        .nav-menu {
            padding: 15px !important;
            grid-gap: 12px !important;
        }
        
        .nav-menu > a.nav-link,
        .nav-menu > .nav-dropdown {
            min-width: 80px !important;
            max-width: 120px !important;
            padding: 10px 6px !important;
        }
        
        .nav-icon {
            font-size: 1.7em !important;
        }
        
        .nav-text {
            font-size: 1em !important;
        }

        .language-selector {
            gap: 10px !important;
            margin-top: 12px !important; /* ← REDUCIDO para pantallas pequeñas */
        }

        .language-selector .language-link {
            min-width: 50px !important;
            padding: 6px 8px !important;
        }
    }
}

/* Mantener el hamburger igual */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #667eea;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex !important;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

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

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* ========== ESTILOS BLOG ========== */
.blog-container {
    max-width: 1000px;
    margin: 0 auto;
   
}

.blog-header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.blog-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.blog-header p {
    font-size: 1.2em;
    opacity: 0.9;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.category-tab {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-tab:hover,
.category-tab.active {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.article-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    color: white;
    position: relative;
    overflow: hidden;
}
.article-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1;
}

/* El emoji/icono va encima del overlay */
.article-image > * {
    position: relative;
    z-index: 2;
}

/* PARA ARTÍCULO INDIVIDUAL - Nueva clase */
.article-hero-image {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 15px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.article-hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.2);
}
.article-content {
    padding: 25px;
}

.article-category {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.article-title {
    font-size: 1.3em;
    color: #2d3748;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: #667eea;
}

.article-excerpt {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    color: #718096;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #764ba2;
    transform: translateX(4px);
}

/* ========== ESTILOS ARTÍCULO INDIVIDUAL ========== */
.article-single {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.article-single h1 {
    font-size: 2.2em;
    color: #2d3748;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-single .article-meta {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.article-single .article-content {
    padding: 0;
}

.article-single h2 {
    color: #667eea;
    margin: 30px 0 15px 0;
    font-size: 1.5em;
}

.article-single h3 {
    color: #4a5568;
    margin: 25px 0 12px 0;
    font-size: 1.3em;
}

.article-single p {
    line-height: 1.7;
    margin-bottom: 18px;
    color: #2d3748;
}

.article-single ul,
.article-single ol {
    margin: 15px 0 15px 30px;
    line-height: 1.6;
}

.article-single li {
    margin-bottom: 8px;
    color: #4a5568;
}

.related-calculators {
    background: #f7fafc;
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
    border-left: 4px solid #667eea;
}

.related-calculators h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.calculator-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.calculator-link {
    background: #667eea;
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.calculator-link:hover {
    background: #764ba2;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* ========== ESTILOS EXISTENTES ========== */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.2em;
    opacity: 0.9;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.input-section {
    text-align: center;
    margin-bottom: 30px;
}

.input-section h2 {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
}

input[type="text"], input[type="number"], select {
    width: 100%;
    max-width: 400px;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
}

input[type="text"]:focus, input[type="number"]:focus, select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.result {
    display: none;
    text-align: center;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.number-display {
    font-size: 4em;
    font-weight: bold;
    color: #667eea;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.meaning {
  
    text-align: left;
}

.meaning h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.meaning p {
    line-height: 1.6;
    margin-bottom: 10px;
    color: #4a5568;
}

.characteristics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.char-item {
    background: #edf2f7;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.char-item strong {
    color: #667eea;
    display: block;
    margin-bottom: 5px;
}

.footer {
    text-align: center;
    color: white;
    margin-top: 30px;
    opacity: 0.8;
}

.info-section {
    margin-top: 30px;
    text-align: left;
}

.info-section h3 {
    color: #2d3748;
    margin-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.info-section ul {
    list-style: none;
    padding-left: 0;
}

.info-section li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.info-section li::before {
    content: "✨";
    margin-right: 10px;
}

.info-section h4 {
    color: #4a5568;
    margin: 20px 0 10px 0;
    font-size: 1.1em;
}

.info-section p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #2d3748;
}

/* Selector de idiomas */
.language-selector {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 0 8px;
}

.language-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 10px;
    text-decoration: none;
    color: #4a5568;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 50px;
    border: 2px solid transparent;
}

.language-link:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateY(-1px);
}

.language-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.language-link.active:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.flag-icon {
    font-size: 1.4em;
    margin-bottom: 2px;
}

.lang-text {
    font-size: 0.75em;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Responsive - móvil */
@media (max-width: 768px) {
    .article-single{
        padding: 20px;
    }
    .article-single h1 {
    font-size: 1.9em;
}
    .language-selector {
        width: 100%;
        justify-content: center;
        padding: 10px 0;
        border-top: 1px solid rgba(102, 126, 234, 0.1);
        margin-top: 20px;
        gap: 15px;
    }
    
    .language-link {
        min-width: 70px;
        padding: 12px 20px;
        font-size: 1.1em;
    }
    
    .flag-icon {
        font-size: 1.6em;
    }
    
    .lang-text {
        font-size: 0.9em;
    }
    /* Optimización para móviles */
      
            .article-image {
                height: 180px;
            }
            
            .article-hero-image {
                height: 250px;
            }
        
}

/* Efecto hover especial para las banderas */
.language-link:hover .flag-icon {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.language-link.active .flag-icon {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}


/* Estilos para páginas legales de Numeragic */

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.legal-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    line-height: 1.7;
    color: #2d3748;
}

.legal-content h1 {
    color: #667eea;
    font-size: 2.5em;
    margin-bottom: 10px;
    text-align: center;
    border-bottom: 3px solid #667eea;
    padding-bottom: 15px;
}

.last-updated {
    text-align: center;
    color: #718096;
    font-style: italic;
    margin-bottom: 30px;
    background: #f7fafc;
    padding: 10px;
    border-radius: 8px;
}

.legal-section {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h2 {
    color: #4a5568;
    font-size: 1.4em;
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 4px solid #667eea;
    background: #f8fafc;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 0 8px 8px 0;
}

.legal-section h3 {
    color: #2d3748;
    font-size: 1.2em;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.legal-section h4 {
    color: #4a5568;
    font-size: 1.1em;
    margin: 15px 0 8px 0;
    font-weight: 600;
}

.legal-section p {
    margin-bottom: 15px;
    color: #2d3748;
}

.legal-section ul, .legal-section ol {
    margin: 15px 0 15px 25px;
    color: #4a5568;
}

.legal-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.legal-section a {
    color: #667eea;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.legal-section a:hover {
    color: #764ba2;
}

/* Secciones especiales */
.owner-info {
    background: #f0f4f8;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #4299e1;
}

.important-notice {
    background: #fff5f5;
    border: 2px solid #fc8181;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.important-notice h3 {
    color: #c53030;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.important-notice p, .important-notice ul {
    color: #2d3748;
}

.disclaimer-section {
    background: #fffaf0;
    border: 2px solid #ed8936;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
}

.disclaimer-section h3 {
    color: #c05621;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.3em;
}

.disclaimer-section h4 {
    color: #744210;
    margin-top: 20px;
    margin-bottom: 10px;
}

.acknowledgment-box {
    background: linear-gradient(135deg, #e6fffa 0%, #f0fff4 100%);
    border: 2px solid #38a169;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
}

.acknowledgment-box p {
    color: #2d3748;
    margin-bottom: 15px;
}

.acknowledgment-box ul {
    color: #2d3748;
}

.final-message {
    background: white;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #38a169;
    margin-top: 20px;
    font-weight: 600;
    color: #2d3748 !important;
    text-align: center;
}

.validity-info {
    background: #f7fafc;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.thanks-message {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
}

.thanks-message p {
    color: white;
    margin-bottom: 15px;
}

.contact-info {
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #4299e1;
    margin: 15px 0;
}

.contact-info ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-info li {
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.contact-info li:last-child {
    border-bottom: none;
}

.important-advice {
    background: #fff5f5;
    border: 2px solid #fc8181;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    font-size: 1.1em;
    color: #c53030 !important;
}

/* Tabla de cookies */
.cookie-table {
    margin: 20px 0;
    overflow-x: auto;
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cookie-table th {
    background: #667eea;
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}

.cookie-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
}

.cookie-table tr:nth-child(even) {
    background: #f8fafc;
}

.cookie-table tr:hover {
    background: #edf2f7;
}

/* Botones de cookies */
.cookie-controls {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.cookie-btn {
    background: #667eea;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cookie-btn:hover {
    background: #764ba2;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

/* Secciones finales */
.final-section {
    background: #f0f4f8;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #4299e1;
}

.contact-section {
    background: linear-gradient(135deg, #f0f4f8 0%, #e6fffa 100%);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
}

.acknowledgment {
    background: linear-gradient(135deg, #fef5e7 0%, #f0fff4 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #38a169;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-container {
        padding: 15px;
    }

    .legal-content {
        padding: 25px 20px;
    }

    .legal-content h1 {
        font-size: 2em;
    }

    .legal-section h2 {
        font-size: 1.2em;
        padding-left: 12px;
    }

    .legal-section h3 {
        font-size: 1.1em;
    }

    .cookie-table {
        font-size: 0.9em;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 8px 10px;
    }

    .cookie-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-btn {
        text-align: center;
    }

    .important-notice,
    .disclaimer-section,
    .acknowledgment-box {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .legal-content h1 {
        font-size: 1.8em;
    }

    .legal-section {
        margin-bottom: 25px;
        padding-bottom: 15px;
    }

    .legal-section h2 {
        font-size: 1.1em;
        padding: 8px 10px;
    }

    .cookie-table table {
        font-size: 0.8em;
    }

    .thanks-message,
    .acknowledgment,
    .contact-section {
        padding: 20px 15px;
    }
}
/* Enlaces legales en footer */
.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.85em;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: white;
    text-decoration: underline;
}

.footer a:first-of-type {
    margin-left: 0;
}

/* Responsive para móvil */
@media (max-width: 768px) {
    .footer a {
        display: block;
        margin: 5px 0;
        text-align: center;
    }
}

/* ========== CLASES PARA NÚMEROS DE LA SUERTE RESPONSIVE ========== */

/* Grid responsive para los cuadritos de números */
.lucky-numbers-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    margin: 30px 0 !important; /* MÁS ESPACIO entre filas */
}

/* Grid para la primera fila (Número de Poder y Abundancia) */
.lucky-numbers-first-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    margin: 30px 0 !important; /* MÁS ESPACIO entre filas */
}

/* Responsive para móvil */
@media (max-width: 768px) {
    .lucky-numbers-grid {
        grid-template-columns: 1fr !important; /* Una columna en móvil */
        gap: 15px !important;
        margin: 25px 0 !important;
    }
    
    .lucky-numbers-first-row {
        grid-template-columns: 1fr !important; /* Una columna en móvil */
        gap: 15px !important;
        margin: 25px 0 !important;
    }
}

/* Para pantallas muy pequeñas */
@media (max-width: 480px) {
    .lucky-numbers-grid {
        gap: 12px !important;
        margin: 20px 0 !important;
    }
    
    .lucky-numbers-first-row {
        gap: 12px !important;
        margin: 20px 0 !important;
    }
}

/* ========== CLASES PARA COMPATIBILIDAD RESPONSIVE ========== */

/* Grid responsive para los formularios de compatibilidad */
.compatibility-inputs {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 30px !important;
    margin-bottom: 20px !important;
}
/* Grid responsive para los cuadritos de resultados de compatibilidad */
.compatibility-results-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    margin: 20px 0 !important;
}

/* Responsive para móvil */
@media (max-width: 768px) {
    .compatibility-inputs {
        grid-template-columns: 1fr !important; /* Una columna en móvil */
        gap: 20px !important;
        margin-bottom: 15px !important;
    }
    .compatibility-results-grid {
        grid-template-columns: 1fr !important; /* Una columna en móvil */
        gap: 15px !important;
        margin: 20px 0 !important;
    }
    .compatibility-results-grid {
        gap: 12px !important;
        margin: 15px 0 !important;
    }
}

/* Para pantallas muy pequeñas */
@media (max-width: 480px) {
    .compatibility-inputs {
        gap: 15px !important;
        margin-bottom: 10px !important;
    }
    
    .person-input h3 {
        font-size: 1.1em !important;
        margin-bottom: 10px !important;
    }
}



@media (max-width: 480px) {
    .compatibility-inputs .input-group {
        margin-bottom: 12px !important;
    }
    
    .compatibility-inputs label {
        font-size: 0.9em !important;
    }
    
    .compatibility-inputs input,
    .compatibility-inputs select {
        font-size: 0.9em !important;
        padding: 10px !important;
    }
}

/* ========== CONTENEDORES PARA PERSON-INPUT EN COMPATIBILIDAD ========== */

.person-input {
    background: rgba(102, 126, 234, 0.03) !important; /* Lilita muy suave */
    border: 1px solid rgba(102, 126, 234, 0.08) !important;
    border-radius: 16px !important;
    padding: 20px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.04) !important;
}

/* Efecto hover sutil */
.person-input:hover {
    background: rgba(102, 126, 234, 0.05) !important;
    border-color: rgba(102, 126, 234, 0.12) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.08) !important;
    transform: translateY(-1px) !important;
}

/* El h3 dentro del person-input */
.person-input h3 {
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1) !important;
    font-weight: 600 !important;
}

/* Espaciado para los input-groups dentro */
.person-input .input-group {
    margin-bottom: 15px !important;
}

.person-input .input-group:last-child {
    margin-bottom: 0 !important;
}

/* Los campos de fecha que aparecen/desaparecen */
.person-input #person1DateFields,
.person-input #person2DateFields {
    margin-top: 10px !important;
    padding: 12px !important;
    background: rgba(255, 255, 255, 0.5) !important;
    border-radius: 8px !important;
    border: 1px solid rgba(102, 126, 234, 0.06) !important;
}

/* Responsive para móvil - más padding y espacios */
@media (max-width: 768px) {
    .person-input {
        padding: 18px !important;
        margin-bottom: 15px !important; /* Espacio entre las dos personas */
        border-radius: 14px !important;
    }
    
    .person-input h3 {
        font-size: 1.1em !important;
        text-align: center !important;
        margin-bottom: 12px !important;
    }
    
    .person-input .input-group {
        margin-bottom: 12px !important;
    }
    
    .person-input #person1DateFields,
    .person-input #person2DateFields {
        padding: 10px !important;
        margin-top: 8px !important;
    }
}

/* Para pantallas muy pequeñas */
@media (max-width: 480px) {
    .person-input {
        padding: 15px !important;
        border-radius: 12px !important;
    }
    
    .person-input h3 {
        font-size: 1em !important;
        margin-bottom: 10px !important;
    }
    
    .person-input .input-group {
        margin-bottom: 10px !important;
    }
}

/* Alternativa con gris suave (comentado, por si prefieres cambiar) */
/*
.person-input {
    background: rgba(248, 250, 252, 0.8) !important;
    border: 1px solid rgba(226, 232, 240, 0.6) !important;
    border-radius: 16px !important;
    padding: 20px !important;
}

.person-input:hover {
    background: rgba(241, 245, 249, 0.9) !important;
    border-color: rgba(203, 213, 225, 0.8) !important;
}
*/


/* ========================================
   ORACLE NUMEROLÓGICO - CSS ADDON 
   Para integrar con el diseño existente de Numeragic
   ======================================== */

/* Contenedor principal del Oracle - usando tus estilos existentes */
.oracle-container {
    background: white;
    border-radius: 25px;
    padding: 50px 40px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    text-align: center;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

/* Borde brillante usando tus colores */
.oracle-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
    border-radius: 25px;
    z-index: -1;
    animation: oracleBorderGlow 4s ease-in-out infinite alternate;
}

@keyframes oracleBorderGlow {
    0% { opacity: 0.5; }
    100% { opacity: 0.8; }
}

/* Títulos usando tu tipografía */
.oracle-title {
    color: #333;
    margin-bottom: 15px;
    font-size: 2.5em;
    font-weight: bold;
}

.oracle-subtitle {
    color: #666;
    margin-bottom: 40px;
    font-size: 1.2em;
    line-height: 1.4;
}

/* Formulario del Oracle */
.oracle-form {
    margin-bottom: 30px;
}

.oracle-input-group {
    margin-bottom: 25px;
}

.oracle-label {
    display: block;
    color: #555;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* Select usando tu estilo de inputs */
.oracle-select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    font-size: 1.1em;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
}

.oracle-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Prompt de pregunta */
.oracle-question-prompt {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ecff 100%);
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
    border-left: 5px solid #667eea;
}

.oracle-question-prompt p {
    color: #4a5568;
    font-size: 1.1em;
    font-style: italic;
    margin: 0;
}

/* Botón principal - usando tus gradientes */
.oracle-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 45px;
    font-size: 1.3em;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.oracle-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.oracle-btn:active {
    transform: translateY(-1px);
}

.oracle-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Contenedor de la bola de cristal */
.oracle-crystal-container {
    margin: 40px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
    min-height: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    display: none;
}

.oracle-crystal-container.show {
    opacity: 1;
    transform: translateY(0);
    display: flex
}

/* Bola de cristal */
.oracle-crystal-ball {
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.6s ease;
}

.oracle-crystal-ball img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.oracle-crystal-ball.consulting {
    animation: oracleMysticalGlow 2s ease-in-out;
}

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

/* Número que aparece en la bola */
.oracle-number-reveal {
    position: absolute;
    top: 41%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3em;
    font-weight: bold;
    color: #667eea;
    opacity: 0;
    transition: all 0.5s ease;
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.oracle-number-reveal.show {
    opacity: 1;
    animation: oracleNumberPulse 1s ease-in-out;
}

@keyframes oracleNumberPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

/* Contenedor de resultado */
.oracle-result {
    margin-top: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.5s;
    display: none;
}

.oracle-result.show {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

/* Tarjeta de resultado - usando tu gradiente alternativo */
.oracle-result-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 30px;
    border-radius: 20px;
    color: white;
    box-shadow: 0 15px 35px rgba(240, 147, 251, 0.3);
}

.oracle-result-number {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.oracle-result-interpretation {
    font-size: 1.2em;
    line-height: 1.5;
    margin-bottom: 20px;
}

.oracle-result-area {
    font-size: 1em;
    opacity: 0.9;
    font-style: italic;
}

/* Botón para consultar otra vez */
.oracle-ask-again {
    margin-top: 25px;
    padding: 12px 30px;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.5);
    color: white;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
}

.oracle-ask-again:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Responsive - Móvil */
@media (max-width: 768px) {
    .oracle-container {
        padding: 30px 25px;
        border-radius: 20px;
    }
    
    .oracle-title {
        font-size: 2em;
    }
    
    .oracle-subtitle {
        font-size: 1.1em;
    }
    
    .oracle-crystal-ball {
        width: 120px;
        height: 120px;
    }
    
    .oracle-number-reveal {
        font-size: 2.5em;
    }
    
    .oracle-result-number {
        font-size: 2em;
    }
    
    .oracle-result-interpretation {
        font-size: 1.1em;
    }
}

/* Responsive - Mobile pequeño */
@media (max-width: 480px) {
    .oracle-container {
        padding: 25px 20px;
        border-radius: 18px;
    }
    
    .oracle-title {
        font-size: 1.8em;
    }
    
    .oracle-btn {
        padding: 15px 35px;
        font-size: 1.2em;
    }
    
    .oracle-crystal-ball {
        width: 100px;
        height: 100px;
    }
    
    .oracle-number-reveal {
        font-size: 2.2em;
    }
}

/* Integración con tu diseño existente */
.main-oracle {
    padding: 40px 20px;
}

/* Si necesitas que se integre con tu layout de calculadoras */
.calculator-section.oracle {
    text-align: center;
}

/* Para mantener consistencia con tus colores */
.oracle-primary-color { color: #667eea; }
.oracle-secondary-color { color: #764ba2; }
.oracle-accent-color { color: #f093fb; }


/* ========== ESTILOS PARA NUEVA HOME ========== */

/* Grid de calculadoras principales */
.calculators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.calculator-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.calculator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.calculator-icon {
    font-size: 3em;
    margin-bottom: 15px;
    display: block;
}

.calculator-card h3 {
    color: #667eea;
    font-size: 1.4em;
    margin-bottom: 12px;
    font-weight: 600;
}

.calculator-card p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.calculator-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    display: inline-block;
}

/* Sección del oráculo - menos prominente */
.oracle-section {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    margin-bottom: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.oracle-section h2 {
    color: white;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.oracle-section p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
    font-size: 1.1em;
}

.oracle-section  .oracle-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 15px 30px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.oracle-section .oracle-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Sección del blog en home */
.blog-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.blog-section h2 {
    color: #667eea;
    font-size: 2em;
    margin-bottom: 30px;
    text-align: center;
}

.blog-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-article {
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.blog-article:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    transform: translateY(-3px);
}

.blog-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
}

.blog-content {
    padding: 20px;
}

.blog-category {
    background: #f7fafc;
    color: #667eea;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 10px;
}

.blog-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-excerpt {
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 15px;
}

.blog-more {
    color: #667eea;
    font-weight: 500;
    font-size: 0.9em;
}

.blog-footer {
    text-align: center;
    margin-top: 30px;
}

.blog-footer a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.blog-footer a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Responsive para nueva home */
@media (max-width: 768px) {
    .calculators-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .calculator-card {
        padding: 25px;
    }
    
    .calculator-icon {
        font-size: 2.5em;
    }
    
    .blog-articles {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-section {
        padding: 25px;
    }

    .oracle-section {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .calculator-card {
        padding: 20px;
    }
    
    .oracle-section {
        padding: 20px;
    }

    .blog-section {
        padding: 20px;
    }

    .calculator-icon {
        font-size: 2.2em;
    }
}
.colors-container {
    margin-top: 15px;
}

.color-palette {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.color-item {
    text-align: center;
    min-width: 80px;
}

.color-square {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    margin: 0 auto 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.color-name {
    display: block;
    font-size: 0.85em;
    font-weight: 500;
    margin-bottom: 2px;
}

.color-code {
    display: block;
    font-size: 0.75em;
    color: #666;
    font-family: monospace;
}

.color-explanation {
    font-size: 0.9em;
    color: #555;
    font-style: italic;
    margin-top: 10px;
}
.char-item.colors-wide {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .char-item.colors-wide {
        grid-column: span 1;
    }
}