/*
Theme Name: Incilex - Dark Neon Dental
Theme URI: https://incilex.com
Author: Incilex Development Team
Author URI: https://incilex.com
Description: Tema profesional dark-neon para la clinica dental Incilex y DERMA by Incilex. Bilingue ES/EN con estetica SaaS moderna, glassmorphism y efectos neon.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: incilex
Tags: dark, dental, neon, bilingual, glassmorphism, tailwind
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
*/

/* ========================================
   INCILEX DARK NEON SAAS THEME
   Base styles (Tailwind handles utilities)
   ======================================== */

:root {
    --color-bg-deep: #050505;
    --color-bg-card: #0a0a0f;
    --color-bg-glass: rgba(15, 15, 25, 0.6);
    --color-border-glass: rgba(139, 92, 246, 0.15);
    --color-violet: #8b5cf6;
    --color-violet-light: #a78bfa;
    --color-violet-dark: #7c3aed;
    --color-blue: #0ea5e9;
    --color-blue-light: #38bdf8;
    --color-blue-dark: #0284c7;
    --color-cyan: #06b6d4;
    --color-text-primary: #f1f5f9;
    --color-text-secondary: #94a3b8;
    --color-text-muted: #64748b;
    --color-success: #10b981;
    --color-gold: #f59e0b;
    --glow-violet: 0 0 20px rgba(139, 92, 246, 0.3), 0 0 60px rgba(139, 92, 246, 0.1);
    --glow-blue: 0 0 20px rgba(14, 165, 233, 0.3), 0 0 60px rgba(14, 165, 233, 0.1);
    --glow-violet-strong: 0 0 30px rgba(139, 92, 246, 0.5), 0 0 80px rgba(139, 92, 246, 0.2);
    --glow-blue-strong: 0 0 30px rgba(14, 165, 233, 0.5), 0 0 80px rgba(14, 165, 233, 0.2);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--color-bg-deep);
    color: var(--color-text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-deep);
}
::-webkit-scrollbar-thumb {
    background: var(--color-violet-dark);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-violet);
}

/* ---- Glassmorphism Cards ---- */
.glass-card {
    background: var(--color-bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-border-glass);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow: var(--glow-violet);
    transform: translateY(-2px);
}

.glass-card-blue:hover {
    border-color: rgba(14, 165, 233, 0.35);
    box-shadow: var(--glow-blue);
}

/* ---- Neon Buttons ---- */
.btn-neon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-neon-violet {
    background: linear-gradient(135deg, var(--color-violet-dark), var(--color-violet));
    color: #fff;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
}
.btn-neon-violet:hover {
    box-shadow: var(--glow-violet-strong);
    transform: translateY(-2px);
    color: #fff;
}

.btn-neon-blue {
    background: linear-gradient(135deg, var(--color-blue-dark), var(--color-blue));
    color: #fff;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.25);
}
.btn-neon-blue:hover {
    box-shadow: var(--glow-blue-strong);
    transform: translateY(-2px);
    color: #fff;
}

.btn-neon-outline {
    background: transparent;
    color: var(--color-violet-light);
    border: 1px solid rgba(139, 92, 246, 0.4);
}
.btn-neon-outline:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--color-violet);
    box-shadow: var(--glow-violet);
    color: #fff;
}

/* ---- Gradient Text ---- */
.text-gradient-violet {
    background: linear-gradient(135deg, var(--color-violet-light), var(--color-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-blue {
    background: linear-gradient(135deg, var(--color-blue-light), var(--color-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-mixed {
    background: linear-gradient(135deg, var(--color-violet-light), var(--color-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Glow Effects ---- */
.glow-violet { box-shadow: var(--glow-violet); }
.glow-blue { box-shadow: var(--glow-blue); }
.glow-violet-strong { box-shadow: var(--glow-violet-strong); }

.glow-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-violet), var(--color-blue), transparent);
    opacity: 0.6;
}

/* ---- Section Backgrounds ---- */
.section-mesh {
    position: relative;
}
.section-mesh::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 20% 50%, rgba(139, 92, 246, 0.06), transparent),
        radial-gradient(ellipse 500px 300px at 80% 30%, rgba(14, 165, 233, 0.04), transparent);
    pointer-events: none;
    z-index: 0;
}

/* ---- Floating Orbs (decorative) ---- */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}
.orb-violet {
    background: rgba(139, 92, 246, 0.15);
}
.orb-blue {
    background: rgba(14, 165, 233, 0.12);
}

/* ---- Animations ---- */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}
@keyframes slide-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 3s ease-in-out infinite; }
.animate-slide-up { animation: slide-up 0.6s ease-out forwards; }

/* ---- Phase Timeline (Implantes) ---- */
.phase-line {
    position: relative;
}
.phase-line::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-violet), var(--color-blue), transparent);
}

/* ---- Stat Counter ---- */
.stat-card {
    text-align: center;
    padding: 24px;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

/* ---- Promo Badge ---- */
.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---- Language Switcher ---- */
.lang-switch {
    display: flex;
    border-radius: 9999px;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.3);
    background: rgba(10, 10, 15, 0.8);
}
.lang-switch a {
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    color: var(--color-text-muted);
}
.lang-switch a.active {
    background: linear-gradient(135deg, var(--color-violet-dark), var(--color-violet));
    color: #fff;
}
.lang-switch a:hover:not(.active) {
    color: var(--color-text-primary);
    background: rgba(139, 92, 246, 0.1);
}

/* ---- Mobile Menu ---- */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 5, 0.97);
    backdrop-filter: blur(20px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}
.mobile-menu a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color 0.2s;
}
.mobile-menu a:hover {
    color: var(--color-violet-light);
}

/* ---- Responsive helpers ---- */
@media (max-width: 768px) {
    .stat-number { font-size: 2rem; }
    .glass-card { border-radius: 12px; }
}

/* ---- WP-specific overrides ---- */
.wp-block-image img {
    border-radius: 12px;
}
.entry-content a {
    color: var(--color-violet-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.entry-content a:hover {
    color: var(--color-blue-light);
}
