/* MSTChat - Estilos principales */

:root {
    --primary: #25D366;
    --primary-dark: #128C7E;
    --dark: #075E54;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navbar */
.navbar {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    color: var(--dark) !important;
}

.navbar-brand i {
    color: var(--primary);
}

.navbar-dark {
    background: var(--dark) !important;
}

.navbar-dark .navbar-brand {
    color: white !important;
}

/* Botones */
.btn-primary {
    background: var(--primary);
    border: none;
}

.btn-primary:hover {
    background: #1ebe5d;
}

.btn-hero {
    background: var(--primary);
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-hero:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

.btn-outline-hero {
    border: 2px solid white;
    padding: 13px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    color: white;
    transition: all 0.3s;
}

.btn-outline-hero:hover {
    background: white;
    color: var(--dark);
}

.btn-pricing {
    background: var(--primary);
    border: none;
    padding: 15px 50px;
    font-weight: 600;
    border-radius: 50px;
    width: 100%;
    transition: all 0.3s;
}

.btn-pricing:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Cards */
.card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.card-header {
    background: white;
    border-bottom: 1px solid #eee;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero .lead {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: #6c757d;
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.bg-light-custom {
    background: var(--light-bg);
}

/* Feature cards */
.feature-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    height: 100%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid #eee;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.feature-icon i {
    font-size: 28px;
    color: white;
}

.feature-card h4 {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 15px;
}

.feature-card p {
    color: #6c757d;
    margin: 0;
}

/* Pricing cards */
.pricing-card {
    background: white;
    border-radius: 25px;
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    border: 3px solid var(--primary);
}

.pricing-card.featured::before {
    content: 'POPULAR';
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--primary);
    color: white;
    padding: 5px 40px;
    font-size: 12px;
    font-weight: 700;
    transform: rotate(45deg);
}

.pricing-card h3 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.pricing-card .price {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
}

.pricing-card .price span {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 400;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.pricing-card ul li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    color: #555;
}

.pricing-card ul li:last-child {
    border: none;
}

.pricing-card ul li i {
    color: var(--primary);
    margin-right: 10px;
}

.discount-badge {
    background: #ff6b6b;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

/* API code blocks */
.api-example {
    background: #1e1e1e;
    border-radius: 15px;
    padding: 25px;
    color: #d4d4d4;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    overflow-x: auto;
}

.api-example .keyword { color: #569cd6; }
.api-example .string { color: #ce9178; }
.api-example .comment { color: #6a9955; }

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--primary);
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Auth pages (login, registro, verify, pending) */
.auth-page {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 40px 0;
}

.auth-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.auth-card .card-header {
    background: white;
    border: none;
    border-radius: 20px 20px 0 0 !important;
    padding: 30px;
    text-align: center;
}

.auth-card .card-header h3 {
    color: var(--dark);
    font-weight: 700;
    margin: 0;
}

.auth-card .card-header i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.auth-card .card-body {
    padding: 30px;
}

.auth-card .form-control {
    border-radius: 10px;
    padding: 12px 15px;
    border: 2px solid #eee;
}

.auth-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(37, 211, 102, 0.25);
}

.auth-card .btn-primary {
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
}

.auth-card .form-label {
    font-weight: 500;
    color: #555;
}

.auth-card a {
    color: var(--primary);
}

/* Status icons */
.icon-success {
    font-size: 5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.icon-error {
    font-size: 5rem;
    color: #dc3545;
    margin-bottom: 20px;
}

.icon-warning {
    font-size: 5rem;
    color: #ffc107;
    margin-bottom: 20px;
}

/* Dashboard */
.sidebar {
    background: white;
    min-height: calc(100vh - 56px);
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
}

.sidebar .nav-link {
    color: #555;
    padding: 15px 20px;
    border-left: 3px solid transparent;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: #f8f9fa;
    color: var(--dark);
    border-left-color: var(--primary);
}

.sidebar .nav-link i {
    width: 25px;
}

.content {
    padding: 30px;
}

.stat-card {
    text-align: center;
    padding: 30px;
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
}

.stat-card p {
    color: #888;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero .lead {
        font-size: 1rem;
    }
    .pricing-card {
        margin-bottom: 30px;
    }
}
