/* =========================================================
   COMPONENTES - CREWAI DARK THEME
   ========================================================= */

/* ===================================
   FORMULARIOS
   =================================== */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: var(--weight-semibold);
    color: var(--text-white);
    font-size: var(--font-caption);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--font-body-m);
    font-family: 'Inter', sans-serif;
    transition: var(--transition-base);
    background: var(--bg-card);
    color: var(--text-white);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 94, 58, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.input-error {
    border-color: var(--error-color);
}

.input-success {
    border-color: var(--success-color);
}

/* ===================================
   PRICING CARDS
   =================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: var(--spacing-md);
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 24px rgba(255, 94, 58, 0.2);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    border-width: 2px;
    transform: scale(1.05);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255, 94, 58, 0.05) 100%);
}

.pricing-badge {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: var(--font-caption);
    font-weight: var(--weight-semibold);
    display: inline-block;
    margin-bottom: 1rem;
}

.pricing-title {
    font-size: var(--font-h3);
    margin-bottom: 1rem;
    color: var(--text-white);
}

.pricing-price {
    font-size: 3rem;
    font-weight: var(--weight-extrabold);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.pricing-price span {
    font-size: var(--font-body-m);
    color: var(--text-light);
    font-weight: var(--weight-regular);
}

.pricing-features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: "✓";
    color: var(--success-color);
    font-weight: var(--weight-bold);
    margin-right: 0.75rem;
}

/* ===================================
   CASE STUDIES / TESTIMONIALS
   =================================== */
.case-grid {
    display: grid;
    gap: 2rem;
    margin-top: var(--spacing-md);
}

.case-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(255, 94, 58, 0.15);
    border-color: var(--primary-color);
}

.case-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: var(--bg-light);
}

.case-content {
    padding: 2rem;
}

.case-title {
    font-size: var(--font-h4);
    margin-bottom: 1rem;
    color: var(--text-white);
}

.case-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--bg-dark);
    border-radius: var(--radius-md);
}

.stat-value {
    font-size: var(--font-h3);
    font-weight: var(--weight-extrabold);
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: var(--font-caption);
    color: var(--text-light);
}

/* ===================================
   TEAM / ABOUT SECTION
   =================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: var(--spacing-md);
}

.team-member {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.team-member:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.team-name {
    font-size: var(--font-h4);
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.team-role {
    color: var(--primary-color);
    font-weight: var(--weight-semibold);
    margin-bottom: 1rem;
}

.team-bio {
    color: var(--text-light);
    font-size: var(--font-body-m);
}

/* ===================================
   BLOG COMPONENTS
   =================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: var(--spacing-md);
}

.blog-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(255, 94, 58, 0.2);
    border-color: var(--primary-color);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-light);
}

.blog-content {
    padding: 1.5rem;
}

/* Blog Filters */
.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-light);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 0.95rem;
    font-weight: var(--weight-medium);
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(255, 94, 58, 0.3);
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.875rem;
    }
}

.blog-category {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: var(--font-caption);
    font-weight: var(--weight-semibold);
    margin-bottom: 1rem;
}

.blog-title {
    font-size: var(--font-h4);
    margin-bottom: 1rem;
    color: var(--text-white);
}

.blog-title a {
    color: var(--text-white);
}

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

.blog-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: var(--font-caption);
}

/* Blog Filters */
.blog-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
}

.filter-btn {
    padding: 0.625rem 1.25rem;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-white);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
    font-weight: var(--weight-medium);
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

/* ===================================
   TABS
   =================================== */
.tabs {
    margin-bottom: var(--spacing-md);
}

.tab-buttons {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-weight: var(--weight-semibold);
    cursor: pointer;
    transition: var(--transition-base);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ===================================
   PROGRESS BARS
   =================================== */
.progress {
    background: var(--bg-light);
    border-radius: var(--radius-full);
    height: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-orange);
    border-radius: var(--radius-full);
    transition: width 1s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.5rem;
    color: var(--text-white);
    font-size: 0.75rem;
    font-weight: var(--weight-bold);
}

/* ===================================
   BADGES Y PILLS
   =================================== */
