﻿
:root {
    --tw-border-opacity: 1;
    --emerald: #10b981;
    --emerald-dark: #059669;
    --emerald-light: #d1fae5;
    --emerald-50: rgb(236 253 245 / var(--tw-bg-opacity, 1));
    --emerald-200: rgb(187 247 208 / var(--tw-border-opacity, 1));
    --emerald-500: rgb(16 185 129 / var(--tw-bg-opacity, 1));
    --bg-green: rgb(240 253 244 / var(--tw-bg-opacity, 1));
    --bg-green-200: rgb(187 247 208 / var(--tw-border-opacity, 1));
    --bg-green-500: rgb(34 197 94 / var(--tw-bg-opacity, 1));
}

.bg-emerald {
    background-color: var(--emerald);
}

.text-emerald {
    color: var(--emerald);
}

.btn-emerald {
    background-color: var(--emerald);
    color: white;
    border: none;
}

.btn-sent-success {
    background-color: var(--emerald-500);
}

.btn-emerald:hover {
    background-color: var(--emerald-dark);
    color: white;
}

/* Estilos de Pasos */
.step-card-active {
    background: white;
    border-radius: 1.25rem;
    transition: all 0.4s ease;
}

.step-icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(209 250 229 / var(--tw-bg-opacity, 1));
}

.step-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    opacity: 0.4;
    transition: all 0.3s ease;
}

    .step-item.active {
        opacity: 1;
        background: var(--emerald-50);
        border-color: var(--emerald-200);
        transform: translateX(10px);
    }

    .step-item.completed {
        opacity: 0.8;
        background: var(--bg-green);
        border-color: var(--bg-green-200);
    }

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #cbd5e1;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.active .step-number {
    background: var(--emerald);
}

.completed .step-number {
    background: var(--bg-green-500);
}

/* Phone Mockup */
.phone-mockup {
    width: 320px;
    height: 603px;
    background: #1e293b;
    border-radius: 3rem;
    padding: 12px;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.3);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 2.2rem;
    overflow: hidden;
    position: relative;
}

/* Chat Bubbles */
.message-bubble {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-bottom: 10px;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.received {
    background: #f1f5f9;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.sent {
    background: var(--emerald-500);
    color: white;
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 2px;
}

.btn {
    background: var(--emerald-500);
    border: var(--emerald-500);
}

.message-system {
    background-color: #e6f7f4; /* Verde muy pálido de la imagen */
    border: 1px solid #c2e9e1;
    border-radius: 18px;
    padding: 12px 16px;
    align-self: center;
    width: 85%; /* Ajustado para que no toque los bordes del cel */
    display: flex;
    flex-direction: column; /* Esto pone el header arriba y el texto abajo */
    gap: 4px;
    margin: 10px 0;
}

/* Payment Overlay */
.payment-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
    color: white;
    z-index: 20;
    transition: opacity 0.5s ease;
}

.keypad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0 30px;
}

.key {
    background: rgba(255,255,255,0.15);
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 600;
}

.key-active {
    background: white !important;
    color: var(--emerald);
    transform: scale(0.9);
}

.slider-track {
    background: rgba(255,255,255,0.2);
    height: 50px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.slider-active {
    background: white;
    color: var(--emerald);
    font-weight: bold;
}

/* Helpers */
.hidden {
    display: none !important;
    opacity: 0;
}

.avatar-sm {
    width: 40px;
    height: 40px;
}

.avatar-lg {
    width: 80px;
    height: 80px;
}

.x-small {
    font-size: 0.7rem;
}

@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-btn-click {
    animation: btnClick 0.6s ease;
}

@keyframes btnClick {
    50% {
        transform: scale(0.8);
        opacity: 0.7;
    }
}

.cursor {
    animation: blink 0.8s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.step-icon-circle i {
    width: 24px;
    height: 24px;
}

.message-system {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.key i {
    opacity: 0.7;
}

.animate-btn-click {
    animation: clickPulse 0.4s ease-out;
}

@keyframes clickPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.9);
        background-color: #157347;
    }

    100% {
        transform: scale(1);
    }
}

