/* ============================================
   SOLES RÁPIDOS — COMMON STYLES
   Theme Color: #1E3A8A
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700;14..32,800;14..32,900&display=swap');

:root {
    --primary: #1E3A8A;
    --primary-dark: #152A5E;
    --primary-light: #3B5EAC;
    --primary-soft: #E0E7FF;
    --primary-ultra-soft: #F4F7FC;
    --accent-gold: #F59E0B;
    --accent-red: #DC2626;
    --accent-green: #10B981;
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-soft: #F1F5F9;
    --text-dark: #0F172A;
    --text-body: #1E293B;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --border-light: #E2E8F0;
    --border-faint: rgba(30, 58, 138, 0.08);
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 30px rgba(30, 58, 138, 0.08);
    --shadow-lg: 0 20px 60px rgba(30, 58, 138, 0.10);
    --shadow-hover: 0 16px 48px rgba(30, 58, 138, 0.14);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--bg-light);
    color: var(--text-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

::selection {
    background: var(--primary);
    color: #fff;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 {
    font-size: clamp(2.6rem, 5.5vw, 4.8rem);
    font-weight: 900;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    font-weight: 700;
}

h4 {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    font-weight: 600;
}

p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.text-gradient-gold {
    background: linear-gradient(135deg, #F59E0B, #D97706, #F59E0B);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerGold 4s ease-in-out infinite;
}

@keyframes shimmerGold {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.section-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 4px 18px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.section-title {
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto 40px;
}

.section-padding {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 56px 0;
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: 0 4px 24px rgba(30, 58, 138, 0.20);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 36px rgba(30, 58, 138, 0.30);
}

.btn-outline {
    background: transparent;
    color: var(--text-body);
    border: 2px solid var(--border-light);
    padding: 12px 34px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

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

.btn-gold {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #fff;
    border: none;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: 0 4px 24px rgba(245, 158, 11, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.btn-gold:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 36px rgba(245, 158, 11, 0.35);
    color: #fff;
}

/* ============================================
   CARDS
   ============================================ */
.card-clean {
    background: var(--bg-white);
    border: 1px solid var(--border-faint);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    transition: var(--transition);
    height: 100%;
}

.card-clean:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-soft);
}

.card-clean .card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--primary-ultra-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
    transition: var(--transition);
}

.card-clean:hover .card-icon {
    background: var(--primary);
    color: #fff;
}

.card-clean h4 {
    font-size: 1.1rem;
    font-weight: 700;
}

.card-clean p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ============================================
   NAVBAR — Logo + APP Name layout
   ============================================ */
.navbar-peru {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 3px solid var(--primary);
    padding: 8px 0;
    transition: var(--transition);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
}

.navbar-peru .navbar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.navbar-peru .navbar-brand .brand-logo {
    height: 38px;
    width: auto;
    flex-shrink: 0;
}

.navbar-peru .navbar-brand .brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.navbar-peru .navbar-brand .brand-name .main {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
}

.navbar-peru .navbar-brand .brand-name .sub {
    font-size: 0.55rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.navbar-peru .nav-link {
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 8px;
    padding: 6px 16px !important;
    transition: var(--transition);
    font-size: 0.9rem;
}

.navbar-peru .nav-link:hover,
.navbar-peru .nav-link.active {
    color: var(--primary);
    background: var(--primary-soft);
}

.lang-toggle-peru {
    display: flex;
    gap: 4px;
    background: var(--bg-soft);
    padding: 3px;
    border-radius: 50px;
}

.lang-toggle-peru .lang-btn {
    border: none;
    background: transparent;
    padding: 4px 14px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.7rem;
    color: var(--text-light);
    transition: var(--transition);
    cursor: pointer;
}

.lang-toggle-peru .lang-btn.active {
    background: var(--primary);
    color: #fff;
}

.lang-toggle-peru .lang-btn:hover:not(.active) {
    color: var(--text-dark);
}

.navbar-toggler-peru {
    border: none;
    padding: 8px;
    background: transparent;
}

.navbar-toggler-peru:focus {
    box-shadow: none;
}

.navbar-toggler-peru .toggler-line {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text-dark);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.navbar-toggler-peru[aria-expanded="true"] .toggler-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler-peru[aria-expanded="true"] .toggler-line:nth-child(2) {
    opacity: 0;
}

.navbar-toggler-peru[aria-expanded="true"] .toggler-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 991px) {
    .navbar-peru .navbar-collapse {
        background: var(--bg-white);
        padding: 16px;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
        margin-top: 8px;
    }

    .navbar-peru .nav-link {
        padding: 10px 16px !important;
    }

    .lang-toggle-peru {
        margin-top: 12px;
        justify-content: center;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer-peru {
    background: var(--bg-white);
    border-top: 4px solid var(--primary);
    padding: 40px 0 20px;
}

.footer-peru .footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.footer-peru .footer-brand img {
    height: 30px;
    width: auto;
}

.footer-peru a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: var(--transition);
    text-decoration: none;
}

.footer-peru a:hover {
    color: var(--primary);
}

.footer-peru .footer-divider {
    border-color: var(--border-light);
    margin: 16px 0;
}

.footer-peru .footer-bottom {
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
}

.footer-peru .footer-muted {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* ============================================
   GLOBAL CENTERING FOR WEB VIEW
   ============================================ */
@media (min-width: 992px) {
    /* Ensure container is centered with proper max-width */
    .container {
        max-width: 960px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Section headings centering */
    .section-title,
    .section-subtitle {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    /* Cards and feature items centering */
    .card-clean,
    .step-item {
        text-align: center;
    }

    /* Button groups centering */
    .hero-actions,
    .text-center .btn {
        justify-content: center;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ============================================
   FOOTER — Responsive fix
   ============================================ */
@media (max-width: 768px) {
    .footer-peru .footer-brand {
        justify-content: center;
    }

    .footer-peru .text-md-end {
        text-align: center !important;
        margin-top: 8px;
    }

    .footer-peru .d-flex.gap-3 {
        flex-wrap: wrap;
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    .footer-peru .d-flex.gap-3 {
        flex-direction: column;
        align-items: center;
        gap: 4px !important;
    }

    .footer-peru .d-flex.gap-3 span {
        display: none;
    }

    .footer-peru .d-flex.gap-3 a,
    .footer-peru .d-flex.gap-3 .footer-muted {
        display: block;
        text-align: center;
        width: 100%;
    }
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-peru {
    background: linear-gradient(135deg, #1E3A8A 0%, #152A5E 100%);
    padding: 80px 0;
    text-align: center;
}

.cta-peru .cta-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.cta-peru h2 {
    color: #fff;
    margin-bottom: 16px;
    font-weight: 800;
    text-align: center;
}

.cta-peru h2 .gold {
    color: #F59E0B;
}

.cta-peru p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 28px;
    font-size: 1.1rem;
    text-align: center;
}

/* ============================================
   UTILITY
   ============================================ */
.bg-white-soft {
    background: var(--bg-white);
}

.border-faint {
    border: 1px solid var(--border-faint);
}

.gap-2 {
    gap: 8px;
}

.gap-3 {
    gap: 16px;
}

.gap-4 {
    gap: 24px;
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }

    .card-clean {
        padding: 24px 18px;
    }

    .btn-primary, .btn-outline, .btn-gold {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
}