/* Pagar Servicio Ya - Premium Fintech Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Brand Colors */
    --primary: #2d1b69;
    /* Deep Purple */
    --primary-dark: #1e124a;
    --primary-light: #4c3596;
    --accent: #dc2626;
    /* Vibrant Red */
    --accent-hover: #b91c1c;
    --orange: #ea580c;

    /* Neutral / Surface Colors */
    --background: #f8fafc;
    --surface: #ffffff;
    --surface-hover: #f1f5f9;

    /* Text Colors */
    --text-main: #0f172a;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;

    /* UI Elements */
    --border: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px rgba(45, 27, 105, 0.15);

    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.main-content {
    flex: 1;
}

/* Header & Nav */
.header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    background: var(--primary);
    color: var(--text-white);
    font-weight: 800;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 6px;
    letter-spacing: -0.5px;
}

.logo-text {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo-highlight {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-secondary);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.btn-nav {
    background: var(--primary);
    color: var(--text-white);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 13px;
}

.btn-nav:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
    background: var(--surface);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(45, 27, 105, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(45, 27, 105, 0.08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 24px;
}

.hero-title {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: var(--transition);
    min-width: 200px;
}

.hero-btn:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.hero-btn.primary {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-white);
}

.hero-btn.primary:hover {
    background: var(--primary-light);
}

.hero-btn-icon {
    font-size: 20px;
}

.hero-btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.hero-btn-title {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
}

.hero-btn-sub {
    font-size: 12px;
    opacity: 0.8;
    font-weight: 400;
}

/* Features / Trust */
.trust-bar {
    padding: 30px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
}

.trust-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 24px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.trust-item i {
    color: var(--success, #10b981);
    /* Default green or override */
    font-size: 16px;
}

/* Service Grid Styles */
.page-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 40px 0;
    margin-bottom: 32px;
}

.page-title {
    font-size: 32px;
    margin-bottom: 8px;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
}

.search-container {
    margin-top: 24px;
    position: relative;
    max-width: 500px;
}

.search-input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 2px solid var(--border);
    /* Slightly thicker border */
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--background);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(45, 27, 105, 0.1);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.tab-btn {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    background: var(--surface-hover);
    color: var(--text-main);
}

.tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.service-logo {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
    border-radius: var(--radius-sm);
    padding: 8px;
}

.service-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-name {
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    color: var(--text-main);
}

.service-pill {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: var(--background);
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Footer */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 60px 0 24px;
    /* More padding top */
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 13px;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-light);
}

.security-badges {
    display: flex;
    gap: 16px;
    font-size: 18px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-inner {
        height: 60px;
    }

    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-btn {
        width: 100%;
    }

    .trust-grid {
        justify-content: flex-start;
        gap: 16px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}