/* Contenedor general del chat */
.chat-messages {
    background-color: #ffffff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Burbuja Base */
.message-bubble {
    max-width: 75%;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Burbuja Recibida (Blanca) */
.received {
    background-color: #ffffff;
    color: #1a1a1a;
    border-radius: 18px 18px 18px 4px;
    align-self: flex-start;
    border: 1px solid #f0f0f0;
}

/* Burbuja Enviada (Verde Dollarize) */
.sent {
    background-color: var(--emerald-500); /* El verde esmeralda de tu imagen */
    color: #ffffff;
    border-radius: 18px 18px 4px 18px;
    align-self: flex-end;
}

/* Timestamp (el texto de "Hace 5 min") */
.timestamp {
    display: block;
    font-size: 11px;
    margin-top: 4px;
    opacity: 0.6;
}

.sent .timestamp {
    color: #e0f2f1;
}

.received .timestamp {
    color: #888888;
}

/* Mensaje de Sistema (Dollarize) */
.message-system {
    background-color: #e0f7f4; /* Fondo verde muy clarito */
    border: 1px solid #b2dfdb;
    border-radius: 16px;
    padding: 12px 16px;
    align-self: center;
    width: 90%;
}

.system-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #00897b; /* Color verde oscuro del texto Dollarize */
}

.system-body {
    font-size: 13px;
    color: #00695c;
    font-weight: 600;
    line-height: 1.4;
    padding-left: 24px; /* Alineado justo debajo de la palabra Dollarize */
}

.d-logo {
    width: 18px;
    height: 18px;
    background-color: #00a884;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 900;
}

.banner-gratis {
    background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 191, 165, 0.2);
    transition: transform 0.3s ease;
}

    .banner-gratis:hover {
        transform: translateY(-5px);
    }

/* La pequeña esfera con brillo que aparece al lado del texto */
.sphere-icon {
    width: 18px;
    height: 18px;
    background: radial-gradient(circle at 30% 30%, #a7ffeb, #00bfa5);
    border-radius: 50%;
    display: inline-block;
    box-shadow: inset -2px -2px 6px rgba(0,0,0,0.1);
}

/* Ajuste de fuente para que se parezca a la imagen */
.banner-gratis h4 {
    letter-spacing: -0.5px;
    font-size: 1.25rem;
}

.banner-gratis p {
    font-weight: 400;
    opacity: 0.9;
}

.custom-gradient {
    background: linear-gradient(to right, #22c55e, #059669); /* from-green-500 → to-emerald-600 */
    border-radius: 1.5rem; /* 3xl */
    padding: 2rem; /* p-8 */
    color: #fff;
    text-align: center;
}

/* Estilos para el círculo verde del emoji */
.emoji-circle {
    display: inline-flex; /* Inline-flex para que se comporte como texto pero permita flex interno */
    align-items: center; /* Centrado vertical del emoji */
    justify-content: center; /* Centrado horizontal del emoji */
    width: 60px; /* Ancho del círculo (ajusta según necesites) */
    height: 60px; /* Alto del círculo (debe ser igual al ancho) */
    background-color: #28a745; /* VERDE SÓLIDO (Verde Dollarize) */
    border-radius: 50%; /* Convierte el cuadrado en círculo */
    color: white; /* Color del emoji (aunque el emoji ya tiene color, esto ayuda a la consistencia) */
    font-size: 30px; /* Tamaño del emoji DENTRO del círculo */
    margin-right: 15px; /* Espacio entre el círculo y el texto del título */
    vertical-align: middle; /* Alinea el círculo verticalmente con el texto del título */
    /* Opcional: Una sombra suave para darle profundidad */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Ajuste opcional para pantallas pequeñas */
@media (max-width: 768px) {
    .emoji-circle {
        width: 50px;
        height: 50px;
        font-size: 25px;
        margin-right: 10px;
    }
}
