/* v1.4.0 - fondo web blanco; resto tal cual */
.tnv-container {
    font-family: 'Nunito', sans-serif;
    background: transparent; /* Fondo de la web blanco: el tema marca el body */
    color: #333;
    width: 100%;
    padding: 36px 24px;
    border-radius: 0;
    box-sizing: border-box;
    max-width: 960px; margin: 0 auto;
}

.tnv-title {
    font-family: 'Pacifico', cursive;
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: #ff6b3d;
    margin: 0 0 20px;
    text-align: center;
    text-shadow: 0 2px 6px rgba(0,0,0,.15);
}

.tnv-input-section {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    justify-content: center;
}

#tnv-name-input {
    flex: 1 1 420px;
    min-width: 0;
    max-width: 900px;
    padding: 16px 18px;
    border: 3px solid #ffe0b2;
    border-radius: 14px;
    font-size: 1.2rem;
    font-family: 'Nunito', sans-serif;
    background: #fffdfa;
}

#tnv-name-input:focus { outline: none; border-color: #ffd180; box-shadow: 0 0 0 4px rgba(255,209,128,.35); }

#tnv-generate-btn {
    padding: 16px 26px;
    background: linear-gradient(45deg, #ff7e5f, #feb47b);
    color: #fff;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: .2px;
    transition: transform .2s, box-shadow .2s;
    flex: 0 0 auto;
}

#tnv-generate-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.25); }
#tnv-generate-btn:disabled { background: #ccc; cursor: not-allowed; }

#tnv-pdf-section {
    margin-top: 18px;
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

#tnv-download-image {
    padding: 14px 22px;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 800;
    transition: transform .2s, box-shadow .2s;
    background: linear-gradient(45deg, #2196f3, #03a9f4);
}
#tnv-download-image:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.22); }

#tnv-card-container {
    background: #fff8e1;
    border: 6px dashed #ffb74d;
    border-radius: 20px;
    padding: 28px;
    margin-top: 20px;
    transition: opacity .4s ease, transform .4s ease, height .4s ease, padding .4s ease, border .4s ease;
    opacity: 1; transform: scale(1);
}

.tnv-card-hidden { opacity: 0 !important; transform: scale(.98) !important; height: 0; padding: 0 28px; border-width: 0; overflow: hidden; margin-top: 0; }

.tnv-poem-line {
    margin-bottom: 16px;
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
    line-height: 1.7;
    display: flex;
    align-items: flex-start;
    word-break: break-word;
}

.tnv-letter {
    font-family: 'Pacifico', cursive;
    font-size: clamp(2.4rem, 7vw, 4rem);
    color: #ff7043;
    margin-right: 14px;
    min-width: 44px;
    text-align: center;
    line-height: 1;
}

.tnv-footer { font-style: italic; margin-top: 22px; text-align: center; color: #666; font-size: 1rem; }
.tnv-hidden { display: none; }
.tnv-loader { font-size: 1.3rem; color: #ff6b3d; font-weight: 900; margin-top: 16px; text-align: center; }
