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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.hero-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.15) 1px, transparent 0);
    background-size: 40px 40px;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #dc2626;
    border-radius: 4px;
}

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

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-item.active .faq-toggle {
    color: #dc2626;
}

#site-header.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
    border-bottom: 1px solid #f3f4f6;
}

#whatsapp-float {
    animation: bounceIn 0.5s ease-out;
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

#whatsapp-float::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 9999px;
    background: rgba(34, 197, 94, 0.3);
    animation: pulse-ring 2s infinite;
    z-index: -1;
}

.stat-number {
    transition: color 0.3s ease;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

#back-to-top {
    animation: bounceIn 0.3s ease-out;
}

#search-overlay {
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#cookie-consent {
    box-shadow: 0 -4px 30px rgba(0,0,0,0.2);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    padding: 0 8px;
    color: #9ca3af;
}

.page-content {
    min-height: 400px;
}

.page-content h2 { font-size: 1.5rem; font-weight: 700; margin-top: 2rem; margin-bottom: 1rem; color: #111827; }
.page-content h3 { font-size: 1.25rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.75rem; color: #1f2937; }
.page-content p { margin-bottom: 1rem; line-height: 1.8; color: #4b5563; }
.page-content ul, .page-content ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.page-content li { margin-bottom: 0.5rem; color: #4b5563; }

@media print {
    #site-header, #mobile-menu, #whatsapp-float, #back-to-top, #cookie-consent, #scroll-progress, #page-preloader, footer .flex.gap-3, #search-overlay { display: none !important; }
    body { font-size: 12pt; color: #000; background: #fff; }
    a { color: #000; text-decoration: underline; }
    section { page-break-inside: avoid; }
}

@media (max-width: 480px) {
    .social-topbar { display: none; }
}
