/* ============================================
   APP.CSS - Estilos específicos del frontend público
   (Navbar, Footer, Chat flotante, Landing)
   ============================================ */
/* ============================================
   APP.css
   Propósito: Estilos específicos del frontend público (landing, navbar, footer, chat flotante).
   Dependencias: components.css (debe cargarse antes).
   Contiene:
   - Navbar (barra superior con logo, enlaces, botones de autenticación)
   - Footer (pie de página con información de contacto, enlaces, redes sociales)
   - Chat flotante (mascota + modal de WhatsApp)
   - Landing (sección de bienvenida, tarjetas de beneficios, tipos de cambio)
   - Responsive para móviles
   ============================================ */
/* ===== CONTENEDOR COMÚN ===== */
.navbar .container,
.esurpro-footer-container {
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ===== NAVBAR ===== */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    padding: 10px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0 !important;
    margin: 0;
}

.navbar-brand img,
.nav-logo {
    height: 90px;
    width: auto;
    object-fit: contain;
    transition: height 0.3s ease;
}

.navbar-nav .nav-link {
    color: #2d3748 !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 0;
    margin: 0 15px;
    position: relative;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-yellow);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::before {
    width: 100%;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-yellow) !important;
}

/* Botones del navbar (usando clases de components.css) */
.navbar .btn-outline-primary,
.navbar .btn-primary,
.btn-auth-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn-auth-mobile {
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* ===== FOOTER ===== */
.esurpro-footer {
    background: linear-gradient(135deg, var(--success-green) 0%, var(--success-green-light) 100%) !important;
    color: #ffffff !important;
    padding: 40px 0 20px;
    margin-top: auto;
}

.esurpro-footer * {
    color: #ffffff !important;
}

.esurpro-footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
    text-align: left;
}

.esurpro-footer-section {
    flex: 1;
    min-width: 250px;
}

