/*
 * UNICAME - Sistema de Asistencia para Personas, Documentos y Animales
 * Estilos personalizados
 */

/* Variables de colores */
:root {
    --color-primary: #e74c3c;
    --color-secondary: #3498db;
    --color-accent: #f39c12;
    --color-success: #27ae60;
    --color-dark: #2c3e50;
    --color-light: #ecf0f1;
    --color-white: #ffffff;
    --font-main: 'Poppins', sans-serif;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: #f8f9fa;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Navbar */
.navbar-unicame {
    background: linear-gradient(135deg, var(--color-primary) 0%, #c0392b 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-unicame .navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-white) !important;
}

.navbar-unicame .navbar-brand span {
    color: var(--color-accent);
}

.navbar-unicame .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.navbar-unicame .nav-link:hover {
    background: rgba(255,255,255,0.2);
    color: var(--color-white) !important;
}

.navbar-unicame .btn-publicar {
    background: var(--color-accent);
    color: var(--color-white) !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 25px;
    font-weight: 600;
}

.navbar-unicame .btn-publicar:hover {
    background: #e67e22;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--color-dark) 0%, #34495e 100%);
    padding: 4rem 0;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="2"/></svg>');
    background-size: 100px 100px;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-title span {
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Stats Cards */
.stats-section {
    padding: 3rem 0;
    background: var(--color-white);
}

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 15px;
    background: var(--color-white);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.stat-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

/* Cards de publicaciones */
.publicaciones-section {
    padding: 3rem 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--color-dark);
}

.section-title p {
    color: #666;
}

.publicacion-card {
    background: var(--color-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.publicacion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.publicacion-card .card-img {
    height: 200px;
    background: linear-gradient(135deg, #ddd 0%, #eee 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.publicacion-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.publicacion-card .card-body {
    padding: 1.5rem;
}

.publicacion-card .tipo-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.publicacion-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.publicacion-card .info {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.publicacion-card .info i {
    width: 20px;
    color: var(--color-secondary);
}

.publicacion-card .fecha {
    font-size: 0.75rem;
    color: #999;
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
}

/* Footer */
.footer-unicame {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 3rem 0 1rem;
}

.footer-unicame h5 {
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-unicame a {
    color: rgba(255,255,255,0.8);
    display: block;
    padding: 0.3rem 0;
    transition: color 0.3s ease;
}

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

.footer-unicame .social-links {
    margin-top: 1rem;
}

.footer-unicame .social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.footer-unicame .social-links a:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
}

/* Botones */
.btn-unicame {
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-unicame-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #c0392b 100%);
    color: var(--color-white);
}

.btn-unicame-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
    color: var(--color-white);
}

.btn-unicame-secondary {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #2980b9 100%);
    color: var(--color-white);
}

.btn-unicame-outline {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}

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

/* Formularios */
.form-unicame .form-group {
    margin-bottom: 1.5rem;
}

.form-unicame label {
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.form-unicame .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-unicame .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
}

.form-unicame textarea.form-control {
    min-height: 120px;
}

/* Select personalizado */
.form-unicame select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Alertas personalizadas */
.alert-unicame {
    border: none;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.alert-unicame-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.alert-unicame-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.alert-unicame-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    color: #856404;
}

.alert-unicame-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .navbar-unicame .navbar-brand {
        font-size: 1.4rem;
    }
    
    .btn-unicame {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c0392b;
}

/* Imagen preview en formulario */
.image-preview {
    width: 100%;
    max-width: 300px;
    height: 200px;
    border: 2px dashed #ddd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    margin-top: 1rem;
    overflow: hidden;
}

.image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.image-preview .placeholder {
    color: #999;
    text-align: center;
}

.image-preview .placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    display: block;
}
