/**
 * Doc Solutions - Estilos Minimalistas
 * 
 * Diseño limpio y profesional
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --primary: #1a1a1a;
    --primary-dark: #000000;
    --primary-light: #f8f8f8;
    --secondary: #666666;
    --accent: #0066cc;
    --dark: #0a0a0a;
    --gray-900: #1a1a1a;
    --gray-700: #444444;
    --gray-500: #888888;
    --gray-300: #d4d4d4;
    --gray-100: #f5f5f5;
    --white: #ffffff;
    --success: #22c55e;
    --warning: #eab308;
    --danger: #ef4444;
    --gradient-primary: linear-gradient(135deg, #1a1a1a 0%, #444444 100%);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 8px 32px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gray-700);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 15px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

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

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    font-weight: 500;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius);
    transition: all 0.15s ease;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--dark);
    border-color: var(--dark);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--gray-700);
    border-color: var(--gray-700);
}

.btn-outline-primary {
    color: var(--dark);
    border-color: var(--gray-300);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
    color: var(--dark);
}

.btn-outline-dark {
    color: var(--dark);
    border-color: var(--gray-300);
}

.btn-outline-dark:hover {
    background: var(--dark);
    border-color: var(--dark);
    color: var(--white);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    letter-spacing: -0.02em;
}

.navbar .nav-link {
    color: var(--gray-500);
    font-weight: 450;
    padding: 0.5rem 0.875rem;
    font-size: 0.9rem;
    transition: color 0.15s ease;
}

.navbar .nav-link:hover {
    color: var(--dark);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    position: relative;
}

.hero-title {
    letter-spacing: -0.03em;
}

.min-vh-75 {
    min-height: 75vh;
}

.ls-wide {
    letter-spacing: 0.1em;
}

/* Hero Image Container */
.hero-image-container {
    position: relative;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: 
        0 0 0 1px rgba(0, 0, 0, 0.03),
        0 20px 50px -10px rgba(0, 0, 0, 0.1);
}

.hero-image-container::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: linear-gradient(135deg, var(--gray-200) 0%, transparent 50%);
    border-radius: calc(var(--radius-xl) + 8px);
    z-index: -1;
    opacity: 0.5;
}

.hero-main-image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
}

/* Avatar Stack */
.avatar-stack {
    display: flex;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.75rem;
    border: 2px solid var(--white);
    margin-left: -8px;
    background: var(--gray-300);
    color: var(--gray-700);
}

.avatar:first-child {
    margin-left: 0;
}

/* Badge minimalista */
.badge {
    font-weight: 500;
    letter-spacing: 0.02em;
}

.bg-primary.bg-opacity-10 {
    background-color: var(--gray-100) !important;
}

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

/* Overrides para texto primary en hero */
h1 .text-primary,
h2 .text-primary {
    color: var(--dark) !important;
}

/* ============================================
   SECTIONS GENERAL
   ============================================ */
section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

section .container {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.display-4 {
    font-size: 2.5rem;
    font-weight: 600;
}

.display-6 {
    font-size: 1.75rem;
    font-weight: 600;
}

.lead {
    font-size: 1.05rem;
    color: var(--gray-500);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.service-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: border-color 0.2s ease;
}

.service-card:hover {
    border-color: var(--gray-300);
}

.service-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    background: var(--gray-100) !important;
    color: var(--gray-700) !important;
}

.service-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.service-card p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ============================================
   CLIENTS SECTION
   ============================================ */
.bg-light {
    background-color: var(--gray-100) !important;
}

.client-card {
    background: var(--white);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.client-card:hover {
    border-color: var(--gray-200);
}

.client-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto;
    transition: all 0.2s ease;
}

.client-card:hover .client-icon {
    background: var(--dark);
    color: var(--white);
}

.client-card h3 {
    font-size: 0.95rem;
}

.client-card p {
    font-size: 0.85rem;
}

/* ============================================
   DMAIC PROCESS - Timeline Intercalado
   ============================================ */
.dmaic-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* Línea central */
.dmaic-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
    transform: translateX(-50%);
}

.dmaic-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
}

.dmaic-item:last-child {
    margin-bottom: 0;
}

/* Alternar lados */
.dmaic-item:nth-child(odd) {
    flex-direction: row;
    padding-right: calc(50% + 40px);
}

.dmaic-item:nth-child(even) {
    flex-direction: row-reverse;
    padding-left: calc(50% + 40px);
}

.dmaic-item:nth-child(odd) .dmaic-content {
    text-align: right;
}

.dmaic-item:nth-child(even) .dmaic-content {
    text-align: left;
}

