/* ============================================================
   MADRE TIERRA — Tema Soberano Indígena COMPLETO
   Ierahkwa Ne Kanienke Government and its successors
   Colores de la tierra, agua, fuego y cielo
   AGREGA sobre los estilos base — baja especificidad
   ============================================================ */

/* --- Paleta Madre Tierra (variables nuevas, no pisan las existentes) --- */
:root {
    --tierra: #8B4513;
    --tierra-profunda: #5c2d0e;
    --bosque: #2d5016;
    --bosque-claro: #4a7c28;
    --fuego: #cc6600;
    --fuego-vivo: #ff8c00;
    --agua: #006994;
    --agua-clara: #0099cc;
    --sol: #daa520;
    --sol-vivo: #ffd700;
    --maiz: #f4a460;
    --wampum: #7b68ee;
    --jade: #00a86b;
    --obsidiana: #1c1c1c;
    --borde-tierra: rgba(139,69,19,0.15);
    --borde-bosque: rgba(45,80,22,0.15);
    --glow-tierra: 0 0 12px rgba(139,69,19,0.4);
    --glow-fuego: 0 0 12px rgba(255,140,0,0.4);
    --glow-sol: 0 0 12px rgba(218,165,32,0.4);
    --glow-jade: 0 0 12px rgba(0,168,107,0.4);
}

/* --- Textura sutil de fondo ancestral --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.015;
    background-image:
        radial-gradient(circle at 20% 30%, var(--tierra) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, var(--bosque) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, var(--sol) 0.5px, transparent 0.5px);
    background-size: 60px 60px, 80px 80px, 40px 40px;
}

/* --- Scrollbar orgánica --- */
::-webkit-scrollbar { width: 8px; height: 8px }
::-webkit-scrollbar-track { background: #0a0a14 }
::-webkit-scrollbar-thumb { background: var(--tierra); border-radius: 4px }
::-webkit-scrollbar-thumb:hover { background: var(--fuego) }

/* --- Selection dorada --- */
::selection { background: rgba(218,165,32,0.3); color: #fff }

/* --- Separadores hr con gradiente tierra --- */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--borde-tierra), rgba(218,165,32,0.15), var(--borde-tierra), transparent);
}

/* --- Focus accesible con tono sol --- */
:focus-visible {
    outline: 2px solid rgba(218,165,32,0.5);
    outline-offset: 2px;
}

/* --- Marca soberana --- */
body::after {
    content: 'Ierahkwa Ne Kanienke — Madre Tierra';
    position: fixed;
    bottom: 8px;
    right: 12px;
    font-size: 0.55rem;
    color: rgba(218,165,32,0.2);
    letter-spacing: 2px;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 9999;
    font-family: 'Cinzel', Georgia, serif;
}

/* === CLASES UTILITARIAS MADRE TIERRA (para usar en HTML) === */

