/* ===============================================
   UBIVET - GUÍA DE USO
   CSS Optimizado Mobile-First
   =============================================== */

/* ===== VARIABLES ===== */
:root {
    --vet-teal: #4ECDC4;
    --vet-teal-light: #7EDDD7;
    --vet-teal-dark: #2BB8B1;
    --step-number-size: 48px;
    --border-radius: 16px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ===== SMOOTH SCROLL ===== */
html {
    scroll-behavior: smooth;
}

/* ===== TAB BUTTONS (Mobile-First) ===== */
.tab-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem;
    background: white;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 80px;
    -webkit-tap-highlight-color: transparent;
}

.tab-button i {
    color: #9ca3af;
    transition: all 0.3s ease;
}

.tab-button span {
    color: #6b7280;
    transition: all 0.3s ease;
    font-weight: 600;
}

.tab-button:hover {
    background: #f9fafb;
    transform: translateY(-2px);
}

.tab-button.active {
    background: linear-gradient(135deg, var(--vet-teal) 0%, var(--vet-teal-dark) 100%);
    border-color: var(--vet-teal);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

.tab-button.active i,
.tab-button.active span {
    color: white;
}

/* Desktop tabs */
@media (min-width: 768px) {
    .tab-button {
        flex-direction: row;
        gap: 0.75rem;
        padding: 1rem 1.5rem;
    }

    .tab-button i {
        font-size: 1.25rem;
        margin-bottom: 0;
    }
}

/* ===== TAB CONTENT ===== */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.tab-content.active {
    display: block;
}

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

/* ===== STEP CARDS (Mobile-Optimized) ===== */
.step-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: white;
    border-radius: var(--border-radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 2px solid #f3f4f6;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--vet-teal) 0%, var(--vet-teal-dark) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--vet-teal);
    transform: translateY(-2px);
}

.step-card:hover::before {
    opacity: 1;
}

/* Highlighted step */
.step-card.highlighted {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.05) 0%, rgba(126, 221, 215, 0.05) 100%);
    border-color: var(--vet-teal);
}

.step-card.highlighted::before {
    opacity: 1;
    width: 6px;
}

/* Desktop step cards */
@media (min-width: 768px) {
    .step-card {
        flex-direction: row;
        gap: 1.5rem;
        padding: 2rem;
    }
}

/* ===== STEP NUMBER ===== */
.step-number {
    flex-shrink: 0;
    width: var(--step-number-size);
    height: var(--step-number-size);
    background: linear-gradient(135deg, var(--vet-teal) 0%, var(--vet-teal-dark) 100%);
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
    align-self: flex-start;
}

/* Larger step number on desktop */
@media (min-width: 768px) {
    .step-number {
        --step-number-size: 64px;
        font-size: 2rem;
    }
}

/* ===== STEP CONTENT ===== */
.step-content {
    flex: 1;
}

.step-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    line-height: 1.4;
}

.step-title i {
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .step-title {
        font-size: 1.375rem;
        margin-bottom: 1rem;
    }
}

.step-description {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .step-description {
        font-size: 1rem;
    }
}

/* ===== STEP TIPS ===== */
.step-tips {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-top: 1rem;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #374151;
}

.tip-item i {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 1rem;
}

@media (min-width: 768px) {
    .tip-item {
        font-size: 0.9375rem;
        padding: 1rem;
    }
}

/* ===== FEATURE HIGHLIGHT ===== */
.feature-highlight {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--vet-teal);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.15);
    transform: translateX(4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--vet-teal) 0%, var(--vet-teal-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.25rem;
    color: white;
}

@media (min-width: 640px) {
    .feature-highlight {
        gap: 1rem;
    }
}

/* ===== SCREENSHOT PLACEHOLDER ===== */
.step-screenshot {
    margin-top: 1rem;
    border-radius: 12px;
    overflow: hidden;
}

.screenshot-placeholder {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* ===== FAQ SECTION ===== */
.faq-item {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--vet-teal);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.faq-question:hover {
    background: #f9fafb;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--vet-teal);
    flex-shrink: 0;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #f9fafb;
}

.faq-answer.active {
    max-height: 500px;
    padding: 1.25rem;
    border-top: 1px solid #e5e7eb;
}

.faq-answer p {
    color: #4b5563;
    line-height: 1.7;
    font-size: 0.9375rem;
}

@media (min-width: 768px) {
    .faq-question {
        padding: 1.5rem;
        font-size: 1.0625rem;
    }

    .faq-answer.active {
        padding: 1.5rem;
    }

    .faq-answer p {
        font-size: 1rem;
    }
}

/* ===== TOUCH OPTIMIZATION ===== */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets on mobile */
    .tab-button {
        min-height: 90px;
    }

    .faq-question {
        padding: 1.5rem 1.25rem;
    }

    /* Remove hover effects on touch devices */
    .step-card:hover {
        transform: none;
    }

    .feature-item:hover {
        transform: none;
    }
}

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

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

/* Focus styles for keyboard navigation */
.tab-button:focus-visible,
.faq-question:focus-visible {
    outline: 3px solid var(--vet-teal);
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .tab-button {
        display: none;
    }

    .tab-content {
        display: block !important;
    }

    .step-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #d1d5db;
    }
}
