/* Calculalisto – Tema Slate + Teal
   Reemplaza la paleta purple original.
   Para revertir: eliminar este archivo y quitar el <link> en head.html */

/* Navbar, footer, menú mobile → slate-800 */
.bg-purple-900 { background-color: #1e293b !important; }
.bg-purple-800 { background-color: #334155 !important; }

/* Fondos claros de acento → teal */
.bg-purple-50  { background-color: #f0fdfa !important; }
.bg-purple-100 { background-color: #ccfbf1 !important; }

/* Bordes */
.border-purple-800 { border-color: #475569 !important; }
.border-purple-600 { border-color: #0d9488 !important; }
.border-purple-200 { border-color: #99f6e4 !important; }

/* Texto de acento → teal */
.text-purple-900 { color: #134e4a !important; }
.text-purple-800 { color: #0d9488 !important; }
.text-purple-700 { color: #0f766e !important; }
.text-purple-600 { color: #14b8a6 !important; }

/* Fondo general: blanco en vez de gris claro */
#app { background-color: #ffffff !important; }

/* h1 */
h1 { color: #0d9488 !important; }

/* Botón calcular */
.btn-calcular { background-color: #0d9488 !important; }
.btn-calcular:hover { background-color: #0f766e !important; }

/* Links de contenido informativo */
#informacion p a { color: #0d9488 !important; }
#informacion p a:hover { color: #0f766e !important; }

/* Links de calculadoras relacionadas */
.related-container a { color: #0d9488 !important; }
.mini-calculator-footer a { color: #134e4a !important; }

/* Hover en menú de navegación */
.navbar-desktop-item:hover { color: #99f6e4 !important; }
.navbar-desktop-submenu-item:hover { color: #0f766e !important; }
.navbar-mobile-submenu-item:hover { color: #99f6e4 !important; }

/* ==============================
   Homepage – Hero
   ============================== */

.hero-home {
    background: linear-gradient(150deg, #0f172a 0%, #134e4a 100%);
    padding: 3.5rem 1.5rem 3rem;
    text-align: center;
}

.hero-home h1 {
    color: #ffffff !important;
    font-size: 2rem !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    margin-bottom: 0.75rem !important;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .hero-home h1 { font-size: 2.5rem !important; }
}

.hero-sub {
    color: #94a3b8;
    font-size: 0.9375rem;
    max-width: 520px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 9999px;
    padding: 0.625rem 2rem;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
}

.hero-stat-num {
    font-size: 1.25rem;
    font-weight: 900;
    color: #2dd4bf;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.625rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-stat-divider {
    width: 1px;
    height: 2rem;
    background: rgba(255,255,255,0.12);
}

/* ==============================
   Homepage – Categoría cards
   ============================== */

.calc-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
    border-top-width: 3px;
}

.calc-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem 0.875rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.calc-card-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    opacity: 0.6;
}

.calc-card-body {
    padding: 0.875rem 1.25rem 1.25rem;
}

.calc-card-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #475569;
    padding: 0.3125rem 0;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.12s, padding-left 0.12s;
}

.calc-card-link::before {
    content: "";
    display: block;
    width: 0.3125rem;
    height: 0.3125rem;
    border-radius: 50%;
    background: #cbd5e1;
    flex-shrink: 0;
    transition: background 0.12s;
}

.calc-card-link:hover { color: #0d9488; padding-left: 0.25rem; }
.calc-card-link:hover::before { background: #0d9488; }

/* Acento de color por categoría (borde top) */
.calc-card--matematica  { border-top-color: #e11d48; }
.calc-card--calendario  { border-top-color: #6366f1; }
.calc-card--finanzas    { border-top-color: #2563eb; }
.calc-card--estadistica { border-top-color: #84cc16; }
.calc-card--salud       { border-top-color: #059669; }
.calc-card--otras       { border-top-color: #ea580c; }
.calc-card--geometria   { border-top-color: #0d9488; }

/* ==============================
   Homepage – Bloque de contenido SEO
   ============================== */

.home-content {
    margin-top: 2rem;
    max-width: 860px;
    color: #334155;
    font-size: 0.9375rem;
    line-height: 1.75;
}

.home-content h2 {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-top: 2rem !important;
    margin-bottom: 0.5rem !important;
    padding-bottom: 0.375rem;
    border-bottom: 2px solid #f1f5f9;
}

.home-content h3 {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin-top: 1.25rem !important;
    margin-bottom: 0.375rem !important;
}

.home-content p {
    margin-bottom: 0.875rem;
    color: #475569;
}

.home-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 0.875rem;
}

.home-content ul li {
    padding: 0.25rem 0 0.25rem 1.25rem;
    position: relative;
    color: #475569;
}

.home-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background: #0d9488;
}

.home-content strong {
    color: #1e293b;
    font-weight: 600;
}

/* Geometría: image items dentro del card */
.calc-geo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 0.5rem;
    border-radius: 0.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: #334155;
    transition: background 0.12s, border-color 0.12s;
}

.calc-geo-item:hover {
    background: #f0fdfa;
    border-color: #99f6e4;
    color: #0f766e;
}
