/* Fuentes Poppins locales */
@font-face {
    font-family: 'Poppins';
    src: url('Poppins-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('Poppins-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Variables CSS */
:root {
    --color-primary: #d82d16;
    --color-primary-hover: #c22913;
    --color-bg: #f8f9fa;
    --color-text: #212529;
    --color-text-muted: #6c757d;
    --shadow-sm: 0 .125rem .25rem rgba(0,0,0,.075);
    --shadow-hover: 0 .5rem 1rem rgba(0,0,0,.15);
}

/* Configuración global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

/* Header */
.navbar-brand img {
    max-width: 150px;
    height: auto;
}

.navbar {
    background-color: white !important;
    box-shadow: var(--shadow-sm);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--color-text) !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--color-primary) !important;
}

/* Botones CTA */
.btn-cta {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-cta:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Cards */
.app-card, .category-card {
    background: white;
    border: none;
    border-radius: 1rem !important;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.app-card:hover, .category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.app-card .card-body {
    padding: 2rem;
    text-align: center;
}

.app-card .card-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.app-card .card-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.category-card .card-body {
    padding: 2.5rem;
    text-align: center;
}

.category-card .card-icon {
    font-size: 4rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.category-card .card-title {
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Secciones */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-text);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* App a medida */
.custom-app {
    background: white;
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

/* Footer */
.footer {
    background-color: var(--color-text);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin: 0;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .app-card .card-body,
    .category-card .card-body {
        padding: 1.5rem;
    }
    
    .custom-app {
        padding: 2rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Utilidades adicionales */
.text-primary-custom {
    color: var(--color-primary) !important;
}

.bg-light-custom {
    background-color: var(--color-bg) !important;
}