/**
 * Components - Componentes reutilizables de UI
 */

/* Apple-style Buttons with Liquid Glass Effects */
.btn-primary {
    background: linear-gradient(135deg, #1d1d1f 0%, #2d2d2f 100%);
    color: white;
    border: none;
    padding: 18px 48px;
    border-radius: 980px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.008em;
    cursor: pointer;
    transition: all 0.3s var(--apple-ease-out);
    font-family: 'Inter', sans-serif;
    min-width: 180px;
    box-shadow: 
        0 4px 16px rgba(29, 29, 31, 0.2),
        0 1px 2px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-primary::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.6s var(--apple-ease-out);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2d2d2f 0%, #424245 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 8px 24px rgba(29, 29, 31, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

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

.btn-primary:active {
    animation: buttonPress 0.15s var(--apple-ease-out);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #1d1d1f;
    border: 1.5px solid rgba(210, 210, 215, 0.3);
    padding: 16.5px 46.5px;
    border-radius: 980px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.008em;
    cursor: pointer;
    transition: all 0.3s var(--apple-ease-out);
    font-family: 'Inter', sans-serif;
    min-width: 200px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(29, 29, 31, 0.1), transparent);
    transition: left 0.5s var(--apple-ease-out);
}

.btn-secondary:hover {
    border-color: rgba(29, 29, 31, 0.4);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

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

.feature-btn {
    background: #1d1d1f;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
}

.feature-btn:hover {
    background: #424245;
    transform: translateY(-2px);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.feature-btn:hover .btn-arrow {
    transform: translateX(4px);
}

.benefits-cta {
    background: #1d1d1f;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
}

.benefits-cta:hover {
    background: #424245;
    transform: translateY(-2px);
}

.respaldame-button {
    background: #1d1d1f;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
    box-shadow: 0 4px 12px rgba(29, 29, 31, 0.4);
}

.respaldame-button:hover {
    background: #FF6B35;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.5);
}

/* Apple-style Cards with Glass Morphism */
.feature-block {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    padding: 60px;
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 1px 2px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.6s var(--apple-spring);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s var(--apple-ease-out);
    pointer-events: none;
}

.feature-block:hover {
    transform: translateY(-8px) scale(1.01);
    backdrop-filter: blur(25px) saturate(190%);
    -webkit-backdrop-filter: blur(25px) saturate(190%);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.feature-block:hover::before {
    opacity: 1;
}

.feature-block-orange {
    background: linear-gradient(135deg, 
        rgba(255, 247, 237, 0.8) 0%, 
        rgba(255, 237, 213, 0.9) 100%);
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.feature-block-blue {
    background: linear-gradient(135deg, 
        rgba(239, 246, 255, 0.8) 0%, 
        rgba(219, 234, 254, 0.9) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.feature-block-green {
    background: linear-gradient(135deg, 
        rgba(240, 253, 244, 0.8) 0%, 
        rgba(220, 252, 231, 0.9) 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.benefit-item {
    position: relative;
    padding: 40px 32px 32px 32px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(255, 255, 255, 0.8) 100%);
    border-radius: 20px;
    border: 1px solid rgba(241, 245, 249, 0.3);
    transition: all 0.4s var(--apple-ease-out);
    cursor: pointer;
    overflow: hidden;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.benefit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, 
        rgba(255, 107, 53, 0.1) 0%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.4s var(--apple-ease-out);
    pointer-events: none;
}

.benefit-item:hover {
    transform: translateY(-6px) scale(1.01);
    backdrop-filter: blur(25px) saturate(190%);
    -webkit-backdrop-filter: blur(25px) saturate(190%);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(255, 107, 53, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 107, 53, 0.2);
}

.benefit-item:hover::before {
    opacity: 1;
}

.respaldame-step {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(15px) saturate(160%);
    -webkit-backdrop-filter: blur(15px) saturate(160%);
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s var(--apple-ease-out);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.respaldame-step:hover {
    transform: translateY(-3px) scale(1.01);
    backdrop-filter: blur(22px) saturate(170%);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.12);
    border-color: rgba(255, 107, 53, 0.3);
}

/* Badges */
.feature-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.benefits-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #FF6B35;
    text-transform: uppercase;
}

.step-number {
    width: 48px;
    height: 48px;
    background: #FF6B35;
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    flex-shrink: 0;
}

/* Accordions */
.integration-feature {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(15px) saturate(160%);
    -webkit-backdrop-filter: blur(15px) saturate(160%);
    transition: all 0.4s var(--apple-ease-out);
    overflow: hidden;
    position: relative;
}

.integration-feature:hover {
    border-color: rgba(255, 107, 53, 0.25);
    backdrop-filter: blur(20px) saturate(170%);
    -webkit-backdrop-filter: blur(20px) saturate(170%);
    transform: translateY(-1px) scale(1.005);
    box-shadow: 0 6px 18px rgba(255, 107, 53, 0.1);
}

.integration-feature.active {
    border-color: #FF6B35;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.15);
}

.feature-header {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feature-header:hover {
    background-color: #fafafa;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.feature-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-toggle:hover {
    background-color: #f3f4f6;
}

.integration-feature.active .feature-toggle svg {
    transform: rotate(180deg);
}

.feature-content {
    padding: 0 24px 24px 80px;
    color: #6e6e73;
    font-size: 0.95rem;
    line-height: 1.6;
    animation: slideDown 0.3s ease;
}

.feature-content p {
    margin: 0;
}

/* Icons */
.benefit-icon {
    margin-bottom: 24px;
    opacity: 0;
    transform: scale(0.8);
    animation: iconAppear 0.8s ease forwards;
}

.benefit-arrow {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 18px;
    color: #FF6B35;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.benefit-item:hover .benefit-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Important Messages */
.respaldame-important {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 24px;
    margin: 0 auto 40px auto;
    max-width: 800px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #c2410c;
    text-align: center;
}

.respaldame-important strong {
    font-weight: 600;
    color: #9a3412;
}

/* Footer CTA Button */
.footer-cta-btn {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 980px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

.footer-cta-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.6s;
}

.footer-cta-btn:hover::before {
    left: 100%;
}

.footer-cta-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.4);
}

.footer-cta-btn .btn-arrow {
    font-size: 16px;
    font-weight: 700;
}

.footer-cta-btn:hover .btn-arrow {
    transform: translateX(4px);
}