/* Marcador central */
.dmaic-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.dmaic-marker i {
    width: 56px;
    height: 56px;
    background: var(--dark);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.dmaic-item:hover .dmaic-marker i {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Contenido */
.dmaic-content {
    flex: 1;
    padding: 0 1.5rem;
}

.dmaic-step-number {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-400);
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.dmaic-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.dmaic-desc {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.5;
    margin: 0;
}

/* Responsive DMAIC */
@media (max-width: 767.98px) {
    .dmaic-timeline::before {
        left: 28px;
    }
    
    .dmaic-item,
    .dmaic-item:nth-child(odd),
    .dmaic-item:nth-child(even) {
        flex-direction: row;
        padding-left: 80px;
        padding-right: 0;
    }
    
    .dmaic-item:nth-child(odd) .dmaic-content,
    .dmaic-item:nth-child(even) .dmaic-content {
        text-align: left;
    }
    
    .dmaic-marker {
        left: 28px;
    }
    
    .dmaic-marker i {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }
    
    .dmaic-content {
        padding: 0;
    }
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-card {
    background: var(--white);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.testimonial-card:hover {
    border-color: var(--gray-200);
}

.testimonial-stars {
    font-size: 0.8rem;
}

.testimonial-card p {
    font-size: 0.95rem;
    font-style: italic;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--gray-200) !important;
    color: var(--gray-700) !important;
}

.testimonial-card cite {
    font-size: 0.9rem;
}

.not-italic {
    font-style: normal;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.accordion-item {
    border: none;
    background: var(--white);
    margin-bottom: 0.5rem;
    border-radius: var(--radius) !important;
    overflow: hidden;
    border: 1px solid var(--gray-100);
}

.accordion-button {
    font-weight: 500;
    color: var(--dark);
    padding: 1rem 1.25rem;
    background: var(--white);
    font-size: 0.95rem;
}

.accordion-button:not(.collapsed) {
    background: var(--gray-100);
    color: var(--dark);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-button::after {
    background-size: 0.875rem;
}

.accordion-body {
    padding: 0 1.25rem 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-info-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 0.875rem 1rem;
    transition: border-color 0.15s ease;
}

.contact-info-card:hover {
    border-color: var(--gray-300);
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: var(--gray-100) !important;
    color: var(--gray-600) !important;
}

/* Form Styles */
.form-control {
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 0.65rem 0.875rem;
    transition: all 0.15s ease;
    font-size: 0.9rem;
    background-color: var(--white);
}

.form-control:focus {
    border-color: var(--dark);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
    background-color: var(--white);
}

.form-control::placeholder {
    color: var(--gray-400);
}

.form-control-lg {
    padding: 0.75rem 1rem;
    border-width: 1px;
}

.form-label {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
}

/* Rounded card for contact form */
.rounded-4 {
    border-radius: var(--radius-lg) !important;
}

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark);
    padding: 2.5rem 0 1.5rem;
}

.footer a:hover {
    color: var(--gray-300) !important;
}

.hover-primary:hover {
    color: var(--gray-300) !important;
}

/* ============================================
   WHATSAPP FLOAT BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 2px 12px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: transform 0.15s ease;
}

.whatsapp-float:hover {
    transform: scale(1.05);
    color: var(--white);
}

/* ============================================
   TOAST CUSTOMIZATION
   ============================================ */
.toast {
    border-radius: var(--radius);
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    padding: 2rem;
}

.login-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.login-logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* ============================================
   UTILITIES
   ============================================ */
.bg-gradient-primary {
    background: var(--dark);
}

.text-gradient {
    color: var(--dark);
}

/* Remove background opacity utilities that add color */
.bg-opacity-10 {
    --bs-bg-opacity: 0.05;
}

/* Override Bootstrap colors for minimalism */
.bg-primary.bg-opacity-10,
.bg-info.bg-opacity-10,
.bg-success.bg-opacity-10,
.bg-warning.bg-opacity-10,
.bg-danger.bg-opacity-10,
.bg-secondary.bg-opacity-10 {
    background-color: var(--gray-100) !important;
}

.text-info,
.text-success,
.text-warning,
.text-danger,
.text-secondary {
    color: var(--gray-600) !important;
}

/* Keep warning color for stars */
.text-warning.bi-star-fill,
i.text-warning {
    color: #eab308 !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991.98px) {
    .min-vh-75 {
        min-height: auto;
    }
    
    .timeline {
        padding-left: 40px;
    }
    
    .timeline::before {
        left: 14px;
    }
    
    .timeline-marker {
        left: -40px;
        width: 32px;
        height: 32px;
    }
    
    section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .hero-image-container {
        padding: 0.75rem;
    }
    
    .hero-image-container::before {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .display-4 {
        font-size: 1.75rem;
    }
    
    .display-6 {
        font-size: 1.35rem;
    }
    
    .btn-lg {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .service-card,
    .client-card,
    .testimonial-card {
        padding: 1.25rem;
    }
    
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
        font-size: 1.125rem;
    }
    
    section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}

/* ============================================
   ADMIN SPECIFIC OVERRIDES
   ============================================ */
.table-hover tbody tr:hover {
    background-color: var(--gray-100);
}

.badge {
    font-weight: 500;
}

/* Card hover for admin stats */
.card.stats-card {
    border-radius: var(--radius-lg);
}

/* Data table styles */
.table th {
    font-weight: 600;
    color: var(--gray-700);
    border-bottom-width: 1px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.table td {
    vertical-align: middle;
}

/* Action buttons */
.btn-group-sm > .btn {
    padding: 0.375rem 0.625rem;
}

/* Copy button styling */
.btn-copy {
    opacity: 0.6;
    transition: opacity 0.15s ease;
}

.btn-copy:hover {
    opacity: 1;
}
