/* ===============================
   ESTILOS GENERALES PARA TEXTOS
=============================== */
body {
    background: linear-gradient(180deg, #fff5ec, #ffe8d3);
    color: #5e554c;
    margin: 0;
    padding: 0;
}



h2 {
    text-align: center;
    color: #d87a38;
    margin: 30px 0 15px;
    font-size: 32px;
    text-shadow: 0px 2px 4px #d87b3822;
}

/* ANCHO ESPECÍFICO PARA NUEVO TEXTO */
.crear-texto {
    width: 40%;
    max-width: 500px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

/* ===============================
   SECCIÓN DE CREAR TEXTO
=============================== */
section {
    width: 90%;
    max-width: 700px;
    margin: 20px auto;
    padding: 20px;
    background: #fff2e3;
    border-radius: 16px;
    border: 2px solid #ffd4b1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

button {
    background: #ffa86b;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.3s ease;
}

#nuevoTextoBtn {
    width: 200px;
    height: 75px;
    padding: 0px;
    text-align: center;
}

button:hover {
    background: #ff923f;
}

/* POP-UP CREAR TEXTO */
#popUp,
#popUpEditar {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff5ec;
    padding: 25px 30px;
    border-radius: 16px;
    border: 2px solid #ffd8b8;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    z-index: 100;
}

#popUp form,
#popUpEditar form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#popUp input,
#popUpEditar input {
    padding: 10px;
    border-radius: 10px;
    border: 2px solid #ffd8b8;
    font-size: 16px;
}

/* ===============================
   ESTILO MÁQUINA DE ESCRIBIR
=============================== */

div>h3,
div>p {
    font-family: "Courier New", Courier, monospace !important;
    letter-spacing: 0.6px;
}

/* Efecto de tinta irregular */
div>p {
    background: #fff3e6;
    padding: 12px 16px;
    border-radius: 12px;
    border: 2px solid #ffdfc3;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    font-size: 16px;
    line-height: 1.5;
    text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.06);
}

/* Títulos estilo máquina */
div>h3 {
    margin: 15px 0 6px;
    color: #cc7533;
    font-weight: bold;
    text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.08);
}

/* FORMULARIOS DE CADA TEXTO */
form {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

form button {
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 14px;
}

form button[name="borrarTexto"] {
    background: #ff6b6b;
    color: white;
}

form button[name="borrarTexto"]:hover {
    background: #e45252;
}

form button[name="editarTexto"] {
    background: #ffa86b;
    color: white;
}

form button[name="editarTexto"]:hover {
    background: #ff923f;
}

#info {
    font-family: 'Times New Roman', Times, serif !important;
    background: #ffffff !important;
    padding: 18px 22px !important;
    border-left: 2px solid #e89a5a !important;
    border-radius: 10px !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08) !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: #5e4a3c !important;
    width: 310px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) !important;
    margin: 0 auto;
}


/* ===============================
   RESPONSIVE PARA IPHONE 14 (390px)
=============================== */
@media (max-width: 430px) {
    section {
        width: 94%;
        padding: 16px;
    }

    .crear-texto {
        width: 85%;
    }

    #popUp,
    #popUpEditar {
        width: 90%;
        padding: 20px;
    }

    h2 {
        font-size: 28px;
    }

    div>h3 {
        font-size: 20px;
    }

    div>p {
        font-size: 14px;
        padding: 10px 12px;
    }

    form button {
        padding: 5px 10px;
        font-size: 12px;
    }
}

/* Evitar scroll horizontal en toda la página */
body,
html {
    overflow-x: hidden !important;
}