
@import url('https://fonts.googleapis.com/css2?family=Rethink+Sans:ital,wght@0,400..800;1,400..800&display=swap');

html {
    padding: 0;
    margin: 0;
}

body {
    padding: 0;
    margin: 0;
    font-family: "Rethink Sans", sans-serif;
    background: #e8e8e8;
}

.app-container {
    width: 100%;
    height: 100vh;
    /*background-image: url("../img/fondoari.jpg");*/
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center bottom;
}

.animationListenContainer {
    background: white;
    margin: auto;
    border-radius: 40px;
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    padding: 3em 2em;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    text-align: center;
    min-width: 270px;
}


.logo {
    text-align: center;
    margin-bottom: 2em;
}

.logo img {
    width: 200px;
}



/* ========= Widget dentro del recuadro ========= */
.aw-wrap{
    margin-top: 2.2em;
    display: grid;
    gap: 10px;
    justify-items: center;
}

.aw-status{
    font-size: 1.05rem;
    font-weight: 600;
    color: #003865;
    margin: 0;
}

.aw-text{
    margin: 0;
    max-width: 420px;
    text-align: center;
    font-size: 1rem;
    color: #4b5563;
    margin-bottom: 1em;

    height: 80px;         /* altura fija */
    overflow-y: auto;      /* scroll vertical */
    padding: 6px 8px;

    white-space: pre-wrap; /* respeta saltos */
    word-break: break-word;

    scroll-behavior: smooth;
}

/* ========= Error ========= */
.aw-error{
    margin-top: 6px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(220, 38, 38, 0.10);
    color: #b91c1c;
    font-size: 0.9rem;
    max-width: 420px;
    text-align: center;
    border: 1px solid rgba(220, 38, 38, 0.18);
}

/* ========= Botón pro ========= */
.aw-btn{
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 14px 22px;
    min-width: 220px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    background: linear-gradient(135deg, #003865, #0051b9);
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: .2px;
    cursor: pointer;

    box-shadow: 0 14px 35px rgba(0, 56, 101, 0.28);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    position: relative;
    overflow: hidden;
}

.aw-btn:hover{
    transform: translateY(-1px);
    box-shadow: 0 18px 45px rgba(0, 56, 101, 0.35);
    filter: brightness(1.05);
}

.aw-btn:active{
    transform: translateY(0) scale(0.98);
}

.aw-btn:focus-visible{
    outline: 3px solid rgba(0, 209, 255, 0.35);
    outline-offset: 3px;
}

/* Brillito diagonal */
.aw-btn::before{
    content:"";
    position:absolute;
    inset:-40%;
    background: linear-gradient(
            120deg,
            transparent 0%,
            rgba(255,255,255,.18) 35%,
            transparent 70%
    );
    transform: translateX(-60%);
    transition: transform .5s ease;
}
.aw-btn:hover::before{
    transform: translateX(30%);
}

/* Dot */


/* ========= Estado: grabando (tu JS usa .recording en el botón) ========= */
.aw-btn.recording{
    background: linear-gradient(135deg, #b90000, #ff2e2e);
    box-shadow: 0 14px 35px rgba(185, 0, 0, 0.22);
}
.aw-icon{
    width: 30px;
    height: 30px;
    stroke: currentColor;
    transition: transform .2s ease, filter .2s ease;
}

.aw-btn.recording{
    background: linear-gradient(135deg, #b90000, #ff2e2e);
    box-shadow: 0 14px 35px rgba(185, 0, 0, 0.22);
}

.aw-btn.recording .aw-icon{
    animation: micPulse 1.1s ease-in-out infinite;
    transform-origin: center;
}

@keyframes micPulse{
    0%{ transform: scale(1); }
    50%{ transform: scale(1.15); }
    100%{ transform: scale(1); }
}

@keyframes awPulse{
    0%{ transform: scale(1); opacity: 1; }
    50%{ transform: scale(1.35); opacity: .75; }
    100%{ transform: scale(1); opacity: 1; }
}

/* ========= Animación Listen: volumen real con --amp ========= */
/* Asumo que .blob son tus spans, hacemos que crezcan según --amp (0..1) */
.animationListen{
    --amp: 0;
}

/* Si tus blobs son círculos, esto los hace “respirar” según el mic */
.animationListen .blob{
    transform: translateZ(0) scale(calc(1 + (var(--amp) * 0.55)));
    transition: transform 70ms linear;
}

/* ========= Estado: procesando (tu JS usa .is-processing en #animationListen) ========= */
/*.animationListen.is-processing{
    filter: saturate(1.15);
}

.animationListen.is-processing .blob{
    animation: thinking 1.2s ease-in-out infinite;
    transition: none;
}*/

@keyframes thinking{
    0%{ transform: scale(1); opacity: .85; }
    50%{ transform: scale(1.08); opacity: 1; }
    100%{ transform: scale(1); opacity: .85; }
}

/* ========= Estado: error (tu JS usa .is-error en #animationListen) ========= */
.animationListen.is-error{
    filter: hue-rotate(-35deg) saturate(1.3);
}

/* Si quieres que en error se “apague” el amp */
.animationListen.is-error{
    --amp: 0 !important;
}

.aw-btn:disabled{
    opacity: .7;
    cursor: not-allowed;
    transform: none !important;
    filter: grayscale(.15);
}

.aw-hangup:disabled {
    display: none;
}
