/* One Sig Consultorías - Custom Styles */

/* General Styles */
:root {
    --primary-color: #0d3b66;
    --primary-dark: #0a2d4d;
    --secondary-color: #4caf50;
    --accent-color: #4caf50;
    --text-light: #ffffff;
    --text-dark: #333333;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

.display-4 {
    font-weight: 700;
}

.display-5 {
    font-weight: 600;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
    font-weight: 500;
    padding: 0.625rem 1.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-light {
    border-color: var(--text-light);
    color: var(--text-light);
    font-weight: 500;
    padding: 0.625rem 1.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-contacto {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-light);
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.btn-contacto:hover {
    background-color: #45a049;
    border-color: #45a049;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Header & Navigation */
header {
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

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

.navbar-brand .logo-container {
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: var(--bg-light);
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link.active {
    background-color: var(--primary-color);
    color: var(--text-light) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    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"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

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

.hero-cta .btn {
    min-width: 200px;
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    overflow: hidden;
}

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

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

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Advantage Icons */
.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(13, 59, 102, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.advantage-icon:hover {
    background-color: var(--primary-color);
    color: var(--text-light) !important;
    transform: scale(1.05);
}

/* Testimonial Cards */
.testimonial-card {
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

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

.testimonial-card .stars i {
    font-size: 0.875rem;
}

/* Contact Form */
.card {
    border-radius: 0.5rem;
    border: none;
    transition: all 0.3s ease;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 0.375rem;
    padding: 0.75rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 59, 102, 0.25);
}

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

.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

footer .social-links a {
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color) !important;
}

.certification-logos img {
    transition: transform 0.3s ease;
}

.certification-logos img:hover {
    transform: scale(1.1);
}

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

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

/* Smooth Scroll */
html {
    scroll-padding-top: 80px;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: 100vh;
        padding: 6rem 0 3rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 1rem;
        box-shadow: var(--shadow-md);
    }
    
    .btn-contacto {
        width: 100%;
        margin-top: 1rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-cta .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 5rem 0 2rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .service-card,
    .testimonial-card {
        margin-bottom: 1.5rem;
    }
    
    .advantage-icon {
        width: 60px;
        height: 60px;
    }
    
    .advantage-icon i {
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    footer .row {
        text-align: center;
    }
    
    footer .social-links {
        justify-content: center;
        margin-bottom: 2rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus States */
.btn:focus,
.nav-link:focus,
.form-control:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    header,
    footer,
    .btn,
    .hero-section {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .service-card,
    .testimonial-card {
        break-inside: avoid;
        margin-bottom: 1rem;
        border: 1px solid #ddd;
    }
}