.esurpro-footer-heading {
    font-size: 1.4rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.esurpro-footer-hours p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.esurpro-footer-note {
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.peru-flag {
    display: inline-block;
    width: 20px;
    height: 15px;
    background: linear-gradient(to right, #D91023 33.3%, white 33.3%, white 66.6%, #D91023 66.6%);
    border: 1px solid rgba(255,255,255,0.3);
    margin-right: 5px;
}

.esurpro-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.esurpro-footer-links li {
    margin-bottom: 12px;
}

.esurpro-footer-links a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.esurpro-footer-links a:hover {
    color: var(--accent-yellow) !important;
    transform: translateX(5px);
}

.esurpro-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.esurpro-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.esurpro-social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.esurpro-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.esurpro-social-links a:hover {
    background: var(--accent-orange);
    transform: translateY(-3px);
}

.esurpro-footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    font-size: 0.9rem;
    padding-left: 20px;
    padding-right: 20px;
}

/* ===== CHAT FLOTANTE (Mascota + Modal) ===== */
.mascota-fixed {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    cursor: pointer;
}

.mascota-fixed img {
    height: 100px;
    transition: transform 0.3s;
}

.mascota-fixed img:hover {
    transform: scale(1.05);
}

.chat-modal {
    position: fixed;
    bottom: 130px;
    right: 20px;
    width: 350px;
    max-width: calc(100% - 40px);
    z-index: 1000;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.chat-modal.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-modal-content {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 15px;
    overflow: hidden;
}

.chat-modal-header {
    background: linear-gradient(135deg, var(--brand-purple), #3b82f6);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-modal-header h5 {
    margin: 0;
    font-size: 1.1rem;
}

.chat-modal-close {
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s;
}

.chat-modal-close:hover {
    transform: scale(1.1);
}

.chat-modal-body {
    padding: 20px;
    background: #f8f9fa;
}

.chat-message-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.chat-icon {
    font-size: 48px;
    color: var(--accent-orange);
    margin-bottom: 20px;
}

.chat-message-text {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
}

.chat-whatsapp {
    width: 100%;
    margin-top: 10px;
}

.chat-whatsapp hr {
    margin: 15px 0;
    border-color: #ddd;
}

.chat-whatsapp p {
    margin-bottom: 12px;
    color: #666;
}

/* Forzar blanco en el encabezado del chat */
.chat-modal-header h5,
.chat-modal-header .chat-modal-close {
    color: #ffffff !important;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    cursor: pointer;
    border: none;
}

.btn-whatsapp:hover {
    background: #128C7E;
    color: white;
    transform: translateY(-2px);
}

.btn-whatsapp:active {
    transform: translateY(0);
    background: #25D366;
}

/* ===== LANDING (Sección de inicio) ===== */
.esurpro-header {
    background: linear-gradient(135deg, var(--brand-purple) 0%, #3b82f6 100%);
    color: #ffffff;
    padding: 60px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(79, 70, 229, 0.2);
    margin-bottom: 30px;
}

.esurpro-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 700;
}

.esurpro-subtitle {
    font-size: 1.2rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.btn-esurpro-action {
    background-color: var(--accent-orange);
    color: white;
    border: none;
    padding: 14px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(247, 147, 26, 0.3);
}

.btn-esurpro-action:hover {
    background-color: var(--brand-purple);
    transform: translateY(-2px);
    color: #fff;
}

.esurpro-highlight {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #edf2f7;
}

.esurpro-highlight i {
    color: var(--accent-yellow);
    font-size: 1.5rem;
}

.esurpro-exchange-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.esurpro-rate-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--brand-purple);
}

/* ===== RESPONSIVE UNIFICADO ===== */
@media (min-width: 992px) {
    .auth-container {
        display: flex;
        align-items: center;
        gap: 10px;
    }
}

@media (max-width: 991px) {
    .auth-container {
        position: absolute;
        left: 50%;
        top: 0;
        height: 90px;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        gap: 8px;
        z-index: 99;
    }
    .navbar-toggler { margin-left: auto; }
    .navbar-collapse.show { max-height: 80vh; overflow-y: auto; }
    .navbar-nav { border-top: 1px solid #eee; margin-top: 10px; padding-top: 10px; text-align: center; width: 100%; }
    .navbar-nav .nav-link { display: inline-block; margin: 5px auto; font-size: 1.1rem; }
}

@media (max-width: 767px) {
    .auth-container { height: 70px; }
    .navbar { padding: 8px 0; }
    .navbar .container { padding-left: 10px; padding-right: 10px; }
    .navbar-brand img, .nav-logo { height: 70px; }
    .navbar-toggler { padding: 4px 8px; font-size: 1.5rem; }
    .esurpro-footer { padding: 25px 0 15px; }
    .esurpro-footer-container { flex-direction: column; gap: 20px; text-align: center; }
    .esurpro-footer-section { min-width: 100%; text-align: center; }
    .esurpro-footer-heading { justify-content: center; font-size: 1.1rem; }
    .esurpro-footer-hours p, .esurpro-footer-note, .esurpro-footer-links a, .esurpro-social-links { justify-content: center; }
    .esurpro-footer-contact { align-items: center; }
}

@media (max-width: 480px) {
    .auth-container { height: 65px; }
    .navbar-brand img, .nav-logo { height: 65px; }
    .btn-auth-mobile { padding: 5px 12px !important; font-size: 1.2rem !important; }
    .navbar-toggler { padding: 4px 6px; font-size: 1.2rem; }
    .navbar-nav .nav-link { padding: 8px 0; font-size: 1.1rem; }
    .btn-menu-mobile {
        font-size: 1.1rem !important;
        padding: 10px 15px !important;
        border-radius: 20px !important;
        margin-top: 5px;
    }
    .esurpro-footer-heading { font-size: 1rem; }
    .esurpro-social-links a { width: 32px; height: 32px; font-size: 0.85rem; }
}

/* Ajustes extra para el chat en móvil */
@media (max-width: 480px) {
    .mascota-fixed img {
        height: 55px;
    }
    .mascota-fixed {
        bottom: 15px;
        right: 15px;
    }
    .chat-modal {
        width: calc(100% - 30px);
        right: 15px;
        bottom: 100px;
    }
}