/**
 * Estilos principales para Medios.click
 */

/* Variables globales */
:root {
    --primary-color: #4A6FDC;
    --secondary-color: #F9A826;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}

/* Estilos generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

a {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: #3a5ab8;
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: #3a5ab8;
    border-color: #3a5ab8;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Header y navbar */
header {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
}

/* Hero section */
.hero-section {
    padding: 5rem 0;
    background-color: #f5f7fa;
    background-image: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.hero-section p.lead {
    font-size: 1.25rem;
    color: #5d6778;
}

/* Features section */
.features-section .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.features-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.features-section i {
    color: var(--primary-color);
}

/* Platforms section */
.platform-logo {
    max-width: 150px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.platform-logo:hover {
    opacity: 1;
}

/* Testimonials section */
.testimonials-section .card {
    transition: transform 0.3s ease;
}

.testimonials-section .card:hover {
    transform: translateY(-5px);
}

.avatar {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pricing section */
.pricing-section .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-section .card.border-primary {
    border-width: 2px !important;
}

.pricing-section .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* FAQ section */
.faq-section .card {
    border: none;
    margin-bottom: 10px;
}

.faq-section .card-header {
    background-color: #f8f9fa;
    border: none;
    padding: 0;
}

.faq-section .btn-link {
    width: 100%;
    text-align: left;
    text-decoration: none;
    font-weight: 600;
    padding: 15px;
}

.faq-section .card-body {
    border-top: 1px solid #e9ecef;
}

/* CTA section */
.cta-section {
    background-color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
}

footer h5 {
    font-weight: 600;
    margin-bottom: 15px;
}

footer a {
    color: #fff;
    opacity: 0.8;
}

footer a:hover {
    color: #fff;
    opacity: 1;
}

/* Responsive */
@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p.lead {
        font-size: 1.1rem;
    }
    
    .cta-section .btn {
        display: block;
        margin: 10px auto;
    }
}

/* Dashboard styles */
.sidebar {
    background-color: var(--light-color);
    border-right: 1px solid #e3e6f0;
    min-height: calc(100vh - 60px);
}

.sidebar-item {
    padding: 10px 15px;
    border-bottom: 1px solid #e3e6f0;
}

.sidebar-item.active {
    background-color: var(--primary-color);
    color: white;
}

.sidebar-item.active a {
    color: white;
}

.sidebar-item i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

/* Tables */
.table-hover tbody tr:hover {
    background-color: rgba(74, 111, 220, 0.1);
}

.table th {
    font-weight: 600;
    vertical-align: middle;
}

/* Media card */
.media-card {
    transition: all 0.3s ease;
    border-radius: 5px;
    overflow: hidden;
}

.media-card:hover {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.media-card .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.media-card .price {
    font-size: 1.2rem;
    font-weight: 600;
}

.media-card .best-price {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

/* Forms */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 111, 220, 0.25);
}

/* Loaders */
.loader {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(74, 111, 220, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Badges */
.badge-primary {
    background-color: var(--primary-color);
}

.badge-secondary {
    background-color: var(--secondary-color);
}

/* Alerts */
.alert-primary {
    background-color: rgba(74, 111, 220, 0.1);
    border-color: rgba(74, 111, 220, 0.2);
    color: var(--primary-color);
}

/* Tooltips */
.tooltip-inner {
    background-color: var(--dark-color);
}

.bs-tooltip-auto[x-placement^=top] .arrow::before, 
.bs-tooltip-top .arrow::before {
    border-top-color: var(--dark-color);
}

/* Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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