.mt-hero {
    background: linear-gradient(170deg, #0a0a14 0%, #0f1a0a 40%, #0a0a14 100%);
    position: relative;
    overflow: hidden;
}
.mt-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 30%, rgba(218,165,32,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.mt-section-earth {
    background: linear-gradient(180deg, transparent, rgba(139,69,19,0.03), transparent);
}
.mt-section-forest {
    background: linear-gradient(180deg, transparent, rgba(45,80,22,0.04), transparent);
}
.mt-section-sky {
    background: linear-gradient(180deg, transparent, rgba(0,105,148,0.03), transparent);
}
.mt-section-fire {
    background: linear-gradient(180deg, transparent, rgba(255,140,0,0.03), transparent);
}

.mt-title {
    font-family: 'Cinzel', Georgia, serif;
    color: var(--sol-vivo);
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(218,165,32,0.3);
}

.mt-subtitle {
    color: var(--maiz);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.mt-card {
    background: linear-gradient(145deg, rgba(28,28,28,0.95), rgba(15,26,10,0.9));
    border: 1px solid var(--borde-tierra);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}
.mt-card:hover {
    border-color: var(--sol);
    box-shadow: var(--glow-sol);
    transform: translateY(-3px);
}

.mt-btn {
    background: linear-gradient(135deg, var(--bosque), var(--bosque-claro));
    color: #e8dcc8;
    border: 1px solid rgba(74,124,40,0.5);
    border-radius: 8px;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}
.mt-btn:hover {
    background: linear-gradient(135deg, var(--bosque-claro), var(--jade));
    box-shadow: var(--glow-jade);
    transform: translateY(-1px);
}
.mt-btn-fire {
    background: linear-gradient(135deg, var(--fuego), var(--fuego-vivo));
    border-color: rgba(255,140,0,0.5);
    color: #fff;
}
.mt-btn-fire:hover {
    background: linear-gradient(135deg, var(--fuego-vivo), var(--sol-vivo));
    box-shadow: var(--glow-fuego);
}

.mt-badge {
    background: rgba(139,69,19,0.15);
    color: var(--maiz);
    border: 1px solid var(--borde-tierra);
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
}

.mt-stat {
    color: var(--sol-vivo);
    font-family: 'Orbitron', monospace;
    text-shadow: var(--glow-sol);
}

.mt-divider {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--tierra), var(--sol), var(--tierra), transparent);
    margin: 3rem 0;
}

/* Animaciones Madre Tierra */
@keyframes mtFloat {
    0%, 100% { transform: translateY(0) }
    50% { transform: translateY(-8px) }
}
@keyframes mtGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(218,165,32,0.15) }
    50% { box-shadow: 0 0 40px rgba(218,165,32,0.3) }
}
@keyframes mtFadeUp {
    from { opacity: 0; transform: translateY(30px) }
    to { opacity: 1; transform: translateY(0) }
}
@keyframes mtPulseEarth {
    0%, 100% { box-shadow: 0 0 15px rgba(139,69,19,0.2) }
    50% { box-shadow: 0 0 30px rgba(139,69,19,0.4), 0 0 60px rgba(218,165,32,0.1) }
}

.mt-float { animation: mtFloat 4s ease-in-out infinite }
.mt-glow { animation: mtGlow 3s ease-in-out infinite }
.mt-fade-up { animation: mtFadeUp 0.8s ease-out forwards }
.mt-pulse { animation: mtPulseEarth 3s ease-in-out infinite }

/* Glassmorphism tierra */
.mt-glass {
    background: rgba(28,28,28,0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(218,165,32,0.1);
    border-radius: 16px;
}

/* Grid responsive para secciones grandes */
.mt-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem }
.mt-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem }
.mt-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem }
@media (max-width: 1024px) {
    .mt-grid-3, .mt-grid-4 { grid-template-columns: repeat(2, 1fr) }
}
@media (max-width: 768px) {
    .mt-grid-2, .mt-grid-3, .mt-grid-4 { grid-template-columns: 1fr }
}

/* Texto grande para impacto */
.mt-mega { font-size: clamp(3rem, 8vw, 6rem); font-weight: 900; line-height: 1.1 }
.mt-large { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.2 }

/* Contador animado */
.mt-counter {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    color: var(--sol-vivo);
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 40px rgba(218,165,32,0.5), 0 0 10px rgba(218,165,32,0.8);
}

/* Parallax sutil */
.mt-parallax {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* Sovereign seal grande */
.mt-seal {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--sol);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: rgba(218,165,32,0.06);
    box-shadow: 0 0 60px rgba(218,165,32,0.2), inset 0 0 30px rgba(218,165,32,0.1);
    animation: mtPulseEarth 4s ease-in-out infinite;
    margin: 0 auto;
}

/* Ticker indígena */
.mt-ticker {
    overflow: hidden;
    white-space: nowrap;
    background: rgba(139,69,19,0.08);
    border-bottom: 1px solid var(--borde-tierra);
    padding: 0.4rem 0;
}
.mt-ticker-track {
    display: inline-flex;
    gap: 3rem;
    animation: tickerScroll 50s linear infinite;
}

/* Full-width banner */
.mt-banner {
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.mt-banner-xl {
    padding: 8rem 2rem;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Responsive helpers */
@media (max-width: 768px) {
    .mt-banner { padding: 3rem 1rem }
    .mt-banner-xl { padding: 4rem 1rem; min-height: 60vh }
    .mt-mega { font-size: 2.5rem }
    .mt-seal { width: 100px; height: 100px; font-size: 2.5rem }
}
