/* ===== OFISIS Professional CSS with Bootstrap ===== */

/* Root Variables */
:root {
    --primary-color: #0D6EFD;
    --primary-dark: #0A58CA;
    --primary-light: #6EA8FE;
    --secondary-color: #6C757D;
    --success-color: #198754;
    --info-color: #0DCAF0;
    --warning-color: #FFC107;
    --danger-color: #DC3545;
    --light-color: #F8F9FA;
    --dark-color: #212529;
    
    /* Custom Colors */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-dark: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--font-secondary);
    font-weight: 800;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== BUTTONS ===== */
.btn {
    font-weight: 600;
    text-transform: none;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover:before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
}

.btn-lg {
    padding: 12px 32px;
    font-size: 1.1rem;
}

.rounded-pill {
    border-radius: 50px !important;
}

/* ===== CARDS ===== */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.card-header {
    border-bottom: none;
    font-weight: 600;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    z-index: 1050;
}

.header-top {
    font-size: 0.9rem;
}

.social-link {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.nav-logo h1 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-badge {
    font-size: 0.7rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover:before,
.navbar-nav .nav-link.active:before {
    width: 80%;
}

.dropdown-menu {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    animation: fadeInUp 0.3s ease;
}

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

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(rgba(30, 64, 175, 0.8), rgba(30, 64, 175, 0.8)), url('../img/ofisis_header_completo.png');
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    position: relative;
    height: 150px !important;
    min-height: 150px !important;
    max-height: 150px !important;
    display: flex;
    align-items: center;
}

.hero-background {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(120, 119, 198, 0.2) 0%, transparent 50%);
}

.hero-pattern {
    background-image: 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%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.hero-visual .card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.metric-card {
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: scale(1.05);
}

.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ===== SECTIONS ===== */
section {
    padding: var(--section-padding);
}

.section-badge {
    font-size: 0.9rem;
    font-weight: 600;
}

/* ===== TIMELINE ===== */
.timeline-container {
    position: relative;
}

.timeline-container:before {
    content: '';
    position: absolute;
    left: 40px;
    top: 40px;
    bottom: 40px;
    width: 2px;
    background: var(--gradient-primary);
}

.timeline-item {
    position: relative;
}

.timeline-year {
    position: relative;
    z-index: 2;
    font-size: 0.9rem;
}

/* ===== STATISTICS ===== */
.statistics {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.statistics:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stat-card {
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.05);
}

/* ===== MAP STYLES ===== */
.map-container {
    min-height: 600px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

#googleMap {
    border-radius: var(--border-radius);
}

/* ===== ANIMATIONS ===== */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.count-up {
    animation: countUp 0.8s ease-out;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .hero {
        margin-top: 80px !important;
        min-height: auto;
        padding: 60px 0;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .timeline-container:before {
        left: 20px;
    }
    
    .timeline-year {
        width: 60px;
        height: 60px;
        font-size: 0.8rem;
    }
    
    .timeline-content {
        margin-left: 1rem;
    }
}

@media (max-width: 576px) {
    .hero {
        text-align: center;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .btn-lg {
        padding: 10px 24px;
        font-size: 1rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.z-3 {
    z-index: 3;
}

.bg-primary-subtle {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

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

.border-0 {
    border: none !important;
}

.shadow-lg {
    box-shadow: var(--box-shadow-lg) !important;
}

.opacity-75 {
    opacity: 0.75 !important;
}

.opacity-90 {
    opacity: 0.9 !important;
}

/* ===== LOADING ANIMATIONS ===== */
.loading {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SKIP NAVIGATION ===== */
.skip-nav {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--dark-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
    border-radius: 4px;
}

.skip-nav:focus {
    top: 6px;
    color: white;
}

/* ===== CHART CONTAINER ===== */
.chart-container {
    position: relative;
    height: 200px;
    margin-top: 1rem;
}

#heroChart {
    max-width: 100%;
    height: auto;
}

/* ===== PROFESSIONAL ENHANCEMENTS ===== */
.cert-item {
    transition: all 0.3s ease;
}

.cert-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.contact-method:hover .method-icon {
    transform: scale(1.1);
}

.method-icon {
    transition: all 0.3s ease;
}

/* ===== MODERN GLASSMORPHISM EFFECTS ===== */
.glass-effect {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .btn,
    .social-link {
        display: none !important;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* ===== FORM VALIDATION STYLES ===== */
input.error,
textarea.error {
    border-color: var(--danger-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.field-error {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
    font-weight: 500;
}

/* ===== FORMSPREE INTEGRATION ===== */
.formspree-form {
    transition: all 0.3s ease;
}

.formspree-form:focus-within {
    transform: scale(1.01);
} 