.badge-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    color: var(--text-white);
    border-radius: var(--radius-full);
    font-size: var(--font-caption);
    border: 1px solid var(--border-color);
}

/* ===================================
   ALERTS Y MENSAJES
   =================================== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-success {
    background: rgba(162, 255, 134, 0.1);
    border-color: var(--success-color);
    color: var(--success-color);
}

.alert-error {
    background: rgba(255, 77, 77, 0.1);
    border-color: var(--error-color);
    color: var(--error-color);
}

.alert-info {
    background: rgba(255, 94, 58, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ===================================
   ACCORDION
   =================================== */
.accordion {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-white);
    font-weight: var(--weight-semibold);
}

.accordion-header:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.accordion-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--text-light);
}

.accordion-content.active {
    padding: 1.5rem;
    max-height: 500px;
}

/* ===================================
   MODAL / DIALOG
   =================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: var(--font-h3);
    color: var(--text-white);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 2rem;
    color: var(--text-light);
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

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

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ===================================
   UNIFIED DESIGN SYSTEM (Mejoras Visuales)
   =================================== */

/* Unified Hero - Para unificar cabeceras de sección */
.hero-unified {
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.hero-unified::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 94, 58, 0.08) 0%, rgba(0,0,0,0) 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-unified-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-unified h1 {
    font-size: var(--font-h1);
    line-height: var(--lh-tight);
    margin-bottom: var(--spacing-md);
    color: var(--text-white);
    letter-spacing: -0.02em;
}

.hero-unified .lead {
    font-size: var(--font-body-l);
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    line-height: var(--lh-relaxed);
    max-width: 700px;
}

/* Unified Badge - Etiquetas consistentes */
.badge-unified {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 94, 58, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    font-size: var(--font-label);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--spacing-sm);
    border: 1px solid rgba(255, 94, 58, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Unified Card - Tarjetas estándar */
.card-unified {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.card-unified:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.card-unified::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.card-unified:hover::after {
    opacity: 1;
}

.card-unified-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.card-unified-icon {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.05);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.card-unified-number {
    font-family: 'Inter', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.card-unified h3 {
    font-size: var(--font-h3);
    margin-bottom: 1rem;
    color: var(--text-white);
    line-height: 1.3;
}

.card-unified p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-unified-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.card-unified-list li {
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.card-unified-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.card-unified-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

/* Grid Layouts */
.grid-unified-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: var(--spacing-lg);
}

.grid-unified-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    margin-top: var(--spacing-lg);
}

@media (max-width: 768px) {
    .hero-unified {
        padding: var(--spacing-lg) 0;
    }
    
    .hero-unified h1 {
        font-size: 2.5rem;
    }
    
    .grid-unified-3, .grid-unified-2 {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   PROCESS TIMELINE (Unified)
   =================================== */
.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 3rem auto 0;
}

.process-step {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem 3rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: var(--primary-color);
    transition: height 0.3s ease;
}

.process-step:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 94, 58, 0.2);
}

.process-step:hover::before {
    height: 100%;
}

.process-step:nth-child(1) { animation-delay: 0.1s; }
.process-step:nth-child(2) { animation-delay: 0.2s; }
.process-step:nth-child(3) { animation-delay: 0.3s; }
.process-step:nth-child(4) { animation-delay: 0.4s; }
.process-step:nth-child(5) { animation-delay: 0.5s; }

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

.process-step:last-child {
    margin-bottom: 0;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: var(--primary-color);
    border-radius: 50%;
    font-size: 1.75rem;
    font-weight: var(--weight-extrabold);
    color: var(--text-white);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(255, 94, 58, 0.3);
    transition: all 0.3s ease;
}

.process-step:hover .step-number {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(255, 94, 58, 0.5);
}

.step-title {
    color: var(--text-white);
    font-size: 1.5rem;
    font-weight: var(--weight-bold);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.process-step:hover .step-title {
    color: var(--primary-color);
}

.step-description {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
}

@media (max-width: 768px) {
    .process-timeline {
        gap: 1.5rem;
    }
    
    .process-step {
        padding: 2rem 1.75rem;
    }
    
    .step-number {
        width: 3rem;
        height: 3rem;
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .step-title {
        font-size: 1.2rem;
    }
    
    .step-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}
