/* Configuración Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #74ebd5 0%, #9face6 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    height: 100vh;
    background-image: url(img/web.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

/* Tarjeta Principal */
.app-container {
    background: rgba(255, 255, 255, 0.95);
    width: 50%;
    max-width: 80%;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

h2 {
    color: #2d3436;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Input y Botón */
.input-area {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.input-area input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #edf2f7;
    border-radius: 12px;
    outline: none;
    transition: 0.3s;
}

.input-area input:focus {
    border-color: #9face6;
}

.input-area button {
    background: #9face6;
    color: white;
    border: none;
    width: 50px;
    border-radius: 12px;
    font-size: 24px;
    cursor: pointer;
    transition: 0.3s;
}

.input-area button:hover {
    background: #7d6ce7;
    transform: scale(1.05);
}

/* Lista de tareas */
li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 12px 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid #f1f5f9;
    transition: 0.3s;
}

.task-content {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    flex: 1;
}

.task-content input { display: none; }

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #9face6;
    border-radius: 6px;
    position: relative;
    transition: 0.3s;
}

input:checked + .checkmark {
    background: #9face6;
}

input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

input:checked ~ .task-text {
    text-decoration: line-through;
    color: #cbd5e1;
}

.delete-btn {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    padding: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}


.delete-btn:hover {
    background: #ef4444;
    color: white;
}

.edit-btn {
    background: #d1e0f8;
    color: #4463ef;
    border: none;
    padding: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}


.edit-btn:hover {
    background: #7ccae2;
    color: white;
}


/* Firma de Jose Oviedo */
.creditos {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

.creditos a {
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
}

.creditos a:hover {
    color: #9face6;
    letter-spacing: 0.5